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 *****************************************************************/
18 /* FUNCTIONS ***************************************************************/
20 extern BOOLEAN
HaliFindSmpConfig(VOID
);
23 /***************************************************************************/
25 HalpInitPhase0(PLOADER_PARAMETER_BLOCK LoaderBlock
)
28 static BOOLEAN MPSInitialized
= FALSE
;
31 /* Only initialize MP system once. Once called the first time,
32 each subsequent call is part of the initialization sequence
33 for an application processor. */
35 DPRINT("HalpInitPhase0()\n");
43 MPSInitialized
= TRUE
;
45 if (!HaliFindSmpConfig())
50 /* store the kernel base for later use */
51 KernelBase
= ((PLOADER_MODULE
)LoaderBlock
->ModsAddr
)[0].ModStart
;