aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall/syscall.c
diff options
context:
space:
mode:
authorMarvin Borner2019-10-31 15:19:12 +0100
committerMarvin Borner2019-10-31 15:19:12 +0100
commit2c7b6e0431d6dfbaf385d30e87e7eb9fd4a0e61d (patch)
tree04e3aaf05509fb9bdc16ccb30a773dac931c290e /src/kernel/syscall/syscall.c
parent7d5a9792e57b4088cce5cc97837eb04016b57a4d (diff)
Some user mode improvements
Diffstat (limited to 'src/kernel/syscall/syscall.c')
-rw-r--r--src/kernel/syscall/syscall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/syscall/syscall.c b/src/kernel/syscall/syscall.c
index d1dbd6b..dec3e8e 100644
--- a/src/kernel/syscall/syscall.c
+++ b/src/kernel/syscall/syscall.c
@@ -18,6 +18,7 @@ static void *syscalls[3] = {
uint32_t num_syscalls = 3;
void syscall_handler(struct regs *r) {
+ serial_write("SYSCALL");
if (r->eax >= num_syscalls)
return;
@@ -41,5 +42,5 @@ void syscall_handler(struct regs *r) {
}
void syscalls_install() {
- irq_install_handler(0x80, &syscall_handler);
+ irq_install_handler(0x80, syscall_handler);
}