aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/syscalls/syscallhdr.sh
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/syscalls/syscallhdr.sh')
-rw-r--r--arch/x86/syscalls/syscallhdr.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/x86/syscalls/syscallhdr.sh b/arch/x86/syscalls/syscallhdr.sh
index b3c59307278..31fd5f1f38f 100644
--- a/arch/x86/syscalls/syscallhdr.sh
+++ b/arch/x86/syscalls/syscallhdr.sh
@@ -15,7 +15,11 @@ grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | (
15 echo "" 15 echo ""
16 16
17 while read nr abi name entry ; do 17 while read nr abi name entry ; do
18 echo "#define __NR_${prefix}${name}" $((nr+offset)) 18 if [ -z "$offset" ]; then
19 echo "#define __NR_${prefix}${name} $nr"
20 else
21 echo "#define __NR_${prefix}${name} ($offset + $nr)"
22 fi
19 done 23 done
20 24
21 echo "" 25 echo ""