From 593e106d1efaf296b3f9cbb8546bab1269dd157d Mon Sep 17 00:00:00 2001 From: h2-addad <hamza2.addad@live.uwe.ac.uk> Date: Sun, 16 Jul 2023 00:58:54 +0000 Subject: [PATCH] Update --- src/examples/halt.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/examples/halt.c diff --git a/src/examples/halt.c b/src/examples/halt.c new file mode 100644 index 0000000..7d06f5c --- /dev/null +++ b/src/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 <syscall.h> + +int +main (void) +{ + halt (); + /* not reached */ +} -- GitLab