From 37a28b25b2b1cee086526c296821b50fc18d1211 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 6 Feb 2010 20:15:28 +0100 Subject: Set CR4.PGE. --- kernel/paging.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'kernel') 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" + ); + } -- cgit v1.2.3