summaryrefslogtreecommitdiff
path: root/src/user/lib/elfload.s
diff options
context:
space:
mode:
authordzwdz2022-08-19 23:36:29 +0200
committerdzwdz2022-08-19 23:36:29 +0200
commit040bb34290c9a4305e13637e002060411e5a8385 (patch)
tree5bdd71a8925519d5f2e22d60a9fdd572abea2ed0 /src/user/lib/elfload.s
parent390aec5ca22e62d128e71d1dee312a2f0a82ab68 (diff)
include: make camellia/syscalls.h compatible with assembly
Diffstat (limited to 'src/user/lib/elfload.s')
-rw-r--r--src/user/lib/elfload.s17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/user/lib/elfload.s b/src/user/lib/elfload.s
deleted file mode 100644
index faab85f..0000000
--- a/src/user/lib/elfload.s
+++ /dev/null
@@ -1,17 +0,0 @@
-.section .text
-.global _freejmp_chstack
-.type _freejmp_chstack, @function
-// void _freejmp_chstack(void *entry, void *low, size_t len, char **argv, char **envp, void *stack);
-_freejmp_chstack:
- mov %r9, %rsp
- jmp _freejmp
-
-.section .text
-.global execbuf_chstack
-.type execbuf_chstack, @function
-// _Noreturn void execbuf_chstack(void *stack, void __user *buf, size_t len);
-execbuf_chstack:
- mov %rdi, %rsp
- mov $100, %rdi
- syscall
- jmp 0 // if execbuf failed we might as well crash