Userspace reboot helper
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 1 Mar 2012 00:19:19 +0000 (16:19 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 1 Mar 2012 00:34:21 +0000 (16:34 -0800)
With correct accents.

tests/reboot.c [new file with mode: 0644]

diff --git a/tests/reboot.c b/tests/reboot.c
new file mode 100644 (file)
index 0000000..8b27f8a
--- /dev/null
@@ -0,0 +1,10 @@
+#include <stdio.h>
+#include <parlib.h>
+
+int main(int argc, char** argv)
+{
+       printf("[Scottish Accent]: She's goin' down, Cap'n!\n");
+       sys_reboot();
+       printf("Doh!  Reboot returned...\n");
+       return -1;
+}