- There's no such thing as Phase 2 HAL init.

- Only map the 0x0 physical address in HalpReboot when enabling warm-reboot, there's no need to map it during init and keep it allocated during the whole time.

svn path=/trunk/; revision=24962
This commit is contained in:
Alex Ionescu 2006-11-29 07:32:27 +00:00
parent 9b7daac048
commit 7cd2e3f498
3 changed files with 4 additions and 9 deletions

View file

@ -14,7 +14,6 @@
/* GLOBALS *******************************************************************/
PVOID HalpZeroPageMapping = NULL;
HALP_HOOKS HalpHooks;
BOOLEAN HalpPciLockSettings;
@ -50,7 +49,6 @@ NTAPI
HalInitSystem(IN ULONG BootPhase,
IN PLOADER_PARAMETER_BLOCK LoaderBlock)
{
PHYSICAL_ADDRESS Null = {{0}};
PKPRCB Prcb = KeGetCurrentPrcb();
/* Check the boot phase */
@ -118,10 +116,6 @@ HalInitSystem(IN ULONG BootPhase,
/* Initialize DMA. NT does this in Phase 0 */
HalpInitDma();
}
else if (BootPhase == 2)
{
HalpZeroPageMapping = MmMapIoSpace(Null, PAGE_SIZE, MmNonCached);
}
/* All done, return */
return TRUE;

View file

@ -28,10 +28,12 @@ NTAPI
HalpReboot(VOID)
{
UCHAR Data;
extern PVOID HalpZeroPageMapping;
PVOID HalpZeroPageMapping;
PHYSICAL_ADDRESS Null = {{0}};
/* Enable warm reboot */
((PUSHORT)HalpZeroPageMapping)[0x472] = 0x1234;
HalpZeroPageMapping = MmMapIoSpace(Null, PAGE_SIZE, MmNonCached);
((PUSHORT)HalpZeroPageMapping)[0x239] = 0x1234;
/* FIXME: Lock CMOS Access */

View file

@ -840,7 +840,6 @@ ExPhase2Init(PVOID Context)
if (!NoGuiBoot) InbvDisplayBootLogo();
/* Clear the screen to blue and display the boot notice and debug status */
HalInitSystem(2, KeLoaderBlock);
if (NoGuiBoot) ExpDisplayNotice();
KdInitSystem(2, KeLoaderBlock);