summaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/seccomp.h
blob: 1d8a2e2c75c1f5f933b5618903565cdfcb308064 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef __ASM_SECCOMP_H

#include <linux/unistd.h>

/*
 * Kludge alert:
 *
 * The generic seccomp code currently allows only a single compat ABI.	Until
 * this is fixed we priorize O32 as the compat ABI over N32.
 */
#ifdef CONFIG_MIPS32_O32

#define __NR_seccomp_read_32		4003
#define __NR_seccomp_write_32		4004
#define __NR_seccomp_exit_32		4001
#define __NR_seccomp_sigreturn_32	4193	/* rt_sigreturn */

#elif defined(CONFIG_MIPS32_N32)

#define __NR_seccomp_read_32		6000
#define __NR_seccomp_write_32		6001
#define __NR_seccomp_exit_32		6058
#define __NR_seccomp_sigreturn_32	6211	/* rt_sigreturn */

#endif /* CONFIG_MIPS32_O32 */

#include <asm-generic/seccomp.h>

#endif /* __ASM_SECCOMP_H */
OpenPOWER on IntegriCloud