summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-09-13 04:34:44 -0400
committerOri Bernstein <ori@eigenstate.org>2017-09-13 04:34:44 -0400
commitb0ba815356f0c434568f9d799ea4c7d470be6173 (patch)
treed8c4519fa393c95378738351df423b6a6dac3cb8 /support
parent90fcb10fa853eb2423ea2351f41a18e2ac0247d6 (diff)
downloadmc-b0ba815356f0c434568f9d799ea4c7d470be6173.tar.gz
Fix missing syscall args.
Shit, bug in the code gen.
Diffstat (limited to 'support')
-rw-r--r--support/syscall-gen/gencalls.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/syscall-gen/gencalls.awk b/support/syscall-gen/gencalls.awk
index ebed585..c4b1fa3 100644
--- a/support/syscall-gen/gencalls.awk
+++ b/support/syscall-gen/gencalls.awk
@@ -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)