ReactOS  0.4.15-dev-494-g1d8c567
processor.c File Reference
#include <hal.h>
#include <debug.h>
Include dependency graph for processor.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

VOID NTAPI HaliHaltSystem (VOID)
 
BOOLEAN NTAPI HalAllProcessorsStarted (VOID)
 
BOOLEAN NTAPI HalStartNextProcessor (IN PLOADER_PARAMETER_BLOCK LoaderBlock, IN PKPROCESSOR_STATE ProcessorState)
 
VOID NTAPI HalProcessorIdle (VOID)
 
VOID NTAPI HalRequestIpi (KAFFINITY TargetProcessors)
 

Variables

KAFFINITY HalpActiveProcessors
 
KAFFINITY HalpDefaultInterruptAffinity
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file processor.c.

Function Documentation

◆ HalAllProcessorsStarted()

BOOLEAN NTAPI HalAllProcessorsStarted ( VOID  )

Definition at line 37 of file processor.c.

38 {
39  /* Do nothing */
40  return TRUE;
41 }
#define TRUE
Definition: types.h:120

◆ HaliHaltSystem()

VOID NTAPI HaliHaltSystem ( VOID  )

Definition at line 22 of file processor.c.

23 {
24  /* Disable interrupts and halt the CPU */
25  _disable();
26  __halt();
27 }
__INTRIN_INLINE void __halt(void)
Definition: intrin_x86.h:1595
void __cdecl _disable(void)
Definition: intrin_arm.h:365

◆ HalProcessorIdle()

VOID NTAPI HalProcessorIdle ( VOID  )

Definition at line 60 of file processor.c.

61 {
62  /* Enable interrupts and halt the processor */
63  _enable();
64  __halt();
65 }
void __cdecl _enable(void)
Definition: intrin_arm.h:373
__INTRIN_INLINE void __halt(void)
Definition: intrin_x86.h:1595

◆ HalRequestIpi()

VOID NTAPI HalRequestIpi ( KAFFINITY  TargetProcessors)

Definition at line 72 of file processor.c.

73 {
74  /* Not implemented on UP */
75  __debugbreak();
76 }
void __cdecl __debugbreak(void)
Definition: intrin_ppc.h:698

◆ HalStartNextProcessor()

BOOLEAN NTAPI HalStartNextProcessor ( IN PLOADER_PARAMETER_BLOCK  LoaderBlock,
IN PKPROCESSOR_STATE  ProcessorState 
)

Definition at line 48 of file processor.c.

50 {
51  /* Ready to start */
52  return FALSE;
53 }

Variable Documentation

◆ HalpActiveProcessors

KAFFINITY HalpActiveProcessors

Definition at line 15 of file processor.c.

◆ HalpDefaultInterruptAffinity

KAFFINITY HalpDefaultInterruptAffinity

Definition at line 16 of file processor.c.