mirror of
https://github.com/limine-bootloader/limine
synced 2024-12-28 00:29:41 +03:00
bios/a20: Add support for fast A20 method. May fix #386
This commit is contained in:
parent
b6da3ed850
commit
f328145907
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user