diff kernel/syscall.c3 @ 300:158068af716c

yafm
author Windel Bouwman
date Tue, 03 Dec 2013 18:00:22 +0100
parents 534b94b40aa8
children 6753763d3bec
line wrap: on
line diff
--- a/kernel/syscall.c3	Sun Dec 01 18:37:23 2013 +0100
+++ b/kernel/syscall.c3	Tue Dec 03 18:00:22 2013 +0100
@@ -4,14 +4,18 @@
     This module handles all the system calls from user space.
 */
 
+/*
 enum {
     SendMsg = 1,
     ReceiveMsg = 2,
 
 } syscall_t;
+*/
+
+type int syscall_t;
 
 // System call handlers. System calls are made from user space.
-func void handle_system_call(int callId, int a, int b, int c, int d)
+function void handle_system_call(int callId, int a, int b, int c, int d)
 {
     // Main entry, check what to do here
     switch(callId)
@@ -25,7 +29,7 @@
             }
 
             proc.setMessage();
-            scheduler.current.setState(Sleep);
+            // scheduler.current.setState(Sleep);
             break;
         case ReceiveMsg:
             break;