[HAL:X64] Fix/improve the BIOS interface

* Call HalInitializeBios both in phase 0 and 1
* In phase 0 allocate some physical memory, instead of using arbitrary hardcoded pages, that then end up as page tables and get filled with VESA tables
This commit is contained in:
Timo Kreuzer 2020-02-09 22:19:54 +01:00
parent 743c378ed1
commit c5a700fd06
3 changed files with 98 additions and 56 deletions

View file

@ -136,6 +136,10 @@ HalInitSystem(IN ULONG BootPhase,
/* Do some HAL-specific initialization */
HalpInitPhase0(LoaderBlock);
#ifdef _M_AMD64
HalInitializeBios(0, LoaderBlock);
#endif
}
else if (BootPhase == 1)
{
@ -146,7 +150,7 @@ HalInitSystem(IN ULONG BootPhase,
HalpInitPhase1();
#ifdef _M_AMD64
HalInitializeBios(0, LoaderBlock);
HalInitializeBios(1, LoaderBlock);
#endif
}