ReactOS  0.4.15-dev-3324-gda4e15f
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 2010 Timo Kreuzer <timo.kreuzer@reactos.org>
6  */
7 
8 /* INCLUDES ******************************************************************/
9 
10 #include <hal.h>
11 #define NDEBUG
12 #include <debug.h>
13 
16 
17 /* PRIVATE FUNCTIONS *********************************************************/
18 
19 VOID
20 NTAPI
22 {
23  /* Disable interrupts and halt the CPU */
24  _disable();
25  __halt();
26 }
27 
28 /* FUNCTIONS *****************************************************************/
29 
30 /*
31  * @implemented
32  */
33 BOOLEAN
34 NTAPI
36 {
37  /* Do nothing */
38  return TRUE;
39 }
40 
41 /*
42  * @implemented
43  */
44 BOOLEAN
45 NTAPI
47  IN PKPROCESSOR_STATE ProcessorState)
48 {
49  /* Ready to start */
50  return FALSE;
51 }
52 
53 /*
54  * @implemented
55  */
56 VOID
57 NTAPI
59 {
60  /* Enable interrupts and halt the processor */
61  _enable();
62  __halt();
63 }
64 
65 /*
66  * @implemented
67  */
68 VOID
69 NTAPI
70 HalRequestIpi(KAFFINITY TargetProcessors)
71 {
73  __debugbreak();
74 }
75 
76 /* EOF */
LONG HalpActiveProcessors
Definition: processor.c:17
#define IN
Definition: typedefs.h:39
KAFFINITY HalpDefaultInterruptAffinity
Definition: processor.c:18
#define TRUE
Definition: types.h:120
VOID NTAPI HalRequestIpi(KAFFINITY TargetProcessors)
Definition: processor.c:96
void __cdecl _enable(void)
Definition: intrin_arm.h:373
__INTRIN_INLINE void __halt(void)
Definition: intrin_x86.h:1715
void __cdecl __debugbreak(void)
Definition: intrin_ppc.h:698
BOOLEAN NTAPI HalStartNextProcessor(IN PLOADER_PARAMETER_BLOCK LoaderBlock, IN PKPROCESSOR_STATE ProcessorState)
Definition: processor.c:71
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
#define FALSE
Definition: types.h:117
unsigned char BOOLEAN
VOID NTAPI HaliHaltSystem(VOID)
Definition: processor.c:21
VOID NTAPI HalProcessorIdle(VOID)
Definition: processor.c:83
BOOLEAN NTAPI HalAllProcessorsStarted(VOID)
Definition: processor.c:60
ULONG_PTR KAFFINITY
Definition: compat.h:85
void __cdecl _disable(void)
Definition: intrin_arm.h:365
#define UNIMPLEMENTED
Definition: debug.h:115