aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2009-12-08 11:55:21 -0500
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2009-12-08 12:47:31 -0500
commit3cf82fa74c1bb2f3778286b15fd9f7feb5af3aae (patch)
treea49cf07b68f2a271439fe0c88dbfdf180c784715
parent66517a6e2a0a57a2d3338fc939a33b4e7e357e15 (diff)
add LITMUS^RT system calls to x86
-rw-r--r--arch/x86/kernel/syscall_table_32.S15
-rw-r--r--include/asm-x86/unistd_32.h6
-rw-r--r--include/litmus/unistd.h19
3 files changed, 39 insertions, 1 deletions
diff --git a/arch/x86/kernel/syscall_table_32.S b/arch/x86/kernel/syscall_table_32.S
index 8344c70adf61..27868b3742b1 100644
--- a/arch/x86/kernel/syscall_table_32.S
+++ b/arch/x86/kernel/syscall_table_32.S
@@ -324,3 +324,18 @@ ENTRY(sys_call_table)
324 .long sys_timerfd 324 .long sys_timerfd
325 .long sys_eventfd 325 .long sys_eventfd
326 .long sys_fallocate 326 .long sys_fallocate
327 /* LITMUS */
328 .long sys_set_rt_task_param /* 325 */
329 .long sys_get_rt_task_param
330 .long sys_complete_job
331 .long sys_od_open
332 .long sys_od_close
333 .long sys_fmlp_down
334 .long sys_fmlp_up
335 .long sys_srp_down
336 .long sys_srp_up
337 .long sys_query_job_no
338 .long sys_wait_for_job_release
339 .long sys_wait_for_ts_release
340 .long sys_release_ts
341 .long sys_null_call
diff --git a/include/asm-x86/unistd_32.h b/include/asm-x86/unistd_32.h
index 9b15545eb9b5..36fec8409b0f 100644
--- a/include/asm-x86/unistd_32.h
+++ b/include/asm-x86/unistd_32.h
@@ -331,9 +331,13 @@
331#define __NR_eventfd 323 331#define __NR_eventfd 323
332#define __NR_fallocate 324 332#define __NR_fallocate 324
333 333
334#define __NR_LITMUS 325
335
336#include "litmus/unistd.h"
337
334#ifdef __KERNEL__ 338#ifdef __KERNEL__
335 339
336#define NR_syscalls 325 340#define NR_syscalls 324 + NR_litmus_syscalls
337 341
338#define __ARCH_WANT_IPC_PARSE_VERSION 342#define __ARCH_WANT_IPC_PARSE_VERSION
339#define __ARCH_WANT_OLD_READDIR 343#define __ARCH_WANT_OLD_READDIR
diff --git a/include/litmus/unistd.h b/include/litmus/unistd.h
new file mode 100644
index 000000000000..d83842d3e5da
--- /dev/null
+++ b/include/litmus/unistd.h
@@ -0,0 +1,19 @@
1
2#define __LSC(x) (__NR_LITMUS + x)
3
4#define __NR_set_rt_task_param __LSC(0)
5#define __NR_get_rt_task_param __LSC(1)
6#define __NR_sleep_next_period __LSC(2)
7#define __NR_od_open __LSC(3)
8#define __NR_od_close __LSC(4)
9#define __NR_fmlp_down __LSC(5)
10#define __NR_fmlp_up __LSC(6)
11#define __NR_srp_down __LSC(7)
12#define __NR_srp_up __LSC(8)
13#define __NR_query_job_no __LSC(9)
14#define __NR_wait_for_job_release __LSC(10)
15#define __NR_wait_for_ts_release __LSC(11)
16#define __NR_release_ts __LSC(12)
17#define __NR_null_call __LSC(13)
18
19#define NR_litmus_syscalls 14