From b5f0874cd96ee2a62aabc645b9626c2749cb6a01 Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 26 Mar 2012 12:54:45 +0200 Subject: initial pintos checkin --- pintos-progos/examples/halt.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 pintos-progos/examples/halt.c (limited to 'pintos-progos/examples/halt.c') diff --git a/pintos-progos/examples/halt.c b/pintos-progos/examples/halt.c new file mode 100644 index 0000000..bad7250 --- /dev/null +++ b/pintos-progos/examples/halt.c @@ -0,0 +1,14 @@ +/* halt.c + + Simple program to test whether running a user program works. + + Just invokes a system call that shuts down the OS. */ + +#include + +int +main (void) +{ + halt (); + /* not reached */ +} -- cgit v1.2.3