diff options
author | Andy Lutomirski <luto@kernel.org> | 2016-01-28 18:11:24 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-01-29 03:46:38 -0500 |
commit | cfcbadb49dabb05efa23e1a0f95f3391c0a815bc (patch) | |
tree | 4db34be982c4d1e4604bd9c4fbe9e3bb6ce432aa /arch/x86/kernel | |
parent | 3e65654e3db6df6aba9c5b895f8b8e6a8d8eb508 (diff) |
x86/syscalls: Add syscall entry qualifiers
This will let us specify something like 'sys_xyz/foo' instead of
'sys_xyz' in the syscall table, where the 'foo' qualifier conveys
some extra information to the C code.
The intent is to allow things like sys_execve/ptregs to indicate
that sys_execve() touches pt_regs.
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/2de06e33dce62556b3ec662006fcb295504e296e.1454022279.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/asm-offsets_32.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/asm-offsets_64.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/asm-offsets_32.c b/arch/x86/kernel/asm-offsets_32.c index abec4c9f1c97..fdeb0ce07c16 100644 --- a/arch/x86/kernel/asm-offsets_32.c +++ b/arch/x86/kernel/asm-offsets_32.c | |||
@@ -7,7 +7,7 @@ | |||
7 | #include <linux/lguest.h> | 7 | #include <linux/lguest.h> |
8 | #include "../../../drivers/lguest/lg.h" | 8 | #include "../../../drivers/lguest/lg.h" |
9 | 9 | ||
10 | #define __SYSCALL_I386(nr, sym) [nr] = 1, | 10 | #define __SYSCALL_I386(nr, sym, qual) [nr] = 1, |
11 | static char syscalls[] = { | 11 | static char syscalls[] = { |
12 | #include <asm/syscalls_32.h> | 12 | #include <asm/syscalls_32.h> |
13 | }; | 13 | }; |
diff --git a/arch/x86/kernel/asm-offsets_64.c b/arch/x86/kernel/asm-offsets_64.c index 9677bf9a616f..d875f97d4e0b 100644 --- a/arch/x86/kernel/asm-offsets_64.c +++ b/arch/x86/kernel/asm-offsets_64.c | |||
@@ -4,11 +4,11 @@ | |||
4 | 4 | ||
5 | #include <asm/ia32.h> | 5 | #include <asm/ia32.h> |
6 | 6 | ||
7 | #define __SYSCALL_64(nr, sym) [nr] = 1, | 7 | #define __SYSCALL_64(nr, sym, qual) [nr] = 1, |
8 | static char syscalls_64[] = { | 8 | static char syscalls_64[] = { |
9 | #include <asm/syscalls_64.h> | 9 | #include <asm/syscalls_64.h> |
10 | }; | 10 | }; |
11 | #define __SYSCALL_I386(nr, sym) [nr] = 1, | 11 | #define __SYSCALL_I386(nr, sym, qual) [nr] = 1, |
12 | static char syscalls_ia32[] = { | 12 | static char syscalls_ia32[] = { |
13 | #include <asm/syscalls_32.h> | 13 | #include <asm/syscalls_32.h> |
14 | }; | 14 | }; |