forked from Minki/linux
1f57d5d85b
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>
16 lines
327 B
Bash
16 lines
327 B
Bash
#!/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"
|