ReactOS 0.4.15-dev-7958-gcd0bb1a
i386idt.c File Reference
#include <freeldr.h>
Include dependency graph for i386idt.c:

Go to the source code of this file.

Functions

KIDTENTRY DECLSPEC_ALIGN (4)
 
static void InitIdtVector (UCHAR Vector, PVOID ServiceHandler, USHORT Access)
 
void __cdecl InitIdt (void)
 

Function Documentation

◆ DECLSPEC_ALIGN()

KIDTENTRY DECLSPEC_ALIGN ( )

Definition at line 5 of file i386idt.c.

6 {0, 255, (ULONG)i386Idt};
uint32_t ULONG
Definition: typedefs.h:59

◆ InitIdt()

void __cdecl InitIdt ( void  )

Definition at line 23 of file i386idt.c.

24{
28 InitIdtVector(3, i386Breakpoint, 0x8e00);
29 InitIdtVector(4, i386Overflow, 0x8e00);
35 InitIdtVector(10, i386InvalidTSS, 0x8e00);
39 InitIdtVector(14, i386PageFault, 0x8e00);
43}
void __cdecl i386GeneralProtectionFault(void)
void __cdecl i386SegmentNotPresent(void)
void __cdecl i386MachineCheck(void)
void __cdecl i386AlignmentCheck(void)
void __cdecl i386NMIException(void)
void __cdecl i386Overflow(void)
void __cdecl i386PageFault(void)
void __cdecl i386InvalidOpcode(void)
void __cdecl i386InvalidTSS(void)
void __cdecl i386DebugException(void)
void __cdecl i386CoprocessorError(void)
void __cdecl i386Breakpoint(void)
void __cdecl i386StackException(void)
void __cdecl i386CoprocessorSegment(void)
void __cdecl i386BoundException(void)
void __cdecl i386DivideByZero(void)
void __cdecl i386FPUNotAvailable(void)
void __cdecl i386DoubleFault(void)
static void InitIdtVector(UCHAR Vector, PVOID ServiceHandler, USHORT Access)
Definition: i386idt.c:10

◆ InitIdtVector()

static void InitIdtVector ( UCHAR  Vector,
PVOID  ServiceHandler,
USHORT  Access 
)
static

Definition at line 10 of file i386idt.c.

14{
15 i386Idt[Vector].Offset = (ULONG)ServiceHandler & 0xffff;
16 i386Idt[Vector].ExtendedOffset = (ULONG)ServiceHandler >> 16;
17 i386Idt[Vector].Selector = PMODE_CS;
18 i386Idt[Vector].Access = Access;
19}
static DWORD WINAPI ServiceHandler(DWORD ctrl, DWORD event_type, LPVOID event_data, LPVOID context)
Definition: service.c:57
#define PMODE_CS
Definition: x86common.h:70

Referenced by InitIdt().