ReactOS  0.4.15-dev-3302-ga37d9a4
halinit.c File Reference
#include "halxbox.h"
#include <debug.h>
Include dependency graph for halinit.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)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file halinit.c.

Function Documentation

◆ HalpInitPhase0()

VOID HalpInitPhase0 ( IN PLOADER_PARAMETER_BLOCK  LoaderBlock)

Definition at line 28 of file halinit.c.

29 {
30  /* Initialize Xbox-specific disk hacks */
32 }
VOID HalpXboxInitPartIo(VOID)
Definition: part_xbox.c:331

◆ HalpInitPhase1()

VOID HalpInitPhase1 ( VOID  )

Definition at line 35 of file halinit.c.

36 {
37  /* Enable timer interrupt handler */
39  0,
43  Latched);
44 
45  /* Enable RTC interrupt handler */
47  0,
51  Latched);
52 
53  /* Initialize DMA. NT does this in Phase 0 */
54  HalpInitDma();
55 }
#define PIC_RTC_IRQ
Definition: halhw.h:157
#define PRIMARY_VECTOR_BASE
Definition: halp.h:16
VOID HalpProfileInterrupt(VOID)
VOID HalpInitDma(VOID)
Definition: dma.c:153
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 19 of file halinit.c.

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