mirror of
https://github.com/reactos/reactos.git
synced 2024-09-14 14:51:27 +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
|
@ -499,6 +499,8 @@ static VOID InitializeBiosInt32(VOID)
|
||||||
|
|
||||||
static VOID InitializeBiosInfo(VOID)
|
static VOID InitializeBiosInfo(VOID)
|
||||||
{
|
{
|
||||||
|
RtlZeroMemory(Bct, sizeof(*Bct));
|
||||||
|
|
||||||
Bct->Length = sizeof(*Bct);
|
Bct->Length = sizeof(*Bct);
|
||||||
Bct->Model = BIOS_MODEL;
|
Bct->Model = BIOS_MODEL;
|
||||||
Bct->SubModel = BIOS_SUBMODEL;
|
Bct->SubModel = BIOS_SUBMODEL;
|
||||||
|
@ -527,6 +529,7 @@ static VOID InitializeBiosData(VOID)
|
||||||
*(PBYTE)(SEG_OFF_TO_PTR(0xF000, 0xFFFE)) = BIOS_MODEL;
|
*(PBYTE)(SEG_OFF_TO_PTR(0xF000, 0xFFFE)) = BIOS_MODEL;
|
||||||
|
|
||||||
/* Initialize the BDA contents */
|
/* Initialize the BDA contents */
|
||||||
|
RtlZeroMemory(Bda, sizeof(*Bda));
|
||||||
Bda->EquipmentList = BIOS_EQUIPMENT_LIST;
|
Bda->EquipmentList = BIOS_EQUIPMENT_LIST;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -550,7 +550,7 @@ BOOLEAN EmulatorInitialize(HANDLE ConsoleInput, HANDLE ConsoleOutput)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
// For diagnostics purposes!!
|
// For diagnostics purposes!!
|
||||||
FillMemory(BaseAddress, MAX_ADDRESS, 0xFF);
|
RtlFillMemory(BaseAddress, MAX_ADDRESS, 0xFF);
|
||||||
|
|
||||||
/* Initialize I/O ports */
|
/* Initialize I/O ports */
|
||||||
/* Initialize RAM */
|
/* Initialize RAM */
|
||||||
|
|
Loading…
Reference in a new issue