mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
16 lines
272 B
C
16 lines
272 B
C
#ifndef _SYSCALL_H
|
|
#define _SYSCALL_H
|
|
|
|
#include <kernel.h>
|
|
#include <isr.h>
|
|
|
|
#define SYSCALL_MAX 2
|
|
#define SYS_EXIT 0
|
|
#define SYS_TEST 1
|
|
|
|
int syscall_init(void);
|
|
void syscall_register(size_t idx, void* handler);
|
|
void syscall_handler(struct isr_int_frame* iframe);
|
|
|
|
#endif
|