ReactOS  0.4.15-dev-494-g1d8c567
processor.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS HAL
3  * LICENSE: GPL - See COPYING in the top level directory
4  * FILE: hal/halx86/up/processor.c
5  * PURPOSE: HAL Processor Routines
6  * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
7  */
8 
9 /* INCLUDES ******************************************************************/
10 
11 #include <hal.h>
12 #define NDEBUG
13 #include <debug.h>
14 
17 
18 /* PRIVATE FUNCTIONS *********************************************************/
19 
20 VOID
21 NTAPI
23 {
24  /* Disable interrupts and halt the CPU */
25  _disable();
26  __halt();
27 }
28 
29 /* FUNCTIONS *****************************************************************/
30 
31 
32 /*
33  * @implemented
34  */
35 BOOLEAN
36 NTAPI
38 {
39  /* Do nothing */
40  return TRUE;
41 }
42 
43 /*
44  * @implemented
45  */
46 BOOLEAN
47 NTAPI
49  IN PKPROCESSOR_STATE ProcessorState)
50 {
51  /* Ready to start */
52  return FALSE;
53 }
54 
55 /*
56  * @implemented
57  */
58 VOID
59 NTAPI
61 {
62  /* Enable interrupts and halt the processor */
63  _enable();
64  __halt();
65 }
66 
67 /*
68  * @implemented
69  */
70 VOID
71 NTAPI
72 HalRequestIpi(KAFFINITY TargetProcessors)
73 {
74  /* Not implemented on UP */
75  __debugbreak();
76 }
77 
78 /* EOF */
LONG HalpActiveProcessors
Definition: processor.c:17
#define IN
Definition: typedefs.h:39
#define TRUE
Definition: types.h:120
KAFFINITY HalpDefaultInterruptAffinity
Definition: processor.c:18
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:1595
VOID NTAPI HaliHaltSystem(VOID)
Definition: processor.c:22
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
unsigned char BOOLEAN
VOID NTAPI HalProcessorIdle(VOID)
Definition: processor.c:83
BOOLEAN NTAPI HalAllProcessorsStarted(VOID)
Definition: processor.c:60
ULONG_PTR KAFFINITY
Definition: compat.h:75
void __cdecl _disable(void)
Definition: intrin_arm.h:365