swissChili | 6422869 | 2021-03-16 08:19:23 -0700 | [diff] [blame] | 1 | #include "syscall.h" |
2 | #include "log.h" | ||||
3 | #include "pic.h" | ||||
4 | |||||
5 | void do_syscall(struct registers *regs) | ||||
6 | { | ||||
7 | kprintf("Syscall executed: %d\n", regs->eax); | ||||
8 | } | ||||
9 | |||||
10 | void init_syscall() | ||||
11 | { | ||||
12 | add_interrupt_handler(SYSCALL_INT, do_syscall); | ||||
13 | } |