00001 /*************************************************************************** 00002 kinit.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 __KINIT_H 00019 #define __KINIT_H 00020 00021 #include "ktypes.h" 00022 00023 extern GDT *gdt; 00024 00025 void gdt_init(); 00026 void idt_init(); 00027 00028 void addDesc(DB index, SEG_DESC *tmp); 00029 void addIG(DB index, IG_DESC *tmp); 00030 void addTG(DB index, TG_DESC *tmp); 00031 void addTRG(DB index, TRG_DESC *tmp); 00032 00033 void printTable(SEG_DESC *tab,int num_of_sel); 00034 #endif