ReactOS  0.4.15-dev-345-g5d88487
halinit_up.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS kernel
4  * FILE: hal/halx86/up/halinit_up.c
5  * PURPOSE: Initialize the x86 hal
6  * PROGRAMMER: David Welch (welch@cwcom.net)
7  * UPDATE HISTORY:
8  * 11/06/98: Created
9  */
10 
11 /* INCLUDES *****************************************************************/
12 
13 #include <hal.h>
14 #define NDEBUG
15 #include <debug.h>
16 
17 /* GLOBALS ******************************************************************/
18 
20 
21 /* FUNCTIONS ****************************************************************/
22 
23 VOID
24 NTAPI
26  IN ULONG ProcessorNumber,
27  IN PLOADER_PARAMETER_BLOCK LoaderBlock)
28 {
29  /* Set default IDR */
30  KeGetPcr()->IDR = 0xFFFFFFFB;
31 }
32 
33 VOID
35 {
36 
37 }
38 
39 VOID
41 {
42  /* Enable IRQ 0 */
44  0,
48  Latched);
49 
50  /* Enable IRQ 8 */
52  0,
56  Latched);
57 
58  /* Initialize DMA. NT does this in Phase 0 */
59  HalpInitDma();
60 }
61 
62 /* EOF */
#define IN
Definition: typedefs.h:39
#define PRIMARY_VECTOR_BASE
Definition: halp.h:16
#define HAL_BUILD_TYPE
Definition: halp.h:10
#define KeGetPcr()
Definition: ke.h:25
VOID NTAPI HalpInitProcessor(IN ULONG ProcessorNumber, IN PLOADER_PARAMETER_BLOCK LoaderBlock)
Definition: halinit_up.c:25
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
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
VOID HalpInitPhase1(VOID)
Definition: halinit_up.c:26
VOID HalpInitPhase0(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
Definition: halinit_up.c:20
unsigned short USHORT
Definition: pedump.c:61
#define PROFILE_LEVEL
Definition: env_spec_w32.h:698
unsigned int ULONG
Definition: retypes.h:1
#define IDT_DEVICE
Definition: halp.h:22
const USHORT HalpBuildType
Definition: halinit_up.c:19