1 /* $Id: halinit.c,v 1.3 2004/12/04 22:52:59 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
;
25 /* FUNCTIONS ***************************************************************/
30 PDRIVER_OBJECT DriverObject
,
31 PUNICODE_STRING RegistryPath
)
33 return STATUS_SUCCESS
;
37 HalInitSystem (ULONG BootPhase
,
38 PLOADER_PARAMETER_BLOCK LoaderBlock
)
42 RtlZeroMemory(&HalpHooks
, sizeof(HALP_HOOKS
));
45 else if (BootPhase
== 1)
47 /* Initialize display and make the screen black */
48 HalInitializeDisplay (LoaderBlock
);
49 HalpInitBusHandlers();
52 /* Enumerate the devices on the motherboard */
53 HalpStartEnumerator();
55 else if (BootPhase
== 2)
57 /* Go to blue screen */
58 HalClearDisplay (0x17); /* grey on blue */
60 HalpZeroPageMapping
= MmMapIoSpace((LARGE_INTEGER
)0LL, PAGE_SIZE
, MmNonCached
);