Mercurial > lcfOS
diff user/ipc.c3 @ 315:084cccaa5deb
Added console and screen
author | Windel Bouwman |
---|---|
date | Sat, 21 Dec 2013 10:03:01 +0100 |
parents | 04cf4d26a3bc |
children |
line wrap: on
line diff
--- a/user/ipc.c3 Wed Dec 18 20:22:20 2013 +0100 +++ b/user/ipc.c3 Sat Dec 21 10:03:01 2013 +0100 @@ -3,7 +3,11 @@ type struct { int sender; - int data; + int cmd; + int data1; + int data2; + int data3; + int data4; } Msg; const int MSG_SEND=1; @@ -19,7 +23,7 @@ kernelTrap(MSG_SEND, 1, 0) } -function void RecvMessage(Msg msg) +function void receive_message(Msg *msg) { kernelTrap(MSG_RECV, 2, 0); }