From: John Hodge Date: Fri, 25 Sep 2009 02:46:01 +0000 (+0800) Subject: CR3 is PHYSICAL not VIRTUAL X-Git-Tag: rel0.06~520 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=ad8b4443915bbca99ceaac45047f40148d97b2ae;p=tpg%2Facess2.git CR3 is PHYSICAL not VIRTUAL --- diff --git a/Kernel/arch/x86/proc.c b/Kernel/arch/x86/proc.c index bdce0ca2..bb93bfc9 100644 --- a/Kernel/arch/x86/proc.c +++ b/Kernel/arch/x86/proc.c @@ -136,7 +136,7 @@ void ArchThreads_Init() gThreadZero.MemState.PDP[1] = 0; gThreadZero.MemState.PDP[2] = 0; #else - gThreadZero.MemState.CR3 = (Uint)gaInitPageDir; + gThreadZero.MemState.CR3 = (Uint)gaInitPageDir - KERNEL_BASE; #endif // Set timer frequency