Use 4Mbyte pages during boot
This commit is contained in:
parent
843eecfcd0
commit
9449646853
4 changed files with 15 additions and 1035 deletions
2
mmu.h
2
mmu.h
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue