diff options
Diffstat (limited to 'examples/syscall.S')
-rw-r--r-- | examples/syscall.S | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/syscall.S b/examples/syscall.S index 510807bc9a7..2af6f480d17 100644 --- a/examples/syscall.S +++ b/examples/syscall.S @@ -76,7 +76,11 @@ mon_free: #define SYSCALL(name,n) \ .globl SYMBOL_NAME(name) ; \ SYMBOL_NAME_LABEL(name) ; \ - ret + movl $n, %eax ;\ + pushl %ebx; \ + pushl %ecx; \ + int $0x40 ;\ + #endif /* CONFIG_I386 */ |