aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/sys-x86_64/syscalls.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/sys-x86_64/syscalls.c')
-rw-r--r--arch/um/sys-x86_64/syscalls.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/arch/um/sys-x86_64/syscalls.c b/arch/um/sys-x86_64/syscalls.c
index b3f6350cac44..d0ff832c9eaf 100644
--- a/arch/um/sys-x86_64/syscalls.c
+++ b/arch/um/sys-x86_64/syscalls.c
@@ -29,36 +29,6 @@ asmlinkage long sys_uname64(struct new_utsname __user * name)
29 return err ? -EFAULT : 0; 29 return err ? -EFAULT : 0;
30} 30}
31 31
32#ifdef CONFIG_MODE_TT
33extern long arch_prctl(int code, unsigned long addr);
34
35static long arch_prctl_tt(int code, unsigned long addr)
36{
37 unsigned long tmp;
38 long ret;
39
40 switch(code){
41 case ARCH_SET_GS:
42 case ARCH_SET_FS:
43 ret = arch_prctl(code, addr);
44 break;
45 case ARCH_GET_FS:
46 case ARCH_GET_GS:
47 ret = arch_prctl(code, (unsigned long) &tmp);
48 if(!ret)
49 ret = put_user(tmp, (long __user *)addr);
50 break;
51 default:
52 ret = -EINVAL;
53 break;
54 }
55
56 return(ret);
57}
58#endif
59
60#ifdef CONFIG_MODE_SKAS
61
62long arch_prctl_skas(struct task_struct *task, int code, 32long arch_prctl_skas(struct task_struct *task, int code,
63 unsigned long __user *addr) 33 unsigned long __user *addr)
64{ 34{
@@ -119,7 +89,6 @@ long arch_prctl_skas(struct task_struct *task, int code,
119 89
120 return ret; 90 return ret;
121} 91}
122#endif
123 92
124long sys_arch_prctl(int code, unsigned long addr) 93long sys_arch_prctl(int code, unsigned long addr)
125{ 94{