kbd: use a better get_key method
[thunix.git] / kernel / halt.c
blob0b6fef668e9d17e4b9fb0ab0c9ef08f4e7eed42e
1 /**
2 * thunix/kernel/halt.c
4 * halt the computer
6 */
8 #include <asm/io.h>
9 #include <asm/system.h>
10 #include <thunix.h>
13 const char bochs_shutdown[] = "Shutdown";
15 void
16 halt (void)
18 int i;
20 cli();
22 /* Bochs, QEMU, etc. */
23 for (i = 0; i < sizeof (bochs_shutdown) - 1; i++)
24 outb (bochs_shutdown[i], 0x8900);
26 panic ("Thunix doesn't know how to halt this machine yet!");