summaryrefslogtreecommitdiff
path: root/examples/syscall.S
diff options
context:
space:
mode:
Diffstat (limited to 'examples/syscall.S')
-rw-r--r--examples/syscall.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/syscall.S b/examples/syscall.S
index 510807bc9a..2af6f480d1 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 */