diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-02-06 20:15:28 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-02-06 20:15:28 +0100 |
commit | 37a28b25b2b1cee086526c296821b50fc18d1211 (patch) | |
tree | 5b2cf39a8c9349b1285403ed3869beeb62ed862a /kernel | |
parent | f36a96b59eddd066354018c4e6c6279897b33487 (diff) |
Set CR4.PGE.
Diffstat (limited to 'kernel')
-rwxr-xr-x | kernel/paging.c | 8 |
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" + ); + } |