aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/syscall.c
diff options
context:
space:
mode:
authorMarvin Borner2021-01-09 23:19:53 +0100
committerMarvin Borner2021-01-09 23:19:53 +0100
commit836294b9232c7d63d26db4f87c32cf1420cd856d (patch)
tree54f1b28951c53b38dcde5866a74c082c8ef83b0f /kernel/features/syscall.c
parentf27a5f8af9fc5a16b80a7d6646e44d718b0efd7d (diff)
To be continued
Diffstat (limited to 'kernel/features/syscall.c')
-rw-r--r--kernel/features/syscall.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/features/syscall.c b/kernel/features/syscall.c
index e2df79a..a6bfb2a 100644
--- a/kernel/features/syscall.c
+++ b/kernel/features/syscall.c
@@ -88,8 +88,7 @@ void syscall_handler(struct regs *r)
break;
}
case SYS_RECEIVE: {
- struct proc_message *msg = proc_receive(proc_current());
- r->eax = (u32)(msg ? msg->msg : NULL);
+ r->eax = proc_receive(proc_current(), (void *)r->ebx);
break;
}
case SYS_GETPID: {