blob: 5a48b304fbb515529c4a2eea699d4ae5d66fe78a [file] [log] [blame]
swissChili64228692021-03-16 08:19:23 -07001#include "syscall.h"
2#include "log.h"
3#include "pic.h"
4
5void do_syscall(struct registers *regs)
6{
swissChili9bd74de2021-06-15 20:30:48 -07007 kprintf(INFO "Syscall executed: %d\n", regs->eax);
swissChili64228692021-03-16 08:19:23 -07008}
9
10void init_syscall()
11{
12 add_interrupt_handler(SYSCALL_INT, do_syscall);
13}