diff options
Diffstat (limited to 'kernel/arch/x86/um/ldt.c')
-rw-r--r-- | kernel/arch/x86/um/ldt.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/arch/x86/um/ldt.c b/kernel/arch/x86/um/ldt.c index 5c0b711d2..836a1eb5d 100644 --- a/kernel/arch/x86/um/ldt.c +++ b/kernel/arch/x86/um/ldt.c @@ -6,12 +6,16 @@ #include <linux/mm.h> #include <linux/sched.h> #include <linux/slab.h> +#include <linux/uaccess.h> #include <asm/unistd.h> #include <os.h> #include <skas.h> #include <sysdep/tls.h> -extern int modify_ldt(int func, void *ptr, unsigned long bytecount); +static inline int modify_ldt (int func, void *ptr, unsigned long bytecount) +{ + return syscall(__NR_modify_ldt, func, ptr, bytecount); +} static long write_ldt_entry(struct mm_id *mm_idp, int func, struct user_desc *desc, void **addr, int done) |