diff options
author | Danny Holman <dholman@gymli.org> | 2022-01-15 16:24:08 -0600 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2022-01-15 16:25:41 -0600 |
commit | 06121c7075e91056820c674f192be460ef5eb656 (patch) | |
tree | 2d49c1ebfc0255877bf613d53dfd2723e48d8383 /arch/i386/boot/syscall.h | |
parent | acc73186bc3de78ceb0a54cbf2605dff1b9a6d62 (diff) |
arch: i386: add support for IRQs and system calls
Add support for rudementary system calls and IRQ interrupts.
Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'arch/i386/boot/syscall.h')
-rw-r--r-- | arch/i386/boot/syscall.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/i386/boot/syscall.h b/arch/i386/boot/syscall.h new file mode 100644 index 0000000..376fb7c --- /dev/null +++ b/arch/i386/boot/syscall.h @@ -0,0 +1,9 @@ +#ifndef I386_SYSCALL_H +#define I386_SYSCALL_H + +#include <kernel/isr.h> + +void syscall_dispatch(struct isr_frame *frame); +void register_syscall(void *handler(struct isr_frame*), int num); + +#endif |