mirror of
https://github.com/JannisHeydemann/BoredOS.git
synced 2026-05-30 10:26:59 +00:00
Initial commit
This commit is contained in:
11
src/kernel/cli_apps/shutdown.c
Normal file
11
src/kernel/cli_apps/shutdown.c
Normal file
@@ -0,0 +1,11 @@
|
||||
#include "cli_utils.h"
|
||||
#include "io.h"
|
||||
|
||||
void cli_cmd_shutdown(char *args) {
|
||||
(void)args;
|
||||
cli_write("Shutting down...\n");
|
||||
cli_delay(10000000);
|
||||
outb(0x64, 0xFE);
|
||||
outw(0x604, 0x2000);
|
||||
outw(0xB004, 0x2000);
|
||||
}
|
||||
Reference in New Issue
Block a user