diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/litmus/unistd_32.h (renamed from include/litmus/unistd.h) | 2 | ||||
-rw-r--r-- | include/litmus/unistd_64.h | 37 |
2 files changed, 38 insertions, 1 deletions
diff --git a/include/litmus/unistd.h b/include/litmus/unistd_32.h index 6fec5364adaf..dbddc6523f8e 100644 --- a/include/litmus/unistd.h +++ b/include/litmus/unistd_32.h | |||
@@ -7,7 +7,7 @@ | |||
7 | 7 | ||
8 | #define __NR_set_rt_task_param __LSC(0) | 8 | #define __NR_set_rt_task_param __LSC(0) |
9 | #define __NR_get_rt_task_param __LSC(1) | 9 | #define __NR_get_rt_task_param __LSC(1) |
10 | #define __NR_sleep_next_period __LSC(2) | 10 | #define __NR_complete_job __LSC(2) |
11 | #define __NR_od_open __LSC(3) | 11 | #define __NR_od_open __LSC(3) |
12 | #define __NR_od_close __LSC(4) | 12 | #define __NR_od_close __LSC(4) |
13 | #define __NR_fmlp_down __LSC(5) | 13 | #define __NR_fmlp_down __LSC(5) |
diff --git a/include/litmus/unistd_64.h b/include/litmus/unistd_64.h new file mode 100644 index 000000000000..f0618e75348d --- /dev/null +++ b/include/litmus/unistd_64.h | |||
@@ -0,0 +1,37 @@ | |||
1 | /* | ||
2 | * included from arch/x86/include/asm/unistd_64.h | ||
3 | * | ||
4 | * LITMUS^RT syscalls with "relative" numbers | ||
5 | */ | ||
6 | #define __LSC(x) (__NR_LITMUS + x) | ||
7 | |||
8 | #define __NR_set_rt_task_param __LSC(0) | ||
9 | __SYSCALL(__NR_set_rt_task_param, sys_set_rt_task_param) | ||
10 | #define __NR_get_rt_task_param __LSC(1) | ||
11 | __SYSCALL(__NR_get_rt_task_param, sys_get_rt_task_param) | ||
12 | #define __NR_complete_job __LSC(2) | ||
13 | __SYSCALL(__NR_complete_job, sys_complete_job) | ||
14 | #define __NR_od_open __LSC(3) | ||
15 | __SYSCALL(__NR_od_open, sys_od_open) | ||
16 | #define __NR_od_close __LSC(4) | ||
17 | __SYSCALL(__NR_od_close, sys_od_close) | ||
18 | #define __NR_fmlp_down __LSC(5) | ||
19 | __SYSCALL(__NR_fmlp_down, sys_fmlp_down) | ||
20 | #define __NR_fmlp_up __LSC(6) | ||
21 | __SYSCALL(__NR_fmlp_up, sys_fmlp_up) | ||
22 | #define __NR_srp_down __LSC(7) | ||
23 | __SYSCALL(__NR_srp_down, sys_srp_down) | ||
24 | #define __NR_srp_up __LSC(8) | ||
25 | __SYSCALL(__NR_srp_up, sys_srp_up) | ||
26 | #define __NR_query_job_no __LSC(9) | ||
27 | __SYSCALL(__NR_query_job_no, sys_query_job_no) | ||
28 | #define __NR_wait_for_job_release __LSC(10) | ||
29 | __SYSCALL(__NR_wait_for_job_release, sys_wait_for_job_release) | ||
30 | #define __NR_wait_for_ts_release __LSC(11) | ||
31 | __SYSCALL(__NR_wait_for_ts_release, sys_wait_for_ts_release) | ||
32 | #define __NR_release_ts __LSC(12) | ||
33 | __SYSCALL(__NR_release_ts, sys_release_ts) | ||
34 | #define __NR_null_call __LSC(13) | ||
35 | __SYSCALL(__NR_null_call, sys_null_call) | ||
36 | |||
37 | #define NR_litmus_syscalls 14 | ||