ReactOS  0.4.15-dev-2720-g5ee0925
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
 
#define INITIAL_STALL_COUNT   0x10000
 

Functions

VOID NTAPI HalInitializeProcessor (ULONG ProcessorNumber, PLOADER_PARAMETER_BLOCK LoaderBlock)
 
BOOLEAN NTAPI HalAllProcessorsStarted (VOID)
 
NTHALAPI BOOLEAN NTAPI HalStartNextProcessor (IN struct _LOADER_PARAMETER_BLOCK *LoaderBlock, IN PKPROCESSOR_STATE ProcessorState)
 
VOID NTAPI HalProcessorIdle (VOID)
 
VOID NTAPI HalRequestIpi (ULONG Reserved)
 

Macro Definition Documentation

◆ INITIAL_STALL_COUNT

#define INITIAL_STALL_COUNT   0x10000

Definition at line 22 of file processor.c.

◆ NDEBUG

#define NDEBUG

Definition at line 17 of file processor.c.

Function Documentation

◆ HalAllProcessorsStarted()

BOOLEAN NTAPI HalAllProcessorsStarted ( VOID  )

Definition at line 33 of file processor.c.

34 {
35  DPRINT("HalAllProcessorsStarted()\n");
36 
37  return TRUE;
38 }
#define TRUE
Definition: types.h:120
#define DPRINT
Definition: sndvol32.h:71

◆ HalInitializeProcessor()

VOID NTAPI HalInitializeProcessor ( ULONG  ProcessorNumber,
PLOADER_PARAMETER_BLOCK  LoaderBlock 
)

Definition at line 25 of file processor.c.

27 {
28  DPRINT("HalInitializeProcessor(%lu %p)\n", ProcessorNumber, LoaderBlock);
29  KeGetPcr()->StallScaleFactor = INITIAL_STALL_COUNT;
30 }
#define INITIAL_STALL_COUNT
Definition: processor.c:22
#define KeGetPcr()
Definition: ke.h:26
#define DPRINT
Definition: sndvol32.h:71

◆ HalProcessorIdle()

VOID NTAPI HalProcessorIdle ( VOID  )

Definition at line 58 of file processor.c.

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

◆ HalRequestIpi()

VOID NTAPI HalRequestIpi ( ULONG  Reserved)

Definition at line 69 of file processor.c.

70 {
71  /* Not implemented on NT */
72  __debugbreak();
73 }
void __cdecl __debugbreak(void)
Definition: intrin_ppc.h:698

◆ HalStartNextProcessor()

NTHALAPI BOOLEAN NTAPI HalStartNextProcessor ( IN struct _LOADER_PARAMETER_BLOCK LoaderBlock,
IN PKPROCESSOR_STATE  ProcessorState 
)

Definition at line 43 of file processor.c.

47 {
48  DPRINT("HalStartNextProcessor(0x%lx 0x%lx)\n", LoaderBlock, ProcessorState);
49 
50  return TRUE;
51 }
#define TRUE
Definition: types.h:120
#define DPRINT
Definition: sndvol32.h:71