mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
Implemented a basic syscall handler
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
#ifndef _SYSCALL_H
|
||||
#define _SYSCALL_H
|
||||
|
||||
#include <kernel.h>
|
||||
#include <isr.h>
|
||||
|
||||
int syscall_handler(struct isr_int_frame* iframe) { (void)iframe; return 1; }
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user