diff options
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 |