annotate user/console.c3 @ 330:a79ac866732f

Added kernel recipe
author Windel Bouwman
date Fri, 07 Feb 2014 12:08:40 +0100
parents 084cccaa5deb
children
rev   line source
315
084cccaa5deb Added console and screen
Windel Bouwman
parents:
diff changeset
1 module console;
084cccaa5deb Added console and screen
Windel Bouwman
parents:
diff changeset
2
084cccaa5deb Added console and screen
Windel Bouwman
parents:
diff changeset
3 import ipc;
084cccaa5deb Added console and screen
Windel Bouwman
parents:
diff changeset
4
084cccaa5deb Added console and screen
Windel Bouwman
parents:
diff changeset
5
084cccaa5deb Added console and screen
Windel Bouwman
parents:
diff changeset
6 function void main()
084cccaa5deb Added console and screen
Windel Bouwman
parents:
diff changeset
7 {
084cccaa5deb Added console and screen
Windel Bouwman
parents:
diff changeset
8 while(true)
084cccaa5deb Added console and screen
Windel Bouwman
parents:
diff changeset
9 {
084cccaa5deb Added console and screen
Windel Bouwman
parents:
diff changeset
10 var ipc.Msg msg;
084cccaa5deb Added console and screen
Windel Bouwman
parents:
diff changeset
11 ipc.receive_message(&msg);
084cccaa5deb Added console and screen
Windel Bouwman
parents:
diff changeset
12 }
084cccaa5deb Added console and screen
Windel Bouwman
parents:
diff changeset
13 }
084cccaa5deb Added console and screen
Windel Bouwman
parents:
diff changeset
14