diff options
author | dzwdz | 2022-08-19 23:36:29 +0200 |
---|---|---|
committer | dzwdz | 2022-08-19 23:36:29 +0200 |
commit | 040bb34290c9a4305e13637e002060411e5a8385 (patch) | |
tree | 5bdd71a8925519d5f2e22d60a9fdd572abea2ed0 /src/user/lib | |
parent | 390aec5ca22e62d128e71d1dee312a2f0a82ab68 (diff) |
include: make camellia/syscalls.h compatible with assembly
Diffstat (limited to 'src/user/lib')
-rw-r--r-- | src/user/lib/elfload.S (renamed from src/user/lib/elfload.s) | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/user/lib/elfload.s b/src/user/lib/elfload.S index faab85f..0f15c06 100644 --- a/src/user/lib/elfload.s +++ b/src/user/lib/elfload.S @@ -1,3 +1,6 @@ +#define ASM_FILE 1 +#include <camellia/syscalls.h> + .section .text .global _freejmp_chstack .type _freejmp_chstack, @function @@ -12,6 +15,6 @@ _freejmp_chstack: // _Noreturn void execbuf_chstack(void *stack, void __user *buf, size_t len); execbuf_chstack: mov %rdi, %rsp - mov $100, %rdi + mov $_SYSCALL_EXECBUF, %rdi syscall - jmp 0 // if execbuf failed we might as well crash + hlt // if execbuf failed we might as well crash |