Fix problem with #ifdef DEBUG HMA check. Use more descriptive name

(EnabledA20).


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@956 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Bart Oldeman 2004-05-24 17:07:04 +00:00
parent 39e6b427f4
commit 195614981a
1 changed files with 4 additions and 4 deletions

View File

@ -118,7 +118,7 @@ VOID hdump(BYTE FAR * p)
if so, it simply leaves it on 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); return fmemcmp(MK_FP(0, 0), MK_FP(0xffff, 0x0010), 128);
} }
@ -128,7 +128,7 @@ int EnableHMA(VOID)
_EnableA20(); _EnableA20();
if (!checkHMA()) if (!EnabledA20())
{ {
printf("HMA can't be enabled\n"); printf("HMA can't be enabled\n");
return FALSE; return FALSE;
@ -137,14 +137,14 @@ int EnableHMA(VOID)
_DisableA20(); _DisableA20();
#ifdef DEBUG #ifdef DEBUG
if (!checkHMA()) if (EnabledA20())
{ {
printf("HMA can't be disabled - no problem for us\n"); printf("HMA can't be disabled - no problem for us\n");
} }
#endif #endif
_EnableA20(); _EnableA20();
if (!checkHMA()) if (!EnabledA20())
{ {
printf("HMA can't be enabled second time\n"); printf("HMA can't be enabled second time\n");
return FALSE; return FALSE;