Kees Cook | 8eb68bf | 2015-04-16 12:49:04 -0700 | [diff] [blame] | 1 | #ifndef _ASM_X86_SECCOMP_H |
| 2 | #define _ASM_X86_SECCOMP_H |
| 3 | |
| 4 | #include <asm/unistd.h> |
| 5 | |
Thomas Gleixner | 96a388d | 2007-10-11 11:20:03 +0200 | [diff] [blame] | 6 | #ifdef CONFIG_X86_32 |
Kees Cook | 8eb68bf | 2015-04-16 12:49:04 -0700 | [diff] [blame] | 7 | #define __NR_seccomp_sigreturn __NR_sigreturn |
Thomas Gleixner | 96a388d | 2007-10-11 11:20:03 +0200 | [diff] [blame] | 8 | #endif |
Kees Cook | 8eb68bf | 2015-04-16 12:49:04 -0700 | [diff] [blame] | 9 | |
| 10 | #ifdef CONFIG_COMPAT |
| 11 | #include <asm/ia32_unistd.h> |
| 12 | #define __NR_seccomp_read_32 __NR_ia32_read |
| 13 | #define __NR_seccomp_write_32 __NR_ia32_write |
| 14 | #define __NR_seccomp_exit_32 __NR_ia32_exit |
| 15 | #define __NR_seccomp_sigreturn_32 __NR_ia32_sigreturn |
| 16 | #endif |
| 17 | |
| 18 | #include <asm-generic/seccomp.h> |
| 19 | |
| 20 | #endif /* _ASM_X86_SECCOMP_H */ |