blob: 2bd1338de23647c1ec189ed24ba21e8604de1cb8 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Kees Cook8eb68bf2015-04-16 12:49:04 -07002#ifndef _ASM_X86_SECCOMP_H
3#define _ASM_X86_SECCOMP_H
4
5#include <asm/unistd.h>
6
Thomas Gleixner96a388d2007-10-11 11:20:03 +02007#ifdef CONFIG_X86_32
Kees Cook8eb68bf2015-04-16 12:49:04 -07008#define __NR_seccomp_sigreturn __NR_sigreturn
Thomas Gleixner96a388d2007-10-11 11:20:03 +02009#endif
Kees Cook8eb68bf2015-04-16 12:49:04 -070010
11#ifdef CONFIG_COMPAT
12#include <asm/ia32_unistd.h>
13#define __NR_seccomp_read_32 __NR_ia32_read
14#define __NR_seccomp_write_32 __NR_ia32_write
15#define __NR_seccomp_exit_32 __NR_ia32_exit
16#define __NR_seccomp_sigreturn_32 __NR_ia32_sigreturn
17#endif
18
19#include <asm-generic/seccomp.h>
20
21#endif /* _ASM_X86_SECCOMP_H */