mirror of https://github.com/l4ka/hazelnut.git
32 lines
460 B
C
32 lines
460 B
C
/*
|
|
* $Id: idt.h,v 1.1 2000/05/16 14:41:10 uhlig Exp $
|
|
*/
|
|
|
|
#define TRAPGATE 0x70
|
|
#define USERLEVEL 0x03
|
|
#define SEGPRESENT 0x01
|
|
|
|
typedef struct {
|
|
unsigned IntHandlerLow: 16;
|
|
unsigned Selector: 16;
|
|
unsigned Reserved: 5;
|
|
unsigned TrapGate: 8;
|
|
unsigned Privilege: 2;
|
|
unsigned Present: 1;
|
|
unsigned IntHandlerHigh: 16;
|
|
} IDTEntryT;
|
|
|
|
typedef void (*IntHandlerT)(void);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|