diff kernel/src/syscall.c3 @ 393:6ae782a085e0

Added init program
author Windel Bouwman
date Sat, 17 May 2014 21:17:40 +0200
parents b4ac28efcdf4
children
line wrap: on
line diff
--- a/kernel/src/syscall.c3	Fri May 16 13:05:10 2014 +0200
+++ b/kernel/src/syscall.c3	Sat May 17 21:17:40 2014 +0200
@@ -9,6 +9,8 @@
 import process;
 
 
+/* System call numbers:
+*/
 const int SendMsg = 1;
 const int ReceiveMsg = 2;
 const int Reboot = 3;
@@ -18,7 +20,7 @@
 function void handle_system_call(int callId, int a, int b)
 {
     // Main entry, check what to do here
-    if (callId == 1)
+    if (callId == SendMsg)
     {
         handle_send_msg();
         var process.process_t* proc;