summaryrefslogtreecommitdiff
path: root/src/init/syscall.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/init/syscall.s')
-rw-r--r--src/init/syscall.s24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/init/syscall.s b/src/init/syscall.s
deleted file mode 100644
index 0af49f3..0000000
--- a/src/init/syscall.s
+++ /dev/null
@@ -1,24 +0,0 @@
-.section .text
-.global _syscall
-.type _syscall, @function
-_syscall:
- push %ebx // preserve registers
- push %esi
- push %edi
- push %ebp
-
- mov 20(%esp), %eax
- mov 24(%esp), %ebx
- mov %esp, %ecx
- mov $_syscall_ret, %edx
- mov 28(%esp), %esi
- mov 32(%esp), %edi
- mov 36(%esp), %ebp
- sysenter
-
-_syscall_ret:
- pop %ebp
- pop %edi
- pop %esi
- pop %ebx
- ret