summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/linux/linux_syscall.h8
-rw-r--r--sys/compat/linux/linux_syscallargs.h12
-rw-r--r--sys/compat/linux/linux_syscalls.c6
-rw-r--r--sys/compat/linux/linux_sysent.c10
4 files changed, 26 insertions, 10 deletions
diff --git a/sys/compat/linux/linux_syscall.h b/sys/compat/linux/linux_syscall.h
index a5384cec7c1..0412ef59654 100644
--- a/sys/compat/linux/linux_syscall.h
+++ b/sys/compat/linux/linux_syscall.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_syscall.h,v 1.56 2011/02/11 21:41:46 pirofti Exp $ */
+/* $OpenBSD: linux_syscall.h,v 1.57 2011/04/04 21:53:50 pirofti Exp $ */
/*
* System call numbers.
@@ -718,6 +718,12 @@
/* syscall: "fremovexattr" ret: "int" args: */
#define LINUX_SYS_fremovexattr 237
+/* syscall: "set_thread_area" ret: "int" args: "struct l_segment_descriptor *" */
+#define LINUX_SYS_set_thread_area 243
+
+/* syscall: "get_thread_area" ret: "int" args: "struct l_segment_descriptor *" */
+#define LINUX_SYS_get_thread_area 244
+
/* syscall: "fadvise64" ret: "int" args: */
#define LINUX_SYS_fadvise64 250
diff --git a/sys/compat/linux/linux_syscallargs.h b/sys/compat/linux/linux_syscallargs.h
index 862627d98d7..c8b7a16f4f9 100644
--- a/sys/compat/linux/linux_syscallargs.h
+++ b/sys/compat/linux/linux_syscallargs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_syscallargs.h,v 1.58 2011/02/11 21:41:46 pirofti Exp $ */
+/* $OpenBSD: linux_syscallargs.h,v 1.59 2011/04/04 21:53:50 pirofti Exp $ */
/*
* System call argument lists.
@@ -544,6 +544,14 @@ struct linux_sys_fcntl64_args {
syscallarg(void *) arg;
};
+struct linux_sys_set_thread_area_args {
+ syscallarg(struct l_segment_descriptor *) desc;
+};
+
+struct linux_sys_get_thread_area_args {
+ syscallarg(struct l_segment_descriptor *) desc;
+};
+
struct linux_sys_clock_gettime_args {
syscallarg(clockid_t) which;
syscallarg(struct l_timespec *) tp;
@@ -810,6 +818,8 @@ int linux_sys_flistxattr(struct proc *, void *, register_t *);
int linux_sys_removexattr(struct proc *, void *, register_t *);
int linux_sys_lremovexattr(struct proc *, void *, register_t *);
int linux_sys_fremovexattr(struct proc *, void *, register_t *);
+int linux_sys_set_thread_area(struct proc *, void *, register_t *);
+int linux_sys_get_thread_area(struct proc *, void *, register_t *);
int linux_sys_fadvise64(struct proc *, void *, register_t *);
int sys_exit(struct proc *, void *, register_t *);
int linux_sys_clock_gettime(struct proc *, void *, register_t *);
diff --git a/sys/compat/linux/linux_syscalls.c b/sys/compat/linux/linux_syscalls.c
index 529a6042863..2796049e33c 100644
--- a/sys/compat/linux/linux_syscalls.c
+++ b/sys/compat/linux/linux_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_syscalls.c,v 1.56 2011/02/11 21:41:46 pirofti Exp $ */
+/* $OpenBSD: linux_syscalls.c,v 1.57 2011/04/04 21:53:50 pirofti Exp $ */
/*
* System call names.
@@ -271,8 +271,8 @@ char *linux_syscallnames[] = {
"#240 (unimplemented linux_sys_futex)", /* 240 = unimplemented linux_sys_futex */
"#241 (unimplemented linux_sys_sched_setaffinity)", /* 241 = unimplemented linux_sys_sched_setaffinity */
"#242 (unimplemented linux_sys_sched_getaffinity)", /* 242 = unimplemented linux_sys_sched_getaffinity */
- "#243 (unimplemented linux_sys_set_thread_area)", /* 243 = unimplemented linux_sys_set_thread_area */
- "#244 (unimplemented linux_sys_get_thread_area)", /* 244 = unimplemented linux_sys_get_thread_area */
+ "set_thread_area", /* 243 = set_thread_area */
+ "get_thread_area", /* 244 = get_thread_area */
"#245 (unimplemented linux_sys_io_setup)", /* 245 = unimplemented linux_sys_io_setup */
"#246 (unimplemented linux_sys_io_destroy)", /* 246 = unimplemented linux_sys_io_destroy */
"#247 (unimplemented linux_sys_io_getevents)", /* 247 = unimplemented linux_sys_io_getevents */
diff --git a/sys/compat/linux/linux_sysent.c b/sys/compat/linux/linux_sysent.c
index 11a8f7a5e23..e5b8a2371f6 100644
--- a/sys/compat/linux/linux_sysent.c
+++ b/sys/compat/linux/linux_sysent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_sysent.c,v 1.57 2011/02/11 21:41:46 pirofti Exp $ */
+/* $OpenBSD: linux_sysent.c,v 1.58 2011/04/04 21:53:50 pirofti Exp $ */
/*
* System call switch table.
@@ -532,10 +532,10 @@ struct sysent linux_sysent[] = {
sys_nosys }, /* 241 = unimplemented linux_sys_sched_setaffinity */
{ 0, 0, 0,
sys_nosys }, /* 242 = unimplemented linux_sys_sched_getaffinity */
- { 0, 0, 0,
- sys_nosys }, /* 243 = unimplemented linux_sys_set_thread_area */
- { 0, 0, 0,
- sys_nosys }, /* 244 = unimplemented linux_sys_get_thread_area */
+ { 1, s(struct linux_sys_set_thread_area_args), 0,
+ linux_sys_set_thread_area }, /* 243 = set_thread_area */
+ { 1, s(struct linux_sys_get_thread_area_args), 0,
+ linux_sys_get_thread_area }, /* 244 = get_thread_area */
{ 0, 0, 0,
sys_nosys }, /* 245 = unimplemented linux_sys_io_setup */
{ 0, 0, 0,