mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-08 17:18:05 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
32
arch/mips/include/asm/seccomp.h
Normal file
32
arch/mips/include/asm/seccomp.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
#ifndef __ASM_SECCOMP_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 __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 */
|
||||
|
||||
#endif /* __ASM_SECCOMP_H */
|
Loading…
Add table
Add a link
Reference in a new issue