CeDOS - kernel/syscall.c

kernel/syscall.c (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
#include "cedos/interrupts.h"

INTERRUPT(syscall_interrupt, frame) {
    printk("SYSCALL\n");
}

/*!
 * Installs the syscall interrupt to INT 0x30
 */
int syscall_init(void) {
    install_interrupt(0x30, syscall_interrupt, 0x08, INT_GATE);
    return 1;
}