Use 4Mbyte pages during boot

This commit is contained in:
Frans Kaashoek 2011-08-15 17:41:58 -04:00
parent 843eecfcd0
commit 9449646853
4 changed files with 15 additions and 1035 deletions

2
mmu.h
View file

@ -37,6 +37,8 @@
#define CR0_CD 0x40000000 // Cache Disable
#define CR0_PG 0x80000000 // Paging
#define CR4_PSE 0x00000010 // Page size extension
#define SEG_KCODE 1 // kernel code
#define SEG_KDATA 2 // kernel data+stack
#define SEG_KCPU 3 // kernel per-cpu data