From 0ce2d95d10bc7ecab7fcf1e4bb5d9942625f91e7 Mon Sep 17 00:00:00 2001 From: Bjoern Brandenburg Date: Wed, 30 Apr 2014 18:35:11 +0200 Subject: Add x86 syscall defs for get_current_budget --- arch/x86/syscalls/syscall_32.tbl | 1 + arch/x86/syscalls/syscall_64.tbl | 2 ++ include/litmus/unistd_32.h | 3 +-- include/litmus/unistd_64.h | 4 +++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/x86/syscalls/syscall_32.tbl b/arch/x86/syscalls/syscall_32.tbl index 34680a5292de..a0ec8abc51f3 100644 --- a/arch/x86/syscalls/syscall_32.tbl +++ b/arch/x86/syscalls/syscall_32.tbl @@ -377,3 +377,4 @@ 368 i386 wait_for_ts_release sys_wait_for_ts_release 369 i386 release_ts sys_release_ts 370 i386 null_call sys_null_call +371 i386 get_current_budget sys_get_current_budget diff --git a/arch/x86/syscalls/syscall_64.tbl b/arch/x86/syscalls/syscall_64.tbl index cbd1b6b402a9..04f5b7483db3 100644 --- a/arch/x86/syscalls/syscall_64.tbl +++ b/arch/x86/syscalls/syscall_64.tbl @@ -342,6 +342,8 @@ 360 common wait_for_ts_release sys_wait_for_ts_release 361 common release_ts sys_release_ts 362 common null_call sys_null_call +363 common get_current_budget sys_get_current_budget + # # 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 94264c27d9ac..d9eab50f7a71 100644 --- a/include/litmus/unistd_32.h +++ b/include/litmus/unistd_32.h @@ -17,5 +17,4 @@ #define __NR_wait_for_ts_release __LSC(9) #define __NR_release_ts __LSC(10) #define __NR_null_call __LSC(11) - -#define NR_litmus_syscalls 12 +#define __NR_get_current_budget __LSC(12) diff --git a/include/litmus/unistd_64.h b/include/litmus/unistd_64.h index d5ced0d2642c..3096bf2f2798 100644 --- a/include/litmus/unistd_64.h +++ b/include/litmus/unistd_64.h @@ -29,5 +29,7 @@ __SYSCALL(__NR_wait_for_ts_release, sys_wait_for_ts_release) __SYSCALL(__NR_release_ts, sys_release_ts) #define __NR_null_call __LSC(11) __SYSCALL(__NR_null_call, sys_null_call) +#define __NR_get_current_budget __LSC(12) +__SYSCALL(____NR_get_current_budget, sys_get_current_budget) -#define NR_litmus_syscalls 12 +#define NR_litmus_syscalls 13 -- cgit v1.2.2