]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - examples/syscall.S
* Patch by Marc Singer, 29 May 2003:
[karo-tx-uboot.git] / examples / syscall.S
index 510807bc9a7cb43936c0650faf490344bf3dd842..2af6f480d17d7e1da2dce99764ed3ce2f0330707 100644 (file)
@@ -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 */