kdesc.h

00001 /***************************************************************************
00002                           kdesc.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 __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

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