diff options
author | Ian Moffett <ian@osmora.org> | 2025-06-25 20:54:16 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-06-25 20:54:16 -0400 |
commit | 63ca633b1797cd8a1e33ce1ea93628e88d8e150d (patch) | |
tree | c3ae555794f80c1e50dac48d2ef804a68c820278 | |
parent | cb2cd8b2556239b462759c4c0b04aec253835bc1 (diff) |
kernel/amd64: Deprecate reboot key
Remove logic to reboot machine by simply pressing a key.
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | sys/arch/amd64/isa/i8042.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/sys/arch/amd64/isa/i8042.c b/sys/arch/amd64/isa/i8042.c index eab0f78..eb8960c 100644 --- a/sys/arch/amd64/isa/i8042.c +++ b/sys/arch/amd64/isa/i8042.c @@ -262,20 +262,6 @@ i8042_en_intr(void) i8042_write_conf(conf); } -static void -esckey_reboot(void) -{ - syslock(); - kprintf(OMIT_TIMESTAMP "** Machine going down for a reboot\f"); - - for (size_t i = 0; i < 3; ++i) { - kprintf(OMIT_TIMESTAMP ".\f"); - tmr.msleep(1000); - } - - cpu_reboot(0); -} - /* * Convert scancode to character * @@ -290,10 +276,6 @@ i8042_kb_getc(uint8_t sc, char *chr) bool release = ISSET(sc, BIT(7)); switch (sc) { - /* Left alt [press] */ - case 0x38: - esckey_reboot(); - break; /* Caps lock [press] */ case 0x3A: /* |