Something went wrong. Try again.
Reactos
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758/* * PROJECT: Xbox HAL * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later) * PURPOSE: Initialize the x86 HAL * COPYRIGHT: Copyright 1998 David Welch (welch@cwcom.net) */
/* INCLUDES *****************************************************************/
#include "halxbox.h"
#define NDEBUG#include <debug.h>
/* FUNCTIONS ****************************************************************/
VOIDNTAPIHalpInitProcessor( IN ULONG ProcessorNumber, IN PLOADER_PARAMETER_BLOCK LoaderBlock){ /* Set default IDR */ KeGetPcr()->IDR = 0xFFFFFFFF & ~(1 << PIC_CASCADE_IRQ);}
VOIDHalpInitPhase0(IN PLOADER_PARAMETER_BLOCK LoaderBlock){ /* Initialize Xbox-specific disk hacks */ HalpXboxInitPartIo();}
VOIDHalpInitPhase1(VOID){ /* Enable timer interrupt handler */ HalpEnableInterruptHandler(IDT_DEVICE, 0, PRIMARY_VECTOR_BASE + PIC_TIMER_IRQ, CLOCK2_LEVEL, HalpClockInterrupt, Latched);
/* Enable RTC interrupt handler */ HalpEnableInterruptHandler(IDT_DEVICE, 0, PRIMARY_VECTOR_BASE + PIC_RTC_IRQ, PROFILE_LEVEL, HalpProfileInterrupt, Latched);
/* Initialize DMA. NT does this in Phase 0 */ HalpInitDma();}
/* EOF */