diff options
-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" + ); + } |