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

i386idt.c
Go to the documentation of this file.
00001 
00002 #include <freeldr.h>
00003 
00004 
00005 KIDTENTRY DECLSPEC_ALIGN(4) i386Idt[32];
00006 KDESCRIPTOR i386IdtDescriptor = {0, 255, (ULONG)i386Idt};
00007 
00008 static
00009 void
00010 InitIdtVector(
00011     UCHAR Vector,
00012     PVOID ServiceHandler,
00013     USHORT Access)
00014 {
00015     i386Idt[Vector].Offset = (ULONG)ServiceHandler & 0xffff;
00016     i386Idt[Vector].ExtendedOffset = (ULONG)ServiceHandler >> 16;
00017     i386Idt[Vector].Selector = PMODE_CS;
00018     i386Idt[Vector].Access = Access;
00019 }
00020 
00021 void
00022 InitIdt(void)
00023 {
00024     InitIdtVector(0, i386DivideByZero, 0x8e00);
00025     InitIdtVector(1, i386DebugException, 0x8e00);
00026     InitIdtVector(2, i386NMIException, 0x8e00);
00027     InitIdtVector(3, i386Breakpoint, 0x8e00);
00028     InitIdtVector(4, i386Overflow, 0x8e00);
00029     InitIdtVector(5, i386BoundException, 0x8e00);
00030     InitIdtVector(6, i386InvalidOpcode, 0x8e00);
00031     InitIdtVector(7, i386FPUNotAvailable, 0x8e00);
00032     InitIdtVector(8, i386DoubleFault, 0x8e00);
00033     InitIdtVector(9, i386CoprocessorSegment, 0x8e00);
00034     InitIdtVector(10, i386InvalidTSS, 0x8e00);
00035     InitIdtVector(11, i386SegmentNotPresent, 0x8e00);
00036     InitIdtVector(12, i386StackException, 0x8e00);
00037     InitIdtVector(13, i386GeneralProtectionFault, 0x8e00);
00038     InitIdtVector(14, i386PageFault, 0x8e00);
00039     InitIdtVector(16, i386CoprocessorError, 0x8e00);
00040     InitIdtVector(17, i386AlignmentCheck, 0x8e00);
00041     InitIdtVector(18, i386MachineCheck, 0x8e00);
00042 }

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