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_up.c
Go to the documentation of this file.
00001 /* $Id: halinit_up.c 53675 2011-09-10 18:58:01Z 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:    David Welch (welch@cwcom.net)
00008  * UPDATE HISTORY:
00009  *              11/06/98: Created
00010  */
00011 
00012 /* INCLUDES *****************************************************************/
00013 
00014 #include <hal.h>
00015 #define NDEBUG
00016 #include <debug.h>
00017 
00018 /* GLOBALS ******************************************************************/
00019 
00020 const USHORT HalpBuildType = HAL_BUILD_TYPE;
00021 
00022 /* FUNCTIONS ****************************************************************/
00023 
00024 VOID
00025 NTAPI
00026 HalpInitProcessor(
00027     IN ULONG ProcessorNumber,
00028     IN PLOADER_PARAMETER_BLOCK LoaderBlock)
00029 {
00030     /* Set default IDR */
00031     KeGetPcr()->IDR = 0xFFFFFFFB;
00032 }
00033 
00034 VOID
00035 HalpInitPhase0(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
00036 {
00037 
00038 }
00039 
00040 VOID
00041 HalpInitPhase1(VOID)
00042 {
00043         /* Enable IRQ 0 */
00044         HalpEnableInterruptHandler(IDT_DEVICE,
00045                                    0,
00046                                    PRIMARY_VECTOR_BASE,
00047                                    CLOCK2_LEVEL,
00048                                    HalpClockInterrupt,
00049                                    Latched);
00050 
00051         /* Enable IRQ 8 */
00052         HalpEnableInterruptHandler(IDT_DEVICE,
00053                                    0,
00054                                    PRIMARY_VECTOR_BASE + 8,
00055                                    PROFILE_LEVEL,
00056                                    HalpProfileInterrupt,
00057                                    Latched);
00058 
00059         /* Initialize DMA. NT does this in Phase 0 */
00060         HalpInitDma();
00061 }
00062 
00063 /* EOF */

Generated on Fri May 25 2012 04:26:56 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.