-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIPS] Fixup secure computing stuff.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
- Loading branch information
Ralf Baechle
committed
Jul 31, 2007
1 parent
01754bb
commit 293c5bd
Showing
15 changed files
with
98 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#ifndef __ASM_SECCOMP_H | ||
|
||
#include <linux/thread_info.h> | ||
#include <linux/unistd.h> | ||
|
||
#define __NR_seccomp_read __NR_read | ||
#define __NR_seccomp_write __NR_write | ||
#define __NR_seccomp_exit __NR_exit | ||
#define __NR_seccomp_sigreturn __NR_rt_sigreturn | ||
|
||
/* | ||
* 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 TIF_32BIT TIF_32BIT_REGS | ||
|
||
#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 TIF_32BIT _TIF_32BIT_ADDR | ||
|
||
#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 */ | ||
|
||
#endif /* __ASM_SECCOMP_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters