mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 19:26:42 +00:00
- TSVN choked repeatedly when attempting to merge ~9000 revs into the branch (tried 3 times on 2 different computers) - If someone wants to delete aicom-network-fixes, they are welcome to - Lesson learned: Letting a branch get thousands of revs out of date is a horrible idea svn path=/branches/aicom-network-branch/; revision=44353
77 lines
1.6 KiB
C
77 lines
1.6 KiB
C
/* $Id: processor.c 23907 2006-09-04 05:52:23Z arty $
|
|
*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS kernel
|
|
* FILE: hal/halx86/generic/processor.c
|
|
* PURPOSE: Intel MultiProcessor specification support
|
|
* PROGRAMMER: David Welch ([email protected])
|
|
* Casper S. Hornstrup ([email protected])
|
|
* NOTES: Parts adapted from linux SMP code
|
|
* UPDATE HISTORY:
|
|
* 22/05/1998 DW Created
|
|
* 12/04/2001 CSH Added MultiProcessor specification support
|
|
*/
|
|
|
|
/* INCLUDES *****************************************************************/
|
|
|
|
#include <hal.h>
|
|
#define NDEBUG
|
|
#include <debug.h>
|
|
|
|
/* FUNCTIONS *****************************************************************/
|
|
|
|
#define INITIAL_STALL_COUNT 0x10000
|
|
|
|
VOID NTAPI
|
|
HalInitializeProcessor(ULONG ProcessorNumber,
|
|
PLOADER_PARAMETER_BLOCK LoaderBlock)
|
|
{
|
|
DPRINT("HalInitializeProcessor(%lu %p)\n", ProcessorNumber, LoaderBlock);
|
|
KeGetPcr()->StallScaleFactor = INITIAL_STALL_COUNT;
|
|
}
|
|
|
|
BOOLEAN NTAPI
|
|
HalAllProcessorsStarted (VOID)
|
|
{
|
|
DPRINT("HalAllProcessorsStarted()\n");
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
NTHALAPI
|
|
BOOLEAN
|
|
NTAPI
|
|
HalStartNextProcessor(
|
|
IN struct _LOADER_PARAMETER_BLOCK *LoaderBlock,
|
|
IN PKPROCESSOR_STATE ProcessorState
|
|
)
|
|
{
|
|
DPRINT("HalStartNextProcessor(0x%lx 0x%lx)\n", LoaderBlock, ProcessorState);
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
VOID
|
|
NTAPI
|
|
HalProcessorIdle(VOID)
|
|
{
|
|
/* Enable interrupts and halt the processor */
|
|
_enable();
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
VOID
|
|
NTAPI
|
|
HalRequestIpi(ULONG Reserved)
|
|
{
|
|
/* Not implemented on NT */
|
|
__debugbreak();
|
|
}
|
|
|
|
/* EOF */
|