From 84332707f1df86c25c1f94883044c5e8fe2e20a3 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Tue, 22 Mar 2022 13:43:54 -0500 Subject: arch: i386: refactor the system call API The x86 system call/interrupt handlers should be refactored to be more readable. Signed-off-by: Danny Holman --- arch/i386/include/kernel/isr.h | 2 -- arch/i386/include/kernel/syscall.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'arch/i386/include/kernel') diff --git a/arch/i386/include/kernel/isr.h b/arch/i386/include/kernel/isr.h index f177ee2..4e21f8f 100644 --- a/arch/i386/include/kernel/isr.h +++ b/arch/i386/include/kernel/isr.h @@ -11,8 +11,6 @@ struct isr_frame { uint32_t edi; uint32_t esi; - uint32_t ebp; - uint32_t esp; uint32_t edx; uint32_t ecx; uint32_t ebx; diff --git a/arch/i386/include/kernel/syscall.h b/arch/i386/include/kernel/syscall.h index cded732..4f74c1f 100644 --- a/arch/i386/include/kernel/syscall.h +++ b/arch/i386/include/kernel/syscall.h @@ -3,6 +3,7 @@ #include +void halt_catch_fire(struct isr_frame *frame); void syscall_dispatch(struct isr_frame *frame); void register_syscall(void *handler(struct isr_frame*), int num); void sys_stop(struct isr_frame *frame); -- cgit v1.2.3