mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[NTVDM]: The BIOS should have its BDA and BCT zero'ed out.
svn path=/trunk/; revision=64378
This commit is contained in:
parent
dc0bad0e48
commit
a03f39b92f
2 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
||||
/*
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue