summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-02-06 20:15:28 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-02-06 20:15:28 +0100
commit37a28b25b2b1cee086526c296821b50fc18d1211 (patch)
tree5b2cf39a8c9349b1285403ed3869beeb62ed862a /kernel
parentf36a96b59eddd066354018c4e6c6279897b33487 (diff)
Set CR4.PGE.
Diffstat (limited to 'kernel')
-rwxr-xr-xkernel/paging.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/kernel/paging.c b/kernel/paging.c
index 88da0ab..58c4293 100755
--- a/kernel/paging.c
+++ b/kernel/paging.c
@@ -23,5 +23,11 @@ void paging_reinit() {
}
}
- // TODO: Set CR4.PGE.
+ asm volatile(
+ "mov %%cr4, %%eax\n"
+ "or $0x00000080, %%eax\n"
+ "mov %%eax, %%cr4\n"
+ ::: "%eax"
+ );
+
}