mirror of
https://github.com/JannisHeydemann/BoredOS.git
synced 2026-05-30 02:16:58 +00:00
12 lines
224 B
C
12 lines
224 B
C
#include "cli_utils.h"
|
|
#include "io.h"
|
|
|
|
void cli_cmd_shutdown(char *args) {
|
|
(void)args;
|
|
cli_write("Shutting down...\n");
|
|
cli_sleep(100);
|
|
outb(0x64, 0xFE);
|
|
outw(0x604, 0x2000);
|
|
outw(0xB004, 0x2000);
|
|
}
|