00001 /*************************************************************************** 00002 kdesc.h - description 00003 ------------------- 00004 begin : Sat Dec 13 2003 00005 copyright : (C) 2003 by Dynacube Team 00006 email : [email protected] 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef __KDESC_H 00019 #define __KDESC_H 00020 00021 #include "ktypes.h" 00022 #include "stdlib.h" 00023 00024 extern GDT *gdt; 00025 extern IDT *idt; 00026 00027 void clearDESC(SEG_DESC *in); 00028 void printDESC(SEG_DESC *in); 00029 void createDESC(SEG_DESC *in, DD base, DD limit, DW flags); 00030 void createTG(TG_DESC *in, DW tss_sel, boolean p, DPL dpl); 00031 void createIG(IG_DESC *in, DW seg_sel, DD offset, boolean p, DPL dpl); 00032 void printIG(IG_DESC *in); 00033 void createTRG(TRG_DESC *in, DW sel_sel, DD offset, boolean p, DPL dpl); 00034 00035 #endif