patch-2.1.129 linux/arch/sparc64/kernel/sys32.S
Next file: linux/arch/sparc64/kernel/sys_sparc32.c
Previous file: linux/arch/sparc64/kernel/sparc64_ksyms.c
Back to the patch index
Back to the overall index
- Lines: 79
- Date:
Mon Nov 16 10:37:28 1998
- Orig file:
v2.1.128/linux/arch/sparc64/kernel/sys32.S
- Orig date:
Mon Oct 5 13:13:38 1998
diff -u --recursive --new-file v2.1.128/linux/arch/sparc64/kernel/sys32.S linux/arch/sparc64/kernel/sys32.S
@@ -1,4 +1,4 @@
-/* $Id: sys32.S,v 1.7 1998/09/11 10:39:46 jj Exp $
+/* $Id: sys32.S,v 1.8 1998/10/28 08:10:37 jj Exp $
* sys32.S: I-cache tricks for 32-bit compatability layer simple
* conversions.
*
@@ -13,16 +13,10 @@
.align 32
.globl sys32_mmap
sys32_mmap:
- srl %o0, 0, %o0 ! IEU0 Group
- sethi %hi(0xffffffff), %g2 ! IEU1
- srl %o1, 0, %o1 ! IEU0 Group
- or %g2, %lo(0xffffffff), %g2 ! IEU1
- srl %o2, 0, %o2 ! IEU0 Group
- sethi %hi(sys_mmap), %g1 ! IEU1
- and %o3, %g2, %o3 ! IEU0 Group
- and %o4, %g2, %o4 ! IEU1
- jmpl %g1 + %lo(sys_mmap), %g0 ! CTI Group brk forced
- and %o5, %g2, %o5 ! IEU0
+ srl %o4, 0, %o4
+ sethi %hi(sys_mmap), %g1
+ jmpl %g1 + %lo(sys_mmap), %g0
+ srl %o5, 0, %o5
.align 32
.globl sys32_lseek
@@ -36,14 +30,12 @@
sethi %hi(0xffff), %g2
sethi %hi(sys_chmod), %g1
orcc %g2, %lo(0xffff), %g2
- srl %o0, 0, %o0
jmpl %g1 + %lo(sys_chmod), %g0
and %o1, %g2, %o1
sys32_chown:
sethi %hi(0xffff), %g2
sethi %hi(sys_chown), %g1
orcc %g2, %lo(0xffff), %g2
- srl %o0, 0, %o0
and %o1, %g2, %o1
jmpl %g1 + %lo(sys_chown), %g0
and %o2, %g2, %o2
@@ -51,7 +43,6 @@
sethi %hi(0xffff), %g2
sethi %hi(sys_lchown), %g1
orcc %g2, %lo(0xffff), %g2
- srl %o0, 0, %o0
and %o1, %g2, %o1
jmpl %g1 + %lo(sys_lchown), %g0
and %o2, %g2, %o2
@@ -59,27 +50,21 @@
sethi %hi(0xffff), %g2
sethi %hi(sys_mknod), %g1
orcc %g2, %lo(0xffff), %g2
- srl %o0, 0, %o0
jmpl %g1 + %lo(sys_mknod), %g0
and %o2, %g2, %o2
.align 32
.globl sys32_sendto, sys32_recvfrom, sys32_getsockopt
sys32_sendto:
- srl %o1, 0, %o1
sethi %hi(sys_sendto), %g1
- srl %o2, 0, %o2
jmpl %g1 + %lo(sys_sendto), %g0
srl %o4, 0, %o4
sys32_recvfrom:
- srl %o1, 0, %o1
- sethi %hi(sys_recvfrom), %g1
- srl %o2, 0, %o2
srl %o4, 0, %o4
+ sethi %hi(sys_recvfrom), %g1
jmpl %g1 + %lo(sys_recvfrom), %g0
srl %o5, 0, %o5
sys32_getsockopt:
- srl %o3, 0, %o3
sethi %hi(sys_getsockopt), %g1
jmpl %g1 + %lo(sys_getsockopt), %g0
srl %o4, 0, %o4
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov