summaryrefslogtreecommitdiff
path: root/os/pc/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/pc/main.c')
-rw-r--r--os/pc/main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/os/pc/main.c b/os/pc/main.c
index df4f240e..11e8d4db 100644
--- a/os/pc/main.c
+++ b/os/pc/main.c
@@ -455,3 +455,14 @@ isaconfig(char *class, int ctlrno, ISAConf *isa)
}
return 1;
}
+
+/*
+ * put the processor in the halt state if we've no processes to run.
+ * an interrupt will get us going again.
+ */
+void
+idlehands(void)
+{
+ if(conf.nmach == 1)
+ halt();
+}