aboutsummaryrefslogtreecommitdiffstats
path: root/usr/spin.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/spin.c')
-rw-r--r--usr/spin.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/spin.c b/usr/spin.c
new file mode 100644
index 0000000..2a3d4e8
--- /dev/null
+++ b/usr/spin.c
@@ -0,0 +1,6 @@
+#include "gbos.h"
+/* spin: a harmless long-running process that just yields forever.
+ Useful as a target for `ps` and `kill`. */
+void main(void) {
+ for (;;) yield();
+}