summaryrefslogtreecommitdiff
path: root/src/user/lib/_start2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/lib/_start2.c')
-rw-r--r--src/user/lib/_start2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/user/lib/_start2.c b/src/user/lib/_start2.c
index ba3b6b0..495f046 100644
--- a/src/user/lib/_start2.c
+++ b/src/user/lib/_start2.c
@@ -17,9 +17,13 @@ const char *shortname(const char *path) {
return path;
}
+void intr_trampoline(void); /* intr.s */
+
_Noreturn void _start2(struct execdata *ed) {
const char *progname;
elf_selfreloc();
+ _syscall_intr_set(intr_trampoline);
+ intr_set(intr_default);
__setinitialcwd(ed->cwd);
progname = shortname(ed->argv[0]);