kinit.h

00001 /***************************************************************************
00002                           kinit.h  -  description
00003                              -------------------
00004     begin                : Sat Dec 13 2003
00005     copyright            : (C) 2003 by Dynacube Team
00006     email                : mdshah82@yahoo.com
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 "common/ktypes.h"
00022         
00023         extern GDT *gdt;
00024         extern DB gdt_array[256*8];
00025 
00026         void gdt_init();
00027         void idt_init();
00028         
00029         void addDesc(DB index, SEG_DESC *tmp);
00030         void addIG(DB index, IG_DESC *tmp);
00031         void addTG(DB index, TG_DESC *tmp);
00032         void addTRG(DB index, TRG_DESC *tmp);
00033         
00034         void printTable(SEG_DESC *tab,int num_of_sel);
00035         
00036         void getDesc(DB index,SEG_DESC *ret);
00037 
00038 #endif

Generated on Thu Jul 27 23:52:26 2006 for Dynacube by  doxygen 1.4.7