Go to the documentation of this file.
18#ifndef __LIBARCH_INTEL_CONSTANT_H
19#define __LIBARCH_INTEL_CONSTANT_H
38#define CR0_PE 0x00000001
41#define CR0_PG 0x80000000
44#define CR4_TSD 0x00000004
45#define CR4_PSE (1 << 4)
49#define KERNEL_CS_SEL 0x8
53#define KERNEL_DS_SEL 0x10
57#define USER_CS_SEL (0x18 | 3)
61#define USER_DS_SEL (0x20 | 3)
65#define KERNEL_TSS_SEL 0x28
86#define PAGEDIR_MAX 1024
89#define PAGETAB_MAX 1024
92#define PAGEMASK 0xfffff000
95#define SECTIONMASK 0xffc00000