|
@@ -12,7 +12,10 @@
|
|
#include <skas.h>
|
|
#include <skas.h>
|
|
#include <sysdep/tls.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,
|
|
static long write_ldt_entry(struct mm_id *mm_idp, int func,
|
|
struct user_desc *desc, void **addr, int done)
|
|
struct user_desc *desc, void **addr, int done)
|