ReactOS 0.4.15-dev-7846-g8ba6c66
processor.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Hardware Abstraction Layer
3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4 * PURPOSE: HAL Processor Routines
5 * COPYRIGHT: Copyright 2006 Alex Ionescu <alex.ionescu@reactos.org>
6 */
7
8/* INCLUDES ******************************************************************/
9
10#include <hal.h>
11#define NDEBUG
12#include <debug.h>
13
16
17/* PRIVATE FUNCTIONS *********************************************************/
18
19VOID
22{
23 /* Disable interrupts and halt the CPU */
24 _disable();
25 __halt();
26}
27
28/* FUNCTIONS *****************************************************************/
29
30/*
31 * @implemented
32 */
36{
37 /* Do nothing */
38 return TRUE;
39}
40
41/*
42 * @implemented
43 */
44VOID
47{
48 /* Enable interrupts and halt the processor */
49 _enable();
50 __halt();
51}
52
53/* EOF */
unsigned char BOOLEAN
#define TRUE
Definition: types.h:120
ULONG_PTR KAFFINITY
Definition: compat.h:85
KAFFINITY HalpDefaultInterruptAffinity
Definition: processor.c:18
VOID NTAPI HalProcessorIdle(VOID)
Definition: processor.c:83
KAFFINITY HalpActiveProcessors
Definition: processor.c:17
BOOLEAN NTAPI HalAllProcessorsStarted(VOID)
Definition: processor.c:60
VOID NTAPI HaliHaltSystem(VOID)
Definition: processor.c:21
void __cdecl _disable(void)
Definition: intrin_arm.h:365
void __cdecl _enable(void)
Definition: intrin_arm.h:373
__INTRIN_INLINE void __halt(void)
Definition: intrin_x86.h:1714
#define NTAPI
Definition: typedefs.h:36