summaryrefslogtreecommitdiffstats
path: root/arch/avr32
diff options
context:
space:
mode:
authorHans-Christian Egtvedt <egtvedt@samfundet.no>2016-01-06 09:10:47 +0100
committerHans-Christian Egtvedt <egtvedt@samfundet.no>2016-01-11 16:29:11 +0100
commita193f07d1e3cda30513914b1e88967419a9dbd8c (patch)
treeeed89b256a7ce61196adb37fc24a8b615d94e005 /arch/avr32
parentavr32: wire up accept4 syscall (diff)
downloadlinux-a193f07d1e3cda30513914b1e88967419a9dbd8c.tar.xz
linux-a193f07d1e3cda30513914b1e88967419a9dbd8c.zip
avr32: wire up missing syscalls
This patch adds three missing syscalls to AVR32: __NR_userfaultfd __NR_membarrier __NR_mlock2 Signed-off-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Diffstat (limited to 'arch/avr32')
-rw-r--r--arch/avr32/include/uapi/asm/unistd.h3
-rw-r--r--arch/avr32/kernel/syscall_table.S3
2 files changed, 6 insertions, 0 deletions
diff --git a/arch/avr32/include/uapi/asm/unistd.h b/arch/avr32/include/uapi/asm/unistd.h
index 40cd523615d8..b60132bb27ea 100644
--- a/arch/avr32/include/uapi/asm/unistd.h
+++ b/arch/avr32/include/uapi/asm/unistd.h
@@ -334,5 +334,8 @@
#define __NR_bpf 319
#define __NR_execveat 320
#define __NR_accept4 321
+#define __NR_userfaultfd 322
+#define __NR_membarrier 323
+#define __NR_mlock2 324
#endif /* _UAPI__ASM_AVR32_UNISTD_H */
diff --git a/arch/avr32/kernel/syscall_table.S b/arch/avr32/kernel/syscall_table.S
index 6fa80a42dc23..1915a443b491 100644
--- a/arch/avr32/kernel/syscall_table.S
+++ b/arch/avr32/kernel/syscall_table.S
@@ -335,4 +335,7 @@ sys_call_table:
.long sys_bpf
.long sys_execveat /* 320 */
.long sys_accept4
+ .long sys_userfaultfd
+ .long sys_membarrier
+ .long sys_mlock2
.long sys_ni_syscall /* r8 is saturated at nr_syscalls */