2 * PROJECT: ReactOS Hardware Abstraction Layer
3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4 * PURPOSE: Initialize the x86 HAL
5 * COPYRIGHT: Copyright 2011 Timo Kreuzer <timo.kreuzer@reactos.org>
8 /* INCLUDES *****************************************************************/
17 ApicInitializeLocalApic(ULONG Cpu
);
19 /* GLOBALS ******************************************************************/
21 const USHORT HalpBuildType
= HAL_BUILD_TYPE
;
23 /* FUNCTIONS ****************************************************************/
28 IN ULONG ProcessorNumber
,
29 IN PLOADER_PARAMETER_BLOCK LoaderBlock
)
31 /* Initialize the local APIC for this cpu */
32 ApicInitializeLocalApic(ProcessorNumber
);
34 /* Initialize profiling data (but don't start it) */
35 HalInitializeProfiling();
37 /* Initialize the timer */
38 //ApicInitializeTimer(ProcessorNumber);
43 HalpInitPhase0(IN PLOADER_PARAMETER_BLOCK LoaderBlock
)
46 /* Enable clock interrupt handler */
47 HalpEnableInterruptHandler(IDT_INTERNAL
,
58 /* Initialize DMA. NT does this in Phase 0 */