summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>2004-09-09 15:41:19 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>2004-09-09 15:41:19 +0000
commit34d1935100f3f97e534b8e4c51693284fc8a3409 (patch)
tree50d994b77981d63d628d51883ac6096677216974 /sys
parent7a979157fd0801e914f8189590d78735c5d87a4c (diff)
Changes for 64 bit kernel. Some functions needis to be rewritten or
optimized to take advantage of full 64 bit width registers.
Diffstat (limited to 'sys')
-rw-r--r--sys/lib/libkern/arch/mips64/bcmp.S4
-rw-r--r--sys/lib/libkern/arch/mips64/bcopy.S4
-rw-r--r--sys/lib/libkern/arch/mips64/bzero.S4
-rw-r--r--sys/lib/libkern/arch/mips64/ffs.S4
-rw-r--r--sys/lib/libkern/arch/mips64/htonl.S4
-rw-r--r--sys/lib/libkern/arch/mips64/htons.S4
-rw-r--r--sys/lib/libkern/arch/mips64/strcmp.S4
-rw-r--r--sys/lib/libkern/arch/mips64/strlen.S4
8 files changed, 16 insertions, 16 deletions
diff --git a/sys/lib/libkern/arch/mips64/bcmp.S b/sys/lib/libkern/arch/mips64/bcmp.S
index 9c6ffff3ba1..da6e25b0c14 100644
--- a/sys/lib/libkern/arch/mips64/bcmp.S
+++ b/sys/lib/libkern/arch/mips64/bcmp.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: bcmp.S,v 1.2 2004/08/13 13:07:24 pefo Exp $ */
+/* $OpenBSD: bcmp.S,v 1.3 2004/09/09 15:41:18 pefo Exp $ */
/*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
@@ -37,7 +37,7 @@
/*
* bcmp(s1, s2, n)
*/
-LEAF(bcmp)
+LEAF(bcmp, 0)
.set noreorder
blt a2, 16, smallcmp # is it worth any trouble?
xor v0, a0, a1 # compare low two bits of addresses
diff --git a/sys/lib/libkern/arch/mips64/bcopy.S b/sys/lib/libkern/arch/mips64/bcopy.S
index 808e185f16f..b48fe7504eb 100644
--- a/sys/lib/libkern/arch/mips64/bcopy.S
+++ b/sys/lib/libkern/arch/mips64/bcopy.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: bcopy.S,v 1.2 2004/08/13 13:07:24 pefo Exp $ */
+/* $OpenBSD: bcopy.S,v 1.3 2004/09/09 15:41:18 pefo Exp $ */
/*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
@@ -38,7 +38,7 @@
* memcpy(to, from, len)
* {ov}bcopy(from, to, len)
*/
-LEAF(memcpy)
+LEAF(memcpy, 0)
.set noreorder
move v0, a0 # swap from and to
move a0, a1
diff --git a/sys/lib/libkern/arch/mips64/bzero.S b/sys/lib/libkern/arch/mips64/bzero.S
index f1146faee05..401b0b3e4e5 100644
--- a/sys/lib/libkern/arch/mips64/bzero.S
+++ b/sys/lib/libkern/arch/mips64/bzero.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: bzero.S,v 1.2 2004/08/13 13:07:24 pefo Exp $ */
+/* $OpenBSD: bzero.S,v 1.3 2004/09/09 15:41:18 pefo Exp $ */
/*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
@@ -38,7 +38,7 @@
/*
* bzero(s1, n)
*/
-LEAF(bzero)
+LEAF(bzero, 0)
ALEAF(blkclr)
.set noreorder
blt a1, 12, smallclr # small amount to clear?
diff --git a/sys/lib/libkern/arch/mips64/ffs.S b/sys/lib/libkern/arch/mips64/ffs.S
index 23e905dfd55..90cfb5d63d3 100644
--- a/sys/lib/libkern/arch/mips64/ffs.S
+++ b/sys/lib/libkern/arch/mips64/ffs.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs.S,v 1.2 2004/08/13 13:07:24 pefo Exp $ */
+/* $OpenBSD: ffs.S,v 1.3 2004/09/09 15:41:18 pefo Exp $ */
/*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
@@ -37,7 +37,7 @@
/*
* bit = ffs(value)
*/
-LEAF(ffs)
+LEAF(ffs, 0)
.set noreorder
beq a0, zero, 2f
move v0, zero
diff --git a/sys/lib/libkern/arch/mips64/htonl.S b/sys/lib/libkern/arch/mips64/htonl.S
index 5d78013193c..982aeb1cf96 100644
--- a/sys/lib/libkern/arch/mips64/htonl.S
+++ b/sys/lib/libkern/arch/mips64/htonl.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: htonl.S,v 1.2 2004/08/13 13:07:24 pefo Exp $ */
+/* $OpenBSD: htonl.S,v 1.3 2004/09/09 15:41:18 pefo Exp $ */
/*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
@@ -38,7 +38,7 @@
* netorder = htonl(hostorder)
* hostorder = ntohl(netorder)
*/
-LEAF(htonl) # a0 = 0x11223344, return 0x44332211
+LEAF(htonl, 0) # a0 = 0x11223344, return 0x44332211
ALEAF(ntohl)
.set noreorder
srl v1, a0, 24 # v1 = 0x00000011
diff --git a/sys/lib/libkern/arch/mips64/htons.S b/sys/lib/libkern/arch/mips64/htons.S
index 571ea949a49..a5930703fb9 100644
--- a/sys/lib/libkern/arch/mips64/htons.S
+++ b/sys/lib/libkern/arch/mips64/htons.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: htons.S,v 1.2 2004/08/13 13:07:24 pefo Exp $ */
+/* $OpenBSD: htons.S,v 1.3 2004/09/09 15:41:18 pefo Exp $ */
/*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
@@ -38,7 +38,7 @@
* netorder = htons(hostorder)
* hostorder = ntohs(netorder)
*/
-LEAF(htons)
+LEAF(htons, 0)
ALEAF(ntohs)
.set noreorder
srl v0, a0, 8
diff --git a/sys/lib/libkern/arch/mips64/strcmp.S b/sys/lib/libkern/arch/mips64/strcmp.S
index dc13d7293cc..b45df70697b 100644
--- a/sys/lib/libkern/arch/mips64/strcmp.S
+++ b/sys/lib/libkern/arch/mips64/strcmp.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: strcmp.S,v 1.2 2004/08/13 13:07:24 pefo Exp $ */
+/* $OpenBSD: strcmp.S,v 1.3 2004/09/09 15:41:18 pefo Exp $ */
/*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
@@ -37,7 +37,7 @@
/*
* NOTE: this version assumes unsigned chars in order to be "8 bit clean".
*/
-LEAF(strcmp)
+LEAF(strcmp, 0)
.set noreorder
1:
lbu t0, 0(a0) # get two bytes and compare them
diff --git a/sys/lib/libkern/arch/mips64/strlen.S b/sys/lib/libkern/arch/mips64/strlen.S
index 6ced6cf308c..214f88eddd5 100644
--- a/sys/lib/libkern/arch/mips64/strlen.S
+++ b/sys/lib/libkern/arch/mips64/strlen.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: strlen.S,v 1.2 2004/08/13 13:07:24 pefo Exp $ */
+/* $OpenBSD: strlen.S,v 1.3 2004/09/09 15:41:18 pefo Exp $ */
/*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
@@ -36,7 +36,7 @@
/*
* strlen(str)
*/
-LEAF(strlen)
+LEAF(strlen, 0)
.set noreorder
addu v1, a0, 1
1: