diff options
author | dzwdz | 2021-07-21 21:31:52 +0200 |
---|---|---|
committer | dzwdz | 2021-07-21 21:31:52 +0200 |
commit | 36089d20ca1f7c57f36c4172759a5084bdf87a3a (patch) | |
tree | ac31e75f3379e0dcad6cb98f23cba6cbce236380 /src/init/syscall.s | |
parent | 46fb83d6eb44b5d52520783570dc40b7ef25260b (diff) |
barebones syscall
Diffstat (limited to 'src/init/syscall.s')
-rw-r--r-- | src/init/syscall.s | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/init/syscall.s b/src/init/syscall.s new file mode 100644 index 0000000..ebd9d0e --- /dev/null +++ b/src/init/syscall.s @@ -0,0 +1,9 @@ +.section .text +.global _syscall +.type _syscall, @function +_syscall: + mov %esp, %ecx + mov $_syscall_ret, %edx + sysenter +_syscall_ret: + ret |