Skip to content

Commit

Permalink
arm64: Add __NR_* definitions for compat syscalls
Browse files Browse the repository at this point in the history
This patch adds __NR_* definitions to asm/unistd32.h, moves the
__NR_compat_* definitions to asm/unistd.h and removes all the explicit
unistd32.h includes apart from the one building the compat syscall
table. The aim is to have the compat __NR_* definitions available but
without colliding with the native syscall definitions (required by
lib/compat_audit.c to avoid duplicating the audit header files between
native and compat).

Signed-off-by: Catalin Marinas <[email protected]>
  • Loading branch information
ctmarinas committed Jul 10, 2014
1 parent 6c81fe7 commit f3e5c84
Show file tree
Hide file tree
Showing 6 changed files with 786 additions and 404 deletions.
17 changes: 17 additions & 0 deletions arch/arm64/include/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,24 @@
#define __ARCH_WANT_COMPAT_SYS_SENDFILE
#define __ARCH_WANT_SYS_FORK
#define __ARCH_WANT_SYS_VFORK

/*
* Compat syscall numbers used by the AArch64 kernel.
*/
#define __NR_compat_restart_syscall 0
#define __NR_compat_sigreturn 119
#define __NR_compat_rt_sigreturn 173

/*
* The following SVCs are ARM private.
*/
#define __ARM_NR_COMPAT_BASE 0x0f0000
#define __ARM_NR_compat_cacheflush (__ARM_NR_COMPAT_BASE+2)
#define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE+5)

#define __NR_compat_syscalls 383
#endif

#define __ARCH_WANT_SYS_CLONE
#include <uapi/asm/unistd.h>

Expand Down
Loading

0 comments on commit f3e5c84

Please sign in to comment.