00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __KDESC_H
00019 #define __KDESC_H
00020
00021 #include "common/ktypes.h"
00022 #include "common/stdlib.h"
00023
00024 extern GDT *gdt;
00025 extern IDT *idt;
00026
00027 void clearDESC(SEG_DESC *in);
00028
00029 void printDESC(SEG_DESC *in);
00030
00031 void createDESC(SEG_DESC *in, DD base, DD limit, DW flags);
00032
00033 void createTG(TG_DESC *in, DW tss_sel, boolean p, DPL dpl);
00034
00035 void createIG(IG_DESC *in, DW seg_sel, DD offset, boolean p, DPL dpl);
00036 void printIG(IG_DESC *in);
00037
00038 void createTRG(TRG_DESC *in, DW sel_sel, DD offset, boolean p, DPL dpl);
00039 #endif