1 /* $Id: halinit.c,v 1.10 2004/11/28 01:30:01 hbirr Exp $
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 *****************************************************************/
14 #include <ddk/ntddk.h>
23 #include <internal/debug.h>
25 /* GLOBALS *****************************************************************/
27 PVOID HalpZeroPageMapping
= NULL
;
29 /* FUNCTIONS ***************************************************************/
34 PDRIVER_OBJECT DriverObject
,
35 PUNICODE_STRING RegistryPath
)
37 return STATUS_SUCCESS
;
41 HalInitSystem (ULONG BootPhase
,
42 PLOADER_PARAMETER_BLOCK LoaderBlock
)
46 /* Initialize display and make the screen black */
47 HalInitializeDisplay (LoaderBlock
);
57 /* Setup busy waiting */
58 HalpCalibrateStallExecution();
63 else if (BootPhase
== 1)
65 HalpInitBusHandlers();
68 /* Enumerate the devices on the motherboard */
69 HalpStartEnumerator();
71 else if (BootPhase
== 2)
73 /* Go to blue screen */
74 HalClearDisplay (0x17); /* grey on blue */
76 HalpZeroPageMapping
= MmMapIoSpace((LARGE_INTEGER
)0LL, PAGE_SIZE
, MmNonCached
);