aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorNamhoon Kim <namhoonk@cs.unc.edu>2016-05-01 16:47:16 -0400
committerNamhoon Kim <namhoonk@cs.unc.edu>2016-05-01 16:47:16 -0400
commit8c20bdbf935c54784e634af2039a5897581e65e8 (patch)
tree296487b40226983df01028d48d10ac8e3fbf399a /arch
parent643dae844fc39fa3dc9f45db98070cb29e99e3d5 (diff)
Add system calls for RTSS16
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/include/asm/unistd.h2
-rw-r--r--arch/arm/kernel/calls.S3
-rw-r--r--arch/x86/syscalls/syscall_32.tbl2
-rw-r--r--arch/x86/syscalls/syscall_64.tbl3
4 files changed, 7 insertions, 3 deletions
diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h
index 3b7d36b921d3..5291b703ed3f 100644
--- a/arch/arm/include/asm/unistd.h
+++ b/arch/arm/include/asm/unistd.h
@@ -19,7 +19,7 @@
19 * This may need to be greater than __NR_last_syscall+1 in order to 19 * This may need to be greater than __NR_last_syscall+1 in order to
20 * account for the padding in the syscall table 20 * account for the padding in the syscall table
21 */ 21 */
22#define __NR_syscalls (388 + NR_litmus_syscalls + 2) 22#define __NR_syscalls (388 + NR_litmus_syscalls + 0)
23 23
24 24
25/* 25/*
diff --git a/arch/arm/kernel/calls.S b/arch/arm/kernel/calls.S
index 6c2ad82fd2c8..55dc86323c86 100644
--- a/arch/arm/kernel/calls.S
+++ b/arch/arm/kernel/calls.S
@@ -415,7 +415,8 @@
415 CALL(sys_set_mc2_task_param) 415 CALL(sys_set_mc2_task_param)
416 CALL(sys_set_page_color) 416 CALL(sys_set_page_color)
417/* 405 */ CALL(sys_test_call) 417/* 405 */ CALL(sys_test_call)
418 418 CALL(sys_run_test)
419 CALL(sys_lock_buffer)
419 420
420#ifndef syscalls_counted 421#ifndef syscalls_counted
421.equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls 422.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 075709a93d34..b303a9b2183a 100644
--- a/arch/x86/syscalls/syscall_32.tbl
+++ b/arch/x86/syscalls/syscall_32.tbl
@@ -383,3 +383,5 @@
383374 i386 set_mc2_task_param sys_set_mc2_task_param 383374 i386 set_mc2_task_param sys_set_mc2_task_param
384375 i386 set_page_color sys_set_page_color 384375 i386 set_page_color sys_set_page_color
385376 i386 test_call sys_test_call 385376 i386 test_call sys_test_call
386377 i386 run_test sys_run_test
387378 i386 lock_buffer sys_lock_buffer
diff --git a/arch/x86/syscalls/syscall_64.tbl b/arch/x86/syscalls/syscall_64.tbl
index e8fdeecd3d21..5f24a80930cc 100644
--- a/arch/x86/syscalls/syscall_64.tbl
+++ b/arch/x86/syscalls/syscall_64.tbl
@@ -348,7 +348,8 @@
348366 common set_mc2_task_param sys_set_mc2_task_param 348366 common set_mc2_task_param sys_set_mc2_task_param
349367 common set_page_color sys_set_page_color 349367 common set_page_color sys_set_page_color
350368 common test_call sys_test_call 350368 common test_call sys_test_call
351 351369 common run_test sys_run_test
352370 common lock_buffer sys_lock_buffer
352 353
353# 354#
354# x32-specific system call numbers start at 512 to avoid cache impact 355# x32-specific system call numbers start at 512 to avoid cache impact