1 /* $Id: halinit.c,v 1.1 2004/12/03 20:10:43 gvg 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>
18 #include <internal/debug.h>
20 /* GLOBALS *****************************************************************/
22 PVOID HalpZeroPageMapping
= NULL
;
24 /* FUNCTIONS ***************************************************************/
29 PDRIVER_OBJECT DriverObject
,
30 PUNICODE_STRING RegistryPath
)
32 return STATUS_SUCCESS
;
36 HalInitSystem (ULONG BootPhase
,
37 PLOADER_PARAMETER_BLOCK LoaderBlock
)
41 /* Initialize display and make the screen black */
42 HalInitializeDisplay (LoaderBlock
);
46 else if (BootPhase
== 1)
48 HalpInitBusHandlers();
51 /* Enumerate the devices on the motherboard */
52 HalpStartEnumerator();
54 else if (BootPhase
== 2)
56 /* Go to blue screen */
57 HalClearDisplay (0x17); /* grey on blue */
59 HalpZeroPageMapping
= MmMapIoSpace((LARGE_INTEGER
)0LL, PAGE_SIZE
, MmNonCached
);