projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61f1e7e
)
x86, syscall: Allow syscall offset to be symbolic
author
H. Peter Anvin
<hpa@linux.intel.com>
Sat, 19 Nov 2011 01:01:19 +0000
(17:01 -0800)
committer
H. Peter Anvin
<hpa@linux.intel.com>
Sat, 19 Nov 2011 01:01:19 +0000
(17:01 -0800)
Allow the specified syscall offset to be symbolic, e.g. a macro. For
offset system calls, this if nothing else makes the generated code
easier to read.
Suggested-by: H. J. Lu <hjl.tools@gmail.com>
Link:
http://lkml.kernel.org/r/1321569446-20433-7-git-send-email-hpa@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/syscalls/syscallhdr.sh
patch
|
blob
|
history
diff --git
a/arch/x86/syscalls/syscallhdr.sh
b/arch/x86/syscalls/syscallhdr.sh
index b3c5930727856b680b4266dccb183190992600a1..31fd5f1f38f7618d733a162a4828d8ade9de069f 100644
(file)
--- 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 | (
echo ""
while read nr abi name entry ; do
- echo "#define __NR_${prefix}${name}" $((nr+offset))
+ if [ -z "$offset" ]; then
+ echo "#define __NR_${prefix}${name} $nr"
+ else
+ echo "#define __NR_${prefix}${name} ($offset + $nr)"
+ fi
done
echo ""