blob: 200af4fe8f5120da84f80e968879a0c7b88447f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include <kernel/syscall.h>
#include <kernel/panic.h>
#include <libk/string.h>
#include <libk/io.h>
#include <stddef.h>
void sys_read(struct isr_frame *frame) {
}
void sys_write(struct isr_frame *frame) {
}
void handle_syscall(struct isr_frame *frame) {
switch (frame->eax) {
case SYS_READ:
sys_read(frame);
break;
case SYS_WRITE:
sys_write(frame);
break;
default:
panic("Invalid system call number");
}
return 0;
}
|