3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: hal/halx86/mp/halinit_mp.c
6 * PURPOSE: Initalize the x86 mp hal
7 * PROGRAMMER: David Welch (welch@cwcom.net)
12 /* INCLUDES *****************************************************************/
18 /* FUNCTIONS ***************************************************************/
20 extern BOOLEAN
HaliFindSmpConfig(VOID
);
23 /***************************************************************************/
25 VOID NTAPI
HalpInitializePICs(IN BOOLEAN EnableInterrupts
)
31 HalpInitPhase0(PLOADER_PARAMETER_BLOCK LoaderBlock
)
34 static BOOLEAN MPSInitialized
= FALSE
;
37 /* Only initialize MP system once. Once called the first time,
38 each subsequent call is part of the initialization sequence
39 for an application processor. */
41 DPRINT("HalpInitPhase0()\n");
49 MPSInitialized
= TRUE
;
51 if (!HaliFindSmpConfig())
56 /* store the kernel base for later use */
57 KernelBase
= (ULONG_PTR
)CONTAINING_RECORD(LoaderBlock
->LoadOrderListHead
.Flink
, LDR_DATA_TABLE_ENTRY
, InLoadOrderLinks
)->DllBase
;