summaryrefslogtreecommitdiff
path: root/support/syscall-gen/gencalls.awk
diff options
context:
space:
mode:
Diffstat (limited to 'support/syscall-gen/gencalls.awk')
-rw-r--r--support/syscall-gen/gencalls.awk4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/syscall-gen/gencalls.awk b/support/syscall-gen/gencalls.awk
index ebed585..d625550 100644
--- a/support/syscall-gen/gencalls.awk
+++ b/support/syscall-gen/gencalls.awk
@@ -79,7 +79,7 @@ $Typefield == "STD" || (!masterfmt && $1 == "asmlinkage") {
tabs="\t\t"
else
tabs = "\t"
- num = sprintf("%s%s: scno = %d", numcst, tabs, numbertab[name]);
+ num = sprintf("%s%s: scno = %d", numcst, tabs, $1);
scnums[nnums++] = num
if (nocode)
@@ -107,7 +107,7 @@ $Typefield == "STD" || (!masterfmt && $1 == "asmlinkage") {
sep = ", ";
}
call = call sprintf("\n\t -> (syscall(Sys%s", name)
- for (i = 1; i < argc; i++) {
+ for (i = 0; i < argc; i++) {
call = call sprintf(", a(%s)", argname[i])
}
call = call sprintf(") : %s)\n}", ret)