arm: wire up memfd_create syscall
authorGrazvydas Ignotas <notasas@gmail.com>
Sat, 16 Sep 2017 21:32:35 +0000 (00:32 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 16 Sep 2017 21:32:35 +0000 (00:32 +0300)
backported from 3.17

arch/arm/include/asm/unistd.h
arch/arm/kernel/calls.S

index 4a11237..ce9f549 100644 (file)
 #define __NR_setns                     (__NR_SYSCALL_BASE+375)
 #define __NR_process_vm_readv          (__NR_SYSCALL_BASE+376)
 #define __NR_process_vm_writev         (__NR_SYSCALL_BASE+377)
+#define __NR_memfd_create              (__NR_SYSCALL_BASE+385)
 
 /*
  * The following SWIs are ARM private.
index 463ff4a..6fbf665 100644 (file)
 /* 375 */      CALL(sys_setns)
                CALL(sys_process_vm_readv)
                CALL(sys_process_vm_writev)
+
+               CALL(sys_ni_syscall)
+               CALL(sys_ni_syscall)
+/* 380 */      CALL(sys_ni_syscall)
+               CALL(sys_ni_syscall)
+               CALL(sys_ni_syscall)
+               CALL(sys_ni_syscall)
+               CALL(sys_ni_syscall)
+
+/* 385 */      CALL(sys_memfd_create)
+
 #ifndef syscalls_counted
 .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
 #define syscalls_counted