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

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

VOID NTAPI HalpInitProcessor (IN ULONG ProcessorNumber, IN PLOADER_PARAMETER_BLOCK LoaderBlock)
 
VOID HalpInitPhase0 (IN PLOADER_PARAMETER_BLOCK LoaderBlock)
 
VOID HalpInitPhase1 (VOID)
 

Variables

const USHORT HalpBuildType = HAL_BUILD_TYPE
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file halinit_up.c.

Function Documentation

◆ HalpInitPhase0()

VOID HalpInitPhase0 ( IN PLOADER_PARAMETER_BLOCK  LoaderBlock)

Definition at line 32 of file halinit_up.c.

33 {
34 
35 }

◆ HalpInitPhase1()

VOID HalpInitPhase1 ( VOID  )

Definition at line 38 of file halinit_up.c.

39 {
40  /* Enable timer interrupt handler */
42  0,
46  Latched);
47 
48  /* Enable RTC interrupt handler */
50  0,
54  Latched);
55 
56  /* Initialize DMA. NT does this in Phase 0 */
57  HalpInitDma();
58 }
#define PIC_RTC_IRQ
Definition: halhw.h:157
#define PRIMARY_VECTOR_BASE
Definition: halp.h:16
VOID HalpInitDma(VOID)
Definition: dma.c:121
VOID HalpProfileInterrupt(VOID)
VOID NTAPI HalpEnableInterruptHandler(IN UCHAR Flags, IN ULONG BusVector, IN ULONG SystemVector, IN KIRQL Irql, IN PVOID Handler, IN KINTERRUPT_MODE Mode)
Definition: usage.c:49
#define CLOCK2_LEVEL
Definition: env_spec_w32.h:700
VOID HalpClockInterrupt(VOID)
Definition: timer.c:30
#define PIC_TIMER_IRQ
Definition: halhw.h:155
#define PROFILE_LEVEL
Definition: env_spec_w32.h:698
#define IDT_DEVICE
Definition: halp.h:22

◆ HalpInitProcessor()

VOID NTAPI HalpInitProcessor ( IN ULONG  ProcessorNumber,
IN PLOADER_PARAMETER_BLOCK  LoaderBlock 
)

Definition at line 23 of file halinit_up.c.

26 {
27  /* Set default IDR */
28  KeGetPcr()->IDR = 0xFFFFFFFF & ~(1 << PIC_CASCADE_IRQ);
29 }
#define KeGetPcr()
Definition: ke.h:25
#define PIC_CASCADE_IRQ
Definition: halhw.h:156

Variable Documentation

◆ HalpBuildType

const USHORT HalpBuildType = HAL_BUILD_TYPE

Definition at line 17 of file halinit_up.c.