2010-06-04 10:59:19 +00:00
|
|
|
/*
|
2021-03-14 23:42:49 +00:00
|
|
|
* PROJECT: ReactOS Hardware Abstraction Layer
|
|
|
|
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
|
|
|
|
* PURPOSE: HAL Processor Routines
|
|
|
|
* COPYRIGHT: Copyright 2010 Timo Kreuzer <timo.kreuzer@reactos.org>
|
2010-06-04 10:59:19 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
|
|
|
|
#include <hal.h>
|
|
|
|
#define NDEBUG
|
|
|
|
#include <debug.h>
|
|
|
|
|
|
|
|
KAFFINITY HalpActiveProcessors;
|
|
|
|
KAFFINITY HalpDefaultInterruptAffinity;
|
|
|
|
|
|
|
|
/* PRIVATE FUNCTIONS *********************************************************/
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
HaliHaltSystem(VOID)
|
|
|
|
{
|
|
|
|
/* Disable interrupts and halt the CPU */
|
|
|
|
_disable();
|
|
|
|
__halt();
|
|
|
|
}
|
|
|
|
|
|
|
|
/* FUNCTIONS *****************************************************************/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
HalAllProcessorsStarted(VOID)
|
|
|
|
{
|
|
|
|
/* Do nothing */
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
HalProcessorIdle(VOID)
|
|
|
|
{
|
|
|
|
/* Enable interrupts and halt the processor */
|
|
|
|
_enable();
|
|
|
|
__halt();
|
|
|
|
}
|
|
|
|
|
|
|
|
/* EOF */
|