Back to home page

Quest Cross Reference

 
 

    


Warning, cross-references for /kernel/include/kernel-defs.h need to be fixed.

0001 /*                    The Quest Operating System
0002  *  Copyright (C) 2005-2010  Richard West, Boston University
0003  *
0004  *  This program is free software: you can redistribute it and/or modify
0005  *  it under the terms of the GNU General Public License as published by
0006  *  the Free Software Foundation, either version 3 of the License, or
0007  *  (at your option) any later version.
0008  *
0009  *  This program is distributed in the hope that it will be useful,
0010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
0011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0012  *  GNU General Public License for more details.
0013  *
0014  *  You should have received a copy of the GNU General Public License
0015  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
0016  */
0017 
0018 #ifndef _KERNEL_DEFS_H_
0019 #define _KERNEL_DEFS_H_
0020 
0021 /* Define some constants for virtual addresses */
0022 #define KERN_STK 0xFF800000     /* Kernel stack */
0023 #define KERN_IDT 0xFFFEF000     /* Kernel IDT */
0024 #define KERN_IDT_LEN 0x7FF      /* 255 entries */
0025 #define KERN_GDT 0xFFFEF800     /* kernel GDT */
0026 #define KERN_SCR 0xFFFF0000     /* Screen (kernel virtual) memory  */
0027 #define KERN_PGT 0xFFFF1000     /* kernel page table */
0028 
0029 #define PHYS_INDEX_MAX 32768
0030 
0031 #define NR_MODS 10              /* Establish support for modules loaded by
0032                                    grub at boot time */
0033 
0034 #define QUANTUM_HZ 1000
0035 
0036 #endif
0037 
0038 /* 
0039  * Local Variables:
0040  * indent-tabs-mode: nil
0041  * mode: C
0042  * c-file-style: "gnu"
0043  * c-basic-offset: 2
0044  * End: 
0045  */
0046 
0047 /* vi: set et sw=2 sts=2: */