// MIT License, Copyright (c) 2020 Marvin Borner #include #include #include #include void syscall_handler(struct regs *r) { printf("[SYSCALL] %d\n", r->eax); struct proc *a = proc_make(); bin_load("/a", a); } void syscall_install() { isr_install_handler(0x80, syscall_handler); }