diff options
| author | Ada Christine <adachristine18@gmail.com> | 2025-02-02 15:20:52 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2025-02-02 15:20:52 +0000 |
| commit | 9bc0738101979b626233ee226ece3cc8cae053ec (patch) | |
| tree | 33f608f59a3cfc062db0363c208f3b0ea05c62e3 /boot/fake_syscall_entry.S | |
| parent | 3d806c9e2fcb6226915982b6514919a3b9dac4dc (diff) | |
full flow implemented
Diffstat (limited to 'boot/fake_syscall_entry.S')
| -rw-r--r-- | boot/fake_syscall_entry.S | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/boot/fake_syscall_entry.S b/boot/fake_syscall_entry.S index f75c2d7..2ac3c11 100644 --- a/boot/fake_syscall_entry.S +++ b/boot/fake_syscall_entry.S @@ -1,8 +1,8 @@ .section .text .global fake_syscall_entry -.global fake_syscall_start - +.global fake_syscall_begin +.global fake_syscall_end .extern fake_syscall_handler /* @@ -24,8 +24,14 @@ 104 state.return_cs */ -fake_syscall_start: +fake_syscall_end: + mov %rdi, %rax + mov %rsi, %rsp + ret + +fake_syscall_begin: cli + mov %rsp, (%rsi) mov %rdi, %rsp jmp .L_fake_syscall_return |
