kconst.h

00001 /***************************************************************************
00002                           kconst.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 __KCONST_H
00019 #define __KCONST_H
00020 
00021   #define VM_DELAY(x) cli(); cls(); x; delay(0xFFFF); sti();
00022   
00023   #define UNAVL 0x0
00024   #define AVL   0x1
00025   
00026   #define WINDOW_MAX    0xA
00027   #define FRAME_MAX     0xA
00028   #define COMPONENT_MAX 100
00029     
00030   #define MINI_BUFFER 100
00031  
00032   #define GDT_BASE ((DD)gdt_array)           //0xFFFF
00033   
00034   #define IDT_BASE  0x0
00035 
00036   #define BLOCK while(1);
00037 
00038   #define PHYS_MEM 0x10000000         //256 Mb
00039   #define KERNEL_SIZE 0x1400000        //0xA00000  
00040   #define NUM_PAGES (PHYS_MEM/0x1000)
00041 
00042   #define _4MB 0x400000
00043   #define _4KB 0x1000
00044 
00045   #define NULL1_SEL       0    
00046   #define NULL2_SEL       1
00047   
00048   #define SYS_DATA_SEL    2  
00049   #define SYS_CODE_SEL    3
00050   #define SYS_STACK_SEL   4
00051        
00052   #define GUI_STACK_SEL      5
00053   #define FLOPPY_STACK_SEL   6
00054   #define FS_STACK_SEL       7
00055     
00056   #define LDT_SYS_SEL     8
00057   #define LDT_USR_SEL     9        
00058   #define SYS_TSS_SEL     10
00059   #define TASK1_TSS_SEL   11            
00060   #define TASK2_TSS_SEL   12
00061   #define INT_TSS_SEL     13
00062   #define CALL_GATE_SEL   14
00063 
00064   #define SVGA_CODE_16_SEL    15  
00065   #define SVGA_DATA_16_SEL    16
00066   #define SVGA_STACK_16_SEL   17  
00067 
00068   #define A000_SEL            18
00069   #define B000_SEL            19    
00070   #define B800_SEL            20
00071   #define BIOS_DATA_SEL       21
00072 
00073   #define VM86_CODE_SEL       22
00074   #define VM86_DATA_SEL       23
00075   #define VM86_STACK_SEL      24
00076   
00077   #define END_SEL             25
00078 
00079   //Proc  
00080   #define MAX_PROC 32
00081   #define MAX_Q  0x1000//0x9C800
00082   #define MAX_FILENAME 0x100
00083   #define MAX_PATHNAME 512
00084   #define MAX_OPEN_FILES 0xA
00085 
00086   #define BUF_SIZE 0x200
00087 
00088   #define MAX_PROC_SIZE 0x32000     //200Kb
00089   #define MAX_DEVICE 5
00090 
00091   #define KERNEL_PID  (MAX_PROC+1) //-1
00092   #define NULL_PID    0
00093   #define GUI_PID     1
00094   #define FLOPPY_PID  2
00095   #define FS_PID      3
00096   #define VM86_PID    4
00097   
00098 #endif

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