1 /* $Id: halinit.c,v 1.5 2003/08/11 18:50:12 chorns 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 /* FUNCTIONS ***************************************************************/
28 HalClearDisplay (UCHAR CharAttribute
);
33 PDRIVER_OBJECT DriverObject
,
34 PUNICODE_STRING RegistryPath
)
36 return STATUS_SUCCESS
;
40 HalInitSystem (ULONG BootPhase
,
41 PLOADER_PARAMETER_BLOCK LoaderBlock
)
45 /* Initialize display and make the screen black */
46 HalInitializeDisplay (LoaderBlock
);
56 /* Setup busy waiting */
57 HalpCalibrateStallExecution();
62 else if (BootPhase
== 1)
64 HalpInitBusHandlers();
65 HalpCalibrateStallExecution();
67 /* Enumerate the devices on the motherboard */
68 HalpStartEnumerator();
70 else if (BootPhase
== 2)
72 /* Go to blue screen */
73 HalClearDisplay (0x17); /* grey on blue */