ReactOS  0.4.15-dev-4857-g47842d7
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 11 of file processor.c.

Function Documentation

◆ HalAllProcessorsStarted()

BOOLEAN NTAPI HalAllProcessorsStarted ( VOID  )

Definition at line 35 of file processor.c.

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

◆ HaliHaltSystem()

VOID NTAPI HaliHaltSystem ( VOID  )

Definition at line 21 of file processor.c.

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

Referenced by HalInitSystem(), and HalpFreezeSystem().

◆ HalProcessorIdle()

VOID NTAPI HalProcessorIdle ( VOID  )

Definition at line 58 of file processor.c.

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

◆ HalRequestIpi()

VOID NTAPI HalRequestIpi ( KAFFINITY  TargetProcessors)

Definition at line 70 of file processor.c.

71 {
73  __debugbreak();
74 }
void __cdecl __debugbreak(void)
Definition: intrin_ppc.h:698
#define UNIMPLEMENTED
Definition: debug.h:115

◆ HalStartNextProcessor()

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

Definition at line 46 of file processor.c.

48 {
49  /* Ready to start */
50  return FALSE;
51 }
#define FALSE
Definition: types.h:117

Variable Documentation

◆ HalpActiveProcessors

KAFFINITY HalpActiveProcessors

Definition at line 14 of file processor.c.

◆ HalpDefaultInterruptAffinity

KAFFINITY HalpDefaultInterruptAffinity

Definition at line 15 of file processor.c.