From ae9c1d1b16061242068353ff9064c8c9ef63b577 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 24 Jul 2021 18:53:34 +0200 Subject: sysexit() now overrides all registers when doing anything more complex than starting a new program, you pretty much need to pass a full register dump. otherwise stuff will break --- src/kernel/arch/generic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/arch/generic.h') diff --git a/src/kernel/arch/generic.h b/src/kernel/arch/generic.h index f208aa3..d5f8b3c 100644 --- a/src/kernel/arch/generic.h +++ b/src/kernel/arch/generic.h @@ -16,7 +16,7 @@ __attribute__((noreturn)) void halt_cpu(); // src/arch/i386/sysenter.s -void sysexit(void (*fun)(), void *stack_top); +void sysexit(struct registers); int syscall_handler(int, int, int, int); // all of those can allocate memory -- cgit v1.2.3