mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-27 15:04:33 +00:00
Update crash keyboard driver
This commit is contained in:
parent
85c0de688d
commit
3b65386399
@ -111,7 +111,7 @@ namespace CrashHandler
|
||||
outb(0xA1, 0xFF);
|
||||
#endif // defined(a86)
|
||||
|
||||
CPU::Interrupts(CPU::Enable); // Just to be sure.
|
||||
CPU::Interrupts(CPU::Enable);
|
||||
}
|
||||
|
||||
CrashKeyboardDriver::~CrashKeyboardDriver()
|
||||
@ -176,19 +176,14 @@ namespace CrashHandler
|
||||
Display->Print((char)key, SBIdx);
|
||||
BackSpaceLimit++;
|
||||
}
|
||||
Display->SetBuffer(SBIdx); // Update as we type.
|
||||
Display->SetBuffer(SBIdx); /* Update as we type. */
|
||||
}
|
||||
#endif // a64 || a32
|
||||
}
|
||||
|
||||
SafeFunction void HookKeyboard()
|
||||
{
|
||||
CrashKeyboardDriver kbd; // We don't want to allocate memory.
|
||||
#if defined(a86)
|
||||
asmv("KeyboardHookLoop: nop; jmp KeyboardHookLoop;");
|
||||
#elif defined(aa64)
|
||||
asmv("KeyboardHookLoop: nop; b KeyboardHookLoop;");
|
||||
#endif
|
||||
// CPU::Halt(true); // This is an infinite loop.
|
||||
CrashKeyboardDriver kbd; /* We don't want to allocate memory. */
|
||||
CPU::Halt(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user