summaryrefslogtreecommitdiffstats
path: root/arch/m68k/fpsp040
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-04-29 21:13:14 +0000
committer <ralf@linux-mips.org>1997-04-29 21:13:14 +0000
commit19c9bba94152148523ba0f7ef7cffe3d45656b11 (patch)
tree40b1cb534496a7f1ca0f5c314a523c69f1fee464 /arch/m68k/fpsp040
parent7206675c40394c78a90e74812bbdbf8cf3cca1be (diff)
Import of Linux/MIPS 2.1.36
Diffstat (limited to 'arch/m68k/fpsp040')
-rw-r--r--arch/m68k/fpsp040/Makefile1
-rw-r--r--arch/m68k/fpsp040/skeleton.S20
2 files changed, 18 insertions, 3 deletions
diff --git a/arch/m68k/fpsp040/Makefile b/arch/m68k/fpsp040/Makefile
index b6a8c0279..d3ec21217 100644
--- a/arch/m68k/fpsp040/Makefile
+++ b/arch/m68k/fpsp040/Makefile
@@ -9,7 +9,6 @@
.S.o:
$(CC) -D__ASSEMBLY__ -traditional -c -o $*.o $<
-# $(AS) -o $*.o $<
OS_TARGET := fpsp.o
diff --git a/arch/m68k/fpsp040/skeleton.S b/arch/m68k/fpsp040/skeleton.S
index 4e4eab64e..5768516bd 100644
--- a/arch/m68k/fpsp040/skeleton.S
+++ b/arch/m68k/fpsp040/skeleton.S
@@ -513,9 +513,12 @@ copyout:
movel 12(%sp),%d0 | count
subl #1,%d0 | dec count by 1 for dbra
movel #1,%d1
- movec %d1,%DFC | set dfc for user data space
+
+| DFC is already set
+| movec %d1,%DFC | set dfc for user data space
moreout:
moveb (%a0)+,%d1 | fetch supervisor byte
+out_ea:
movesb %d1,(%a1)+ | write user byte
dbf %d0,moreout
rts
@@ -526,11 +529,24 @@ copyin:
movel 12(%sp),%d0 | count
subl #1,%d0 | dec count by 1 for dbra
movel #1,%d1
- movec %d1,%SFC | set sfc for user space
+| SFC is already set
+| movec %d1,%SFC | set sfc for user space
morein:
+in_ea:
movesb (%a0)+,%d1 | fetch user byte
moveb %d1,(%a1)+ | write supervisor byte
dbf %d0,morein
rts
+ .section .fixup,#alloc,#execinstr
+ .even
+1:
+ jbra SYMBOL_NAME(fpsp040_die)
+
+ .section __ex_table,#alloc
+ .align 4
+
+ .long in_ea,1b
+ .long out_ea,1b
+
|end