summaryrefslogtreecommitdiff
path: root/newlib/syscall.s
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-13 14:40:09 +0200
committerMiguel <m.i@gmx.at>2018-09-13 14:40:09 +0200
commit3bba2df34be1680777ff85ad4fbc43717609ec75 (patch)
tree983e3c2b5667e3aa150502f59453ecebeeeba63a /newlib/syscall.s
parentf844fafd324fbf4c7a986df2f0814f2e2d93bcd8 (diff)
thinking about syscalls and newlib ...
Diffstat (limited to 'newlib/syscall.s')
-rw-r--r--newlib/syscall.s16
1 files changed, 0 insertions, 16 deletions
diff --git a/newlib/syscall.s b/newlib/syscall.s
deleted file mode 100644
index abce63a..0000000
--- a/newlib/syscall.s
+++ /dev/null
@@ -1,16 +0,0 @@
-.global syscall
-
-syscall:
-
- push %ebx // preserve (sysV abi convnetion)
-
- mov 0x8(%esp),%eax //syscall number
- mov 0xC(%esp),%edx //p1
- mov 0x10(%esp),%ecx //p2
- mov 0x14(%esp),%ebx //p3
-
- int $0x80
- mov %ebx, %eax // set as return value
-
- pop %ebx // preserve
- ret