diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-02-02 13:32:07 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-02-02 13:32:07 +0000 |
commit | 22cba234393e85cacb460dd6e3f6aadc75278969 (patch) | |
tree | 2a2b3982e48ded6f3aa6d8d4539b9873d7c5d4d9 /sys/lib/libkern/arch/m68k/skpc.S | |
parent | bfb23955a64b7aa0e072e92cbfc69f31228df265 (diff) |
Kernel bits for m68k/ELF, mostly from NetBSD. In addition, the `pmod' symbel
in fpsp has to be renamed due to a clash with other parts of the kernel.
Diffstat (limited to 'sys/lib/libkern/arch/m68k/skpc.S')
-rw-r--r-- | sys/lib/libkern/arch/m68k/skpc.S | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/lib/libkern/arch/m68k/skpc.S b/sys/lib/libkern/arch/m68k/skpc.S index f5cea15ced1..f932807b473 100644 --- a/sys/lib/libkern/arch/m68k/skpc.S +++ b/sys/lib/libkern/arch/m68k/skpc.S @@ -1,4 +1,4 @@ -/* $OpenBSD: skpc.S,v 1.3 2003/06/02 23:28:08 millert Exp $ */ +/* $OpenBSD: skpc.S,v 1.4 2013/02/02 13:32:06 miod Exp $ */ /* $NetBSD: skpc.S,v 1.2 1994/10/26 06:39:32 cgd Exp $ */ /* @@ -45,14 +45,14 @@ * skpc(mask, count, startc) */ ENTRY(skpc) - movl sp@(8),d0 | get length + movl %sp@(8),%d0 | get length jeq Lskdone | nothing to do, return - movb sp@(7),d1 | mask to use - movl sp@(12),a0 | where to start - subqw #1,d0 | adjust for dbcc + movb %sp@(7),%d1 | mask to use + movl %sp@(12),%a0 | where to start + subqw #1,%d0 | adjust for dbcc Lskloop: - cmpb a0@+,d1 | compate with mask - dbne d0,Lskloop | keep going til no more or zero - addqw #1,d0 | overshot by one + cmpb %a0@+,%d1 | compare with mask + dbne %d0,Lskloop | keep going til no more or zero + addqw #1,%d0 | overshot by one Lskdone: rts |