diff options
author | David S. Miller <davem@davemloft.net> | 2010-08-17 00:04:29 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-17 00:04:29 +0200 |
commit | 8e8073a449b2e00641c095ad55bd56f43468daf9 (patch) | |
tree | 7ac24dbc88d51a19745230be5c915206d20387d0 /arch/sparc/kernel/sys32.S | |
parent | Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torval... (diff) | |
download | linux-8e8073a449b2e00641c095ad55bd56f43468daf9.tar.xz linux-8e8073a449b2e00641c095ad55bd56f43468daf9.zip |
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.S | 9 |
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 |