summaryrefslogtreecommitdiff
path: root/arch/sparc/kernel/sys32.S
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-08-16 15:04:29 -0700
committerDavid S. Miller <davem@davemloft.net>2010-08-16 15:04:29 -0700
commit8e8073a449b2e00641c095ad55bd56f43468daf9 (patch)
tree7ac24dbc88d51a19745230be5c915206d20387d0 /arch/sparc/kernel/sys32.S
parent300a103d1504134f8c4a7e831f995e917ea9b1e4 (diff)
sparc: Hook up new fanotify and prlimit64 syscalls.
The only tricky bit is the compat version of fanotify_mark, which which on 32-bit the 64-bit mark argument is passed in as "high32", "low32". Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/sys32.S')
-rw-r--r--arch/sparc/kernel/sys32.S9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/sparc/kernel/sys32.S b/arch/sparc/kernel/sys32.S
index 46a76ba3fb4b..44e5faf1ad5f 100644
--- a/arch/sparc/kernel/sys32.S
+++ b/arch/sparc/kernel/sys32.S
@@ -330,6 +330,15 @@ do_sys_accept4: /* sys_accept4(int, struct sockaddr *, int *, int) */
nop
nop
+ .globl sys32_fanotify_mark
+sys32_fanotify_mark:
+ sethi %hi(sys_fanotify_mark), %g1
+ sllx %o2, 32, %o2
+ or %o2, %o3, %o2
+ mov %o4, %o3
+ jmpl %g1 + %lo(sys_fanotify_mark), %g0
+ mov %o5, %o4
+
.section __ex_table,"a"
.align 4
.word 1b, __retl_efault, 2b, __retl_efault