summaryrefslogtreecommitdiffstats
path: root/arch/x86/entry/syscalls/syscalltbl.sh
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2015-06-03 18:36:41 +0200
committerIngo Molnar <mingo@kernel.org>2015-06-04 07:37:37 +0200
commit1f57d5d85ba7f1f467173ff33f51d01a91f9aaf1 (patch)
tree076d5f9dee6c5222e44b6d4f2d0c33179a6998e4 /arch/x86/entry/syscalls/syscalltbl.sh
parentd36f947904dba0935a0e74dc9df2ef57caeb7d03 (diff)
downloadcachepc-linux-1f57d5d85ba7f1f467173ff33f51d01a91f9aaf1.tar.gz
cachepc-linux-1f57d5d85ba7f1f467173ff33f51d01a91f9aaf1.zip
x86/asm/entry: Move the arch/x86/syscalls/ definitions to arch/x86/entry/syscalls/
The build time generated syscall definitions are entry code related, move them into the arch/x86/entry/ directory. Cc: Borislav Petkov <bp@alien8.de> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Denys Vlasenko <dvlasenk@redhat.com> Cc: Brian Gerst <brgerst@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/entry/syscalls/syscalltbl.sh')
-rw-r--r--arch/x86/entry/syscalls/syscalltbl.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/x86/entry/syscalls/syscalltbl.sh b/arch/x86/entry/syscalls/syscalltbl.sh
new file mode 100644
index 000000000000..0e7f8ec071e7
--- /dev/null
+++ b/arch/x86/entry/syscalls/syscalltbl.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+in="$1"
+out="$2"
+
+grep '^[0-9]' "$in" | sort -n | (
+ while read nr abi name entry compat; do
+ abi=`echo "$abi" | tr '[a-z]' '[A-Z]'`
+ if [ -n "$compat" ]; then
+ echo "__SYSCALL_${abi}($nr, $entry, $compat)"
+ elif [ -n "$entry" ]; then
+ echo "__SYSCALL_${abi}($nr, $entry, $entry)"
+ fi
+ done
+) > "$out"