ref: f7f39e969d3c9aeb3001f0575224b4beb2f10eba
parent: 7db9cba7d973325a4a0ed2d3d75a81c690667a22
author: Ori Bernstein <[email protected]>
date: Fri Sep 28 08:33:25 EDT 2012
Remove dead code.
--- a/libstd/syscall.s
+++ /dev/null
@@ -1,32 +1,0 @@
-.globl std$syscall
-std$syscall:
- pushl %ebp
- /*
- hack: 6 args uses %ebp, so we index
- relative to %esp.
-
- hack: We load 6 args regardless of
- how many we actually have. This may
- load junk values, but if the syscall
- doesn't use them, it's going to be
- harmless.
- */
- movl 8(%esp),%eax
- movl 12(%esp),%ebx
- movl 16(%esp),%ecx
- movl 20(%esp),%edx
- movl 24(%esp),%esi
- movl 28(%esp),%edi
- movl 32(%esp),%ebp
- int $0x80
- popl %ebp
- ret
-
-.globl _std$syscall
-_std$syscall:
- popl %ecx /* return address */
- popl %eax /* call num */
- pushl %ecx
- int $0x80
- pushl %ecx /* put the return address back */
- ret