From 84217308cf704fda8a9db817b458ccadf444efe9 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 8 Feb 2019 18:45:05 -0500 Subject: add headers and assembly --- src/nonstd/x86-32.s | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/nonstd/x86-32.s (limited to 'src/nonstd/x86-32.s') diff --git a/src/nonstd/x86-32.s b/src/nonstd/x86-32.s new file mode 100644 index 00000000..ad60201d --- /dev/null +++ b/src/nonstd/x86-32.s @@ -0,0 +1,18 @@ +.global __syscall +__syscall: + mov 4(%esp), %eax + mov 8(%esp), %ebx + mov 12(%esp), %ecx + mov 16(%esp), %edx + mov 20(%esp), %esi + mov 24(%esp), %edi + mov 28(%esp), %ebp + sysenter + ret + +/* FIXME: this seems to be unpossible to put in a shared library */ +/* FIXME: it may be worthwhile to separate this into crt1.s */ +.global _start +_start: + /* TODO */ + call __libc_start -- cgit v1.2.1