Skip to content

Commit

Permalink
inithma: remove silly code that breaks reboot
Browse files Browse the repository at this point in the history
It was disabling HMA if some control key is pressed.
But since reboot is initiated with control keys, it actually
disabled HMA!
Fortunately by default we don't use HMA, so that didn't trigger.
  • Loading branch information
stsp committed Feb 19, 2024
1 parent 6b0ae8f commit 6ae336e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions kernel/inithma.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,18 +141,6 @@ int ClaimHMA(void)

XMSDriverAddress = xms_addr;

#ifdef DEBUG
/* A) for debugging purpose, suppress this,
if any shift key is pressed
*/
if (KeyboardShiftState() & 0x0f)
{
DebugPrintf(("Keyboard state is %0x, NOT moving to HMA\n",
KeyboardShiftState()));
return FALSE;
}
#endif

/* B) check out, if we can have HMA */

if (!EnableHMA())
Expand Down

0 comments on commit 6ae336e

Please sign in to comment.