aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNamhoon Kim <namhoonk@cs.unc.edu>2014-11-04 05:01:02 -0500
committerNamhoon Kim <namhoonk@cs.unc.edu>2014-11-04 05:01:02 -0500
commit3805cbc73a63f74166c65446395785390d7ad44b (patch)
treefe410ac1f7c84993a135fe9da75fa351f76c8242
parent6d16993db5e56e01d1b19f149ef805ab7aff8e12 (diff)
Add set_mc2_task_param system call
-rw-r--r--arch/arm/include/asm/unistd.h4
-rw-r--r--arch/arm/kernel/calls.S5
-rw-r--r--arch/x86/syscalls/syscall_32.tbl5
-rw-r--r--arch/x86/syscalls/syscall_64.tbl6
-rw-r--r--include/litmus/unistd_32.h3
-rw-r--r--include/litmus/unistd_64.h5
6 files changed, 16 insertions, 12 deletions
diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h
index 8b26b328d3f7..0db825dda11f 100644
--- a/arch/arm/include/asm/unistd.h
+++ b/arch/arm/include/asm/unistd.h
@@ -14,8 +14,8 @@
14#define __ASM_ARM_UNISTD_H 14#define __ASM_ARM_UNISTD_H
15 15
16#include <uapi/asm/unistd.h> 16#include <uapi/asm/unistd.h>
17 17/** __NR_syscalls padding */
18#define __NR_syscalls (380 + NR_litmus_syscalls) 18#define __NR_syscalls (380 + NR_litmus_syscalls + 1)
19 19
20#define __ARM_NR_cmpxchg (__ARM_NR_BASE+0x00fff0) 20#define __ARM_NR_cmpxchg (__ARM_NR_BASE+0x00fff0)
21 21
diff --git a/arch/arm/kernel/calls.S b/arch/arm/kernel/calls.S
index ad22fcc42899..34c5ee7964eb 100644
--- a/arch/arm/kernel/calls.S
+++ b/arch/arm/kernel/calls.S
@@ -401,8 +401,9 @@
401 CALL(sys_wait_for_ts_release) 401 CALL(sys_wait_for_ts_release)
402/* 390 */ CALL(sys_release_ts) 402/* 390 */ CALL(sys_release_ts)
403 CALL(sys_null_call) 403 CALL(sys_null_call)
404 CALL(sys_reservation_create) 404 CALL(sys_reservation_create)
405 CALL(sys_reservation_destroy) 405 CALL(sys_reservation_destroy)
406 CALL(sys_set_mc2_task_param)
406 407
407#ifndef syscalls_counted 408#ifndef syscalls_counted
408.equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls 409.equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
diff --git a/arch/x86/syscalls/syscall_32.tbl b/arch/x86/syscalls/syscall_32.tbl
index 290c879cda4a..20f6cdcf56dd 100644
--- a/arch/x86/syscalls/syscall_32.tbl
+++ b/arch/x86/syscalls/syscall_32.tbl
@@ -370,5 +370,6 @@
370360 i386 wait_for_ts_release sys_wait_for_ts_release 370360 i386 wait_for_ts_release sys_wait_for_ts_release
371361 i386 release_ts sys_release_ts 371361 i386 release_ts sys_release_ts
372362 i386 null_call sys_null_call 372362 i386 null_call sys_null_call
373363 i386 reservation_create sys_reservation_create 373363 i386 reservation_create sys_reservation_create
374364 i386 reservation_destroy sys_reservation_destroy 374364 i386 reservation_destroy sys_reservation_destroy
375365 i386 set_mc2_task_param sys_set_mc2_task_param
diff --git a/arch/x86/syscalls/syscall_64.tbl b/arch/x86/syscalls/syscall_64.tbl
index d39de2aed519..f3d142c2a900 100644
--- a/arch/x86/syscalls/syscall_64.tbl
+++ b/arch/x86/syscalls/syscall_64.tbl
@@ -333,9 +333,9 @@
333360 common wait_for_ts_release sys_wait_for_ts_release 333360 common wait_for_ts_release sys_wait_for_ts_release
334361 common release_ts sys_release_ts 334361 common release_ts sys_release_ts
335362 common null_call sys_null_call 335362 common null_call sys_null_call
336363 common reservation_create sys_reservation_create 336363 common reservation_create sys_reservation_create
337364 common reservation_destroy sys_reservation_destroy 337364 common reservation_destroy sys_reservation_destroy
338 338365 common set_mc2_task_param sys_set_mc2_task_param
339 339
340# 340#
341# x32-specific system call numbers start at 512 to avoid cache impact 341# x32-specific system call numbers start at 512 to avoid cache impact
diff --git a/include/litmus/unistd_32.h b/include/litmus/unistd_32.h
index 5f6a2749c6a7..202f439a62ae 100644
--- a/include/litmus/unistd_32.h
+++ b/include/litmus/unistd_32.h
@@ -19,5 +19,6 @@
19#define __NR_null_call __LSC(11) 19#define __NR_null_call __LSC(11)
20#define __NR_reservation_create __LSC(12) 20#define __NR_reservation_create __LSC(12)
21#define __NR_reservation_destroy __LSC(13) 21#define __NR_reservation_destroy __LSC(13)
22#define __NR_set_mc2_task_param __LSC(14)
22 23
23#define NR_litmus_syscalls 14 24#define NR_litmus_syscalls 15
diff --git a/include/litmus/unistd_64.h b/include/litmus/unistd_64.h
index 3e6b1d330336..ba2c91c5bf8c 100644
--- a/include/litmus/unistd_64.h
+++ b/include/litmus/unistd_64.h
@@ -33,6 +33,7 @@ __SYSCALL(__NR_null_call, sys_null_call)
33__SYSCALL(__NR_reservation_create, sys_reservation_create) 33__SYSCALL(__NR_reservation_create, sys_reservation_create)
34#define __NR_reservation_destroy __LSC(13) 34#define __NR_reservation_destroy __LSC(13)
35__SYSCALL(__NR_reservation_destroy, sys_reservation_destroy) 35__SYSCALL(__NR_reservation_destroy, sys_reservation_destroy)
36#define __NR_set_mc2_task_param __LSC(14)
37__SYSCALL(__NR_set_mc2_task_param, sys_set_mc2_task_param)
36 38
37 39#define NR_litmus_syscalls 15
38#define NR_litmus_syscalls 14