diff options
author | Namhoon Kim <namhoonk@cs.unc.edu> | 2015-11-09 14:27:20 -0500 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2015-11-10 05:05:10 -0500 |
commit | a17f532bb1056742dc0ebbb6182bda063836316d (patch) | |
tree | 1eaedc9076d0bcbb39dc6c1aba192da929d660c1 /arch | |
parent | d126eb2a5053f139e5bc1b37344edd88d32bd033 (diff) |
Fix __NR_syscalls for ARM
__NR_syscalls must be a multiple of 4 for ARM. This patch adds
padding to __NR_syscalls and fixes the missing NR_litmus_syscalls
in include/litmus/unistd_32.h.
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/include/asm/unistd.h | 3 | ||||
-rw-r--r-- | arch/arm/kernel/calls.S | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h index 0c462a9e5205..7197bbe4dda1 100644 --- a/arch/arm/include/asm/unistd.h +++ b/arch/arm/include/asm/unistd.h | |||
@@ -19,7 +19,8 @@ | |||
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) | 22 | #define __NR_syscalls (388 + NR_litmus_syscalls + 3) |
23 | |||
23 | 24 | ||
24 | /* | 25 | /* |
25 | * *NOTE*: This is a ghost syscall private to the kernel. Only the | 26 | * *NOTE*: This is a ghost syscall private to the kernel. Only the |
diff --git a/arch/arm/kernel/calls.S b/arch/arm/kernel/calls.S index 7736879e2173..3e002969469a 100644 --- a/arch/arm/kernel/calls.S +++ b/arch/arm/kernel/calls.S | |||
@@ -409,7 +409,7 @@ | |||
409 | CALL(sys_wait_for_ts_release) | 409 | CALL(sys_wait_for_ts_release) |
410 | CALL(sys_release_ts) | 410 | CALL(sys_release_ts) |
411 | CALL(sys_null_call) | 411 | CALL(sys_null_call) |
412 | /* 300 */ CALL(sys_get_current_budget) | 412 | /* 400 */ CALL(sys_get_current_budget) |
413 | 413 | ||
414 | 414 | ||
415 | #ifndef syscalls_counted | 415 | #ifndef syscalls_counted |