|
FreeNOS
|
Go to the source code of this file.
Macros | |
| #define | CR0_PE 0x00000001 |
| Intel CPU Constants. | |
| #define | CR0_PG 0x80000000 |
| Paged Mode. | |
| #define | CR4_TSD 0x00000004 |
| Timestamp Counter Disable. | |
| #define | CR4_PSE (1 << 4) |
| #define | KERNEL_CS 1 |
| Kernel Code Segment. | |
| #define | KERNEL_CS_SEL 0x8 |
| #define | KERNEL_DS 2 |
| System Data Segment. | |
| #define | KERNEL_DS_SEL 0x10 |
| #define | USER_CS 3 |
| User Code Segment. | |
| #define | USER_CS_SEL (0x18 | 3) |
| #define | USER_DS 4 |
| User Data Segment. | |
| #define | USER_DS_SEL (0x20 | 3) |
| #define | KERNEL_TSS 5 |
| Kernel Task State Segment. | |
| #define | KERNEL_TSS_SEL 0x28 |
| #define | PAGESHIFT 12 |
| Intel Memory Constants. | |
| #define | DIRSHIFT 22 |
| Page table bit shift. | |
| #define | PAGESIZE 4096 |
| Intel uses 4K pages. | |
| #define | PAGEDIR_MAX 1024 |
| Number of entries in the page directory. | |
| #define | PAGETAB_MAX 1024 |
| Number of entries in a page table. | |
| #define | PAGEMASK 0xfffff000 |
| Mask to find the page. | |
| #define | SECTIONMASK 0xffc00000 |
| Mask for large 4MiB mappings. | |
| #define | MEMALIGN 4 |
| Memory address alignment. | |