bios/a20: Add support for fast A20 method. May fix #386

This commit is contained in:
mintsuki 2024-07-20 19:42:58 +02:00
parent b6da3ed850
commit f328145907

View File

@ -60,6 +60,17 @@ bool a20_enable(void) {
outb(0x64, 0xae);
while (inb(0x64) & 2);
if (a20_check())
return true;
// Fast A20 method
b = inb(0x92);
if ((b & 0x02) == 0) {
b &= ~0x01;
b |= 0x02;
outb(0x92, b);
}
if (a20_check())
return true;