provided code
This commit is contained in:
14
src/examples/halt.c
Normal file
14
src/examples/halt.c
Normal file
@@ -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 <syscall.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
halt ();
|
||||
/* not reached */
|
||||
}
|
||||
Reference in New Issue
Block a user