ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

halinit_apic.c
Go to the documentation of this file.
00001 /* $Id: halinit_up.c 53529 2011-09-02 14:45:19Z tkreuzer $
00002  *
00003  * COPYRIGHT:     See COPYING in the top level directory
00004  * PROJECT:       ReactOS kernel
00005  * FILE:          ntoskrnl/hal/x86/halinit.c
00006  * PURPOSE:       Initalize the x86 hal
00007  * PROGRAMMER:    Timo Kreuzer (timo.kreuzer@reactos.org)
00008  */
00009 
00010 /* INCLUDES *****************************************************************/
00011 
00012 #include <hal.h>
00013 #define NDEBUG
00014 #include <debug.h>
00015 #include "apic.h"
00016 
00017 VOID
00018 NTAPI
00019 ApicInitializeLocalApic(ULONG Cpu);
00020 
00021 /* GLOBALS ******************************************************************/
00022 
00023 const USHORT HalpBuildType = HAL_BUILD_TYPE;
00024 
00025 /* FUNCTIONS ****************************************************************/
00026 
00027 VOID
00028 NTAPI
00029 HalpInitProcessor(
00030     IN ULONG ProcessorNumber,
00031     IN PLOADER_PARAMETER_BLOCK LoaderBlock)
00032 {
00033     /* Initialize the local APIC for this cpu */
00034     ApicInitializeLocalApic(ProcessorNumber);
00035 
00036     /* Initialize the timer */
00037     //ApicInitializeTimer(ProcessorNumber);
00038 
00039 }
00040 
00041 VOID
00042 HalpInitPhase0(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
00043 {
00044 
00045     /* Enable clock interrupt handler */
00046     HalpEnableInterruptHandler(IDT_INTERNAL,
00047                                0,
00048                                APIC_CLOCK_VECTOR,
00049                                CLOCK2_LEVEL,
00050                                HalpClockInterrupt,
00051                                Latched);
00052 }
00053 
00054 VOID
00055 HalpInitPhase1(VOID)
00056 {
00057     /* Initialize DMA. NT does this in Phase 0 */
00058     HalpInitDma();
00059 }
00060 
00061 /* EOF */

Generated on Sun May 27 2012 04:28:43 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.