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 510807b..2af6f48 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 */