1 /* $Id: sys32.S,v 1.8 1998/10/28 08:10:37 jj Exp $
2 * sys32.S: I-cache tricks for 32-bit compatability layer simple
5 * Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu)
6 * Copyright (C) 1998 Jakub Jelinek (jj@ultra.linux.cz)
9 /* NOTE: call as jump breaks return stack, we have to avoid that */
17 sethi %hi(sys_mmap), %g1
18 jmpl %g1 + %lo(sys_mmap), %g0
23 .globl sys32_chmod, sys32_chown, sys32_lchown, sys32_mknod
26 sethi %hi(sys_lseek), %g1
27 jmpl %g1 + %lo(sys_lseek), %g0
30 sethi %hi(0xffff), %g2
31 sethi %hi(sys_chmod), %g1
32 orcc %g2, %lo(0xffff), %g2
33 jmpl %g1 + %lo(sys_chmod), %g0
36 sethi %hi(0xffff), %g2
37 sethi %hi(sys_chown), %g1
38 orcc %g2, %lo(0xffff), %g2
40 jmpl %g1 + %lo(sys_chown), %g0
43 sethi %hi(0xffff), %g2
44 sethi %hi(sys_lchown), %g1
45 orcc %g2, %lo(0xffff), %g2
47 jmpl %g1 + %lo(sys_lchown), %g0
50 sethi %hi(0xffff), %g2
51 sethi %hi(sys_mknod), %g1
52 orcc %g2, %lo(0xffff), %g2
53 jmpl %g1 + %lo(sys_mknod), %g0
57 .globl sys32_sendto, sys32_recvfrom, sys32_getsockopt
59 sethi %hi(sys_sendto), %g1
60 jmpl %g1 + %lo(sys_sendto), %g0
64 sethi %hi(sys_recvfrom), %g1
65 jmpl %g1 + %lo(sys_recvfrom), %g0
68 sethi %hi(sys_getsockopt), %g1
69 jmpl %g1 + %lo(sys_getsockopt), %g0
74 sethi %hi(sys_bdflush), %g1
75 jmpl %g1 + %lo(sys_bdflush), %g0