mirror of
https://github.com/reactos/reactos.git
synced 2024-08-26 13:18:51 +00:00
![Amine Khaldi](/assets/img/avatar_default.png)
* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
67 lines
1.4 KiB
C
67 lines
1.4 KiB
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS kernel
|
|
* FILE: hal/halx86/mp/halinit_mp.c
|
|
* PURPOSE: Initialize the x86 mp hal
|
|
* PROGRAMMER: David Welch (welch@cwcom.net)
|
|
* UPDATE HISTORY:
|
|
* 11/06/98: Created
|
|
*/
|
|
|
|
/* INCLUDES *****************************************************************/
|
|
|
|
#include <hal.h>
|
|
#define NDEBUG
|
|
#include <debug.h>
|
|
|
|
/* GLOBALS ******************************************************************/
|
|
|
|
const USHORT HalpBuildType = HAL_BUILD_TYPE;
|
|
extern BOOLEAN HaliFindSmpConfig(VOID);
|
|
ULONG_PTR KernelBase;
|
|
|
|
/* FUNCTIONS ****************************************************************/
|
|
|
|
VOID NTAPI HalpInitializePICs(IN BOOLEAN EnableInterrupts)
|
|
{
|
|
UNIMPLEMENTED;
|
|
}
|
|
|
|
VOID
|
|
HalpInitPhase0(PLOADER_PARAMETER_BLOCK LoaderBlock)
|
|
|
|
{
|
|
static BOOLEAN MPSInitialized = FALSE;
|
|
|
|
|
|
/* Only initialize MP system once. Once called the first time,
|
|
each subsequent call is part of the initialization sequence
|
|
for an application processor. */
|
|
|
|
DPRINT("HalpInitPhase0()\n");
|
|
|
|
|
|
if (MPSInitialized)
|
|
{
|
|
ASSERT(FALSE);
|
|
}
|
|
|
|
MPSInitialized = TRUE;
|
|
|
|
if (!HaliFindSmpConfig())
|
|
{
|
|
ASSERT(FALSE);
|
|
}
|
|
|
|
/* store the kernel base for later use */
|
|
KernelBase = (ULONG_PTR)CONTAINING_RECORD(LoaderBlock->LoadOrderListHead.Flink, LDR_DATA_TABLE_ENTRY, InLoadOrderLinks)->DllBase;
|
|
|
|
}
|
|
|
|
VOID
|
|
HalpInitPhase1(VOID)
|
|
{
|
|
}
|
|
|
|
/* EOF */
|