diff options
Diffstat (limited to 'src/libc/syscall.s')
-rw-r--r-- | src/libc/syscall.s | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libc/syscall.s b/src/libc/syscall.s new file mode 100644 index 0000000..07f5631 --- /dev/null +++ b/src/libc/syscall.s @@ -0,0 +1,9 @@ +.section .text +.global _syscall +.type _syscall, @function +_syscall: + push %r10 + mov %rcx, %r10 + syscall + pop %r10 + ret |