Use free Windows DDK and compile with latest MinGW releases.
[reactos.git] / reactos / hal / halx86 / halinit.c
1 /* $Id: halinit.c,v 1.2 2002/09/07 15:12:10 chorns Exp $
2 *
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)
8 * UPDATE HISTORY:
9 * 11/06/98: Created
10 */
11
12 /* INCLUDES *****************************************************************/
13
14 #include <hal.h>
15
16 #define NDEBUG
17 #include <internal/debug.h>
18
19
20 #ifdef MP
21 #include <mps.h>
22 #endif /* MP */
23
24 #define NDEBUG
25 #include <internal/debug.h>
26
27 /* FUNCTIONS ***************************************************************/
28
29 NTSTATUS
30 STDCALL
31 DriverEntry(
32 PDRIVER_OBJECT DriverObject,
33 PUNICODE_STRING RegistryPath)
34 {
35 return STATUS_SUCCESS;
36 }
37
38 BOOLEAN STDCALL
39 HalInitSystem (ULONG BootPhase,
40 PLOADER_PARAMETER_BLOCK LoaderBlock)
41 {
42 if (BootPhase == 0)
43 {
44 HalInitializeDisplay (LoaderBlock);
45
46 #ifdef MP
47
48 HalpInitMPS();
49
50 #else
51
52 HalpInitPICs();
53
54 /* Setup busy waiting */
55 HalpCalibrateStallExecution();
56
57 #endif /* MP */
58
59 }
60 else if (BootPhase == 1)
61 {
62 HalpInitBusHandlers ();
63 HalpCalibrateStallExecution ();
64
65 /* Enumerate the devices on the motherboard */
66 HalpStartEnumerator();
67 }
68
69 return TRUE;
70 }
71
72 /* EOF */