Fixed the "minor bug fix" in the AT / PS/2 keyboard controller, reworked PS/2 keyboard controller IRQ latches, and correctly disabled memory top remaps if there's more than (16 MB - remap size) RAM (fixes segmentation faults on some machines with 16+ MB of RAM).
This commit is contained in:
@@ -2822,6 +2822,10 @@ mem_remap_top(int kb)
|
||||
sis_mode = 1;
|
||||
}
|
||||
|
||||
/* Do not remap if we're have more than (16 MB - RAM) memory. */
|
||||
if ((kb != 0) && (mem_size >= (16384 - kb)))
|
||||
return;
|
||||
|
||||
if (kb == 0) {
|
||||
kb = old_kb;
|
||||
set = 0;
|
||||
|
||||
Reference in New Issue
Block a user