summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/i386
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/i386')
-rw-r--r--libc/sysdeps/linux/i386/sigaction.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/i386/sigaction.c b/libc/sysdeps/linux/i386/sigaction.c
index e8729647f..79eb6fde3 100644
--- a/libc/sysdeps/linux/i386/sigaction.c
+++ b/libc/sysdeps/linux/i386/sigaction.c
@@ -99,11 +99,11 @@ int __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oa
}
__asm__ __volatile__ ("pushl %%ebx\n"
- "movl %2, %%ebx\n"
+ "movl %3, %%ebx\n"
"int $0x80\n"
"popl %%ebx"
- : "=a" (result)
- : "0" (__NR_sigaction), "mr" (sig),
+ : "=a" (result), "=m" (koact)
+ : "0" (__NR_sigaction), "r" (sig), "m" (kact),
"c" (act ? __ptrvalue (&kact) : 0),
"d" (oact ? __ptrvalue (&koact) : 0));