[NTVDM]: The BIOS should have its BDA and BCT zero'ed out.

svn path=/trunk/; revision=64378
This commit is contained in:
Hermès Bélusca-Maïto 2014-09-28 19:55:28 +00:00
parent dc0bad0e48
commit a03f39b92f
2 changed files with 4 additions and 1 deletions

View file

@ -499,6 +499,8 @@ static VOID InitializeBiosInt32(VOID)
static VOID InitializeBiosInfo(VOID)
{
RtlZeroMemory(Bct, sizeof(*Bct));
Bct->Length = sizeof(*Bct);
Bct->Model = BIOS_MODEL;
Bct->SubModel = BIOS_SUBMODEL;
@ -527,6 +529,7 @@ static VOID InitializeBiosData(VOID)
*(PBYTE)(SEG_OFF_TO_PTR(0xF000, 0xFFFE)) = BIOS_MODEL;
/* Initialize the BDA contents */
RtlZeroMemory(Bda, sizeof(*Bda));
Bda->EquipmentList = BIOS_EQUIPMENT_LIST;
/*

View file

@ -550,7 +550,7 @@ BOOLEAN EmulatorInitialize(HANDLE ConsoleInput, HANDLE ConsoleOutput)
return FALSE;
}
// For diagnostics purposes!!
FillMemory(BaseAddress, MAX_ADDRESS, 0xFF);
RtlFillMemory(BaseAddress, MAX_ADDRESS, 0xFF);
/* Initialize I/O ports */
/* Initialize RAM */