mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 21:06:17 +00:00
[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:
parent
743c378ed1
commit
c5a700fd06
3 changed files with 98 additions and 56 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue