From 9dbf8131d6aaff1617ef2bc7ebf54838f808688d Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 6 Aug 2020 20:02:44 +0200 Subject: Fixed messed up registers --- src/features/syscall.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/features/syscall.c') diff --git a/src/features/syscall.c b/src/features/syscall.c index ebfff59..2279429 100644 --- a/src/features/syscall.c +++ b/src/features/syscall.c @@ -1,5 +1,6 @@ // MIT License, Copyright (c) 2020 Marvin Borner +#include #include #include #include @@ -11,7 +12,8 @@ void syscall_handler(struct regs *r) struct proc *a = proc_make(); bin_load("/a", a); - proc_jump(a); + sti(); + hlt(); } void syscall_init() -- cgit v1.2.3