diff --git a/kernel/inithma.c b/kernel/inithma.c index 58e8057..0c68f50 100644 --- a/kernel/inithma.c +++ b/kernel/inithma.c @@ -118,7 +118,7 @@ VOID hdump(BYTE FAR * p) if so, it simply leaves it on */ -STATIC int checkHMA(void) +STATIC int EnabledA20(void) { return fmemcmp(MK_FP(0, 0), MK_FP(0xffff, 0x0010), 128); } @@ -128,7 +128,7 @@ int EnableHMA(VOID) _EnableA20(); - if (!checkHMA()) + if (!EnabledA20()) { printf("HMA can't be enabled\n"); return FALSE; @@ -137,14 +137,14 @@ int EnableHMA(VOID) _DisableA20(); #ifdef DEBUG - if (!checkHMA()) + if (EnabledA20()) { printf("HMA can't be disabled - no problem for us\n"); } #endif _EnableA20(); - if (!checkHMA()) + if (!EnabledA20()) { printf("HMA can't be enabled second time\n"); return FALSE;