summaryrefslogtreecommitdiff
path: root/arch/i386/kernel/syscall.c
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2024-06-25 12:49:40 -0500
committerDanny Holman <dholman@gymli.org>2024-06-25 12:49:40 -0500
commit0dc4d97e70c17df56a260d31a1cb44881cf64520 (patch)
tree8fc93c709d334be836e3b896e2ed5f5320292169 /arch/i386/kernel/syscall.c
parent3851af792ca7b4bb7fc998337c4aec05627cfa8f (diff)
kernel: interrupt: create a generic interrupt API
Create a generic interface for drivers to make use of interrupt vectors. This API should be platform-agnostic enough to allow any driver to make use of virtually any interrupt vector on any CPU. On x86, the first 32 interrupts are set aside for CPU exceptions, and interrupt 128 is set aside for system calls. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'arch/i386/kernel/syscall.c')
-rw-r--r--arch/i386/kernel/syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/kernel/syscall.c b/arch/i386/kernel/syscall.c
index e8b69a2..200af4f 100644
--- a/arch/i386/kernel/syscall.c
+++ b/arch/i386/kernel/syscall.c
@@ -10,7 +10,7 @@ void sys_read(struct isr_frame *frame) {
void sys_write(struct isr_frame *frame) {
}
-int handle_syscall(struct isr_frame *frame) {
+void handle_syscall(struct isr_frame *frame) {
switch (frame->eax) {
case SYS_READ:
sys_read(frame);