3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: ntoskrnl/hal/x86/halinit.c
6 * PURPOSE: Initalize the x86 hal
7 * PROGRAMMER: David Welch (welch@cwcom.net)
12 /* INCLUDES *****************************************************************/
18 /* GLOBALS *****************************************************************/
20 PVOID HalpZeroPageMapping
= NULL
;
23 /* FUNCTIONS ***************************************************************/
28 PDRIVER_OBJECT DriverObject
,
29 PUNICODE_STRING RegistryPath
)
31 return STATUS_SUCCESS
;
35 HalInitSystem (ULONG BootPhase
,
36 PLOADER_PARAMETER_BLOCK LoaderBlock
)
40 RtlZeroMemory(&HalpHooks
, sizeof(HALP_HOOKS
));
41 HalpInitPhase0(LoaderBlock
);
43 else if (BootPhase
== 1)
45 /* Initialize display and make the screen black */
46 HalInitializeDisplay (LoaderBlock
);
47 HalpInitBusHandlers();
50 /* Enumerate the devices on the motherboard */
51 HalpStartEnumerator();
53 else if (BootPhase
== 2)
55 /* Go to blue screen */
57 HalpZeroPageMapping
= MmMapIoSpace((LARGE_INTEGER
)0LL, PAGE_SIZE
, MmNonCached
);