diff options
| author | Jakob Kaivo <jkk@ung.org> | 2020-08-12 12:52:58 -0400 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2020-08-12 12:52:58 -0400 |
| commit | 60c3831e53b7afa5dd372601250e7e8739329383 (patch) | |
| tree | 56524ad67c32ed4bf4aa24ab06b310e5b1b5d542 /src/_sys.x86-32.s | |
| parent | 4d4132eaebe78939ee32e2dd9139913df7665bea (diff) | |
move more stuff out of nonstd/
Diffstat (limited to 'src/_sys.x86-32.s')
| -rw-r--r-- | src/_sys.x86-32.s | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/_sys.x86-32.s b/src/_sys.x86-32.s new file mode 100644 index 00000000..ad60201d --- /dev/null +++ b/src/_sys.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 |
