diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 1996-05-15 08:24:16 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 1996-05-15 08:24:16 +0000 |
commit | ab28937d175b0b44394a0dddb6a2faf220016e88 (patch) | |
tree | b5b3d8a38b9234fb838314d07830371834577201 /sys | |
parent | 6e2a5a8c77c53f01d561dd6c3b99f529d00fdfd6 (diff) |
Now uses libkern instead of locore functions.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/lib/libkern/arch/mips/Makefile.inc | 6 | ||||
-rw-r--r-- | sys/lib/libkern/arch/mips/bcmp.S | 2 | ||||
-rw-r--r-- | sys/lib/libkern/arch/mips/bcopy.S | 4 |
3 files changed, 8 insertions, 4 deletions
diff --git a/sys/lib/libkern/arch/mips/Makefile.inc b/sys/lib/libkern/arch/mips/Makefile.inc index 68b09ace259..26665e5e1d5 100644 --- a/sys/lib/libkern/arch/mips/Makefile.inc +++ b/sys/lib/libkern/arch/mips/Makefile.inc @@ -1,10 +1,10 @@ -# $OpenBSD: Makefile.inc,v 1.3 1996/04/21 22:27:55 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.4 1996/05/15 08:24:15 pefo Exp $ # $NetBSD: Makefile.inc,v 1.4 1996/04/13 01:17:46 cgd Exp $ # # There are likely more that we will notice when we go native SRCS+= __main.c imax.c imin.c lmax.c lmin.c max.c min.c ulmax.c ulmin.c \ - bcmp.S bzero.S strcat.c strcmp.c strcpy.c ffs.S strlen.S strncmp.c \ - random.c scanc.c skpc.c strcat.c strcpy.c strncmp.c strncpy.c \ + bcmp.S bcopy.S bzero.S strcat.c strcmp.c strcpy.c ffs.S htonl.S \ + htons.S strcmp.S strlen.S strncmp.c random.c scanc.c skpc.c strncpy.c \ strncasecmp.c diff --git a/sys/lib/libkern/arch/mips/bcmp.S b/sys/lib/libkern/arch/mips/bcmp.S index 6b1c923d206..3eba902cb17 100644 --- a/sys/lib/libkern/arch/mips/bcmp.S +++ b/sys/lib/libkern/arch/mips/bcmp.S @@ -14,6 +14,7 @@ LEAF(bcmp) beq a3, zero, 1f subu a2, a2, a3 # subtract from remaining count move v0, v1 # init v0,v1 so unmodified bytes match +/*XXX FIXME Endian dependent */ lwr v0, 0(a0) # read 1, 2, or 3 bytes lwr v1, 0(a1) addu a1, a1, a3 @@ -50,6 +51,7 @@ unalignedcmp: subu a2, a2, a3 # which has to be >= (16-3) & ~3 addu a3, a3, a0 # compute ending address 3: +/*XXX FIXME Endian dependent */ lwr v0, 0(a0) # compare words a0 unaligned, a1 aligned lwl v0, 3(a0) lw v1, 0(a1) diff --git a/sys/lib/libkern/arch/mips/bcopy.S b/sys/lib/libkern/arch/mips/bcopy.S index bb47ae3c6bf..75e367b78b4 100644 --- a/sys/lib/libkern/arch/mips/bcopy.S +++ b/sys/lib/libkern/arch/mips/bcopy.S @@ -38,6 +38,7 @@ forward: beq a3, zero, 1f subu a2, a2, a3 # subtract from remaining count +/*XXX FIXME Endian dependent */ lwr v1, 0(a0) # get next 4 bytes (unaligned) lwl v1, 3(a0) addu a0, a0, a3 @@ -49,6 +50,7 @@ forward: move a2, v1 addu a3, a3, a0 # compute ending address 2: +/*XXX FIXME Endian dependent */ lwr v1, 0(a0) # copy words a0 unaligned, a1 aligned lwl v1, 3(a0) addu a0, a0, 4 @@ -85,7 +87,7 @@ smallcpy: sb v1, 0(a1) addu a1, a1, 1 bne a0, a3, 1b - nop # MMU BUG ? (cant do -1(a1) !! + nop # MMU BUG ? can't do -1(a1) at 0x80000000!! 2: j ra nop |