From: John Hodge (sonata) Date: Mon, 3 Nov 2014 04:45:52 +0000 (+0800) Subject: Kernel/x86 - Fix forgetting to reference pointer in TMPCR3 switch X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=bf18000f310e627bf8611bffd9d4d07df7da57f8;p=tpg%2Facess2.git Kernel/x86 - Fix forgetting to reference pointer in TMPCR3 switch --- diff --git a/KernelLand/Kernel/arch/x86_64/mm_virt.c b/KernelLand/Kernel/arch/x86_64/mm_virt.c index 42b5e92a..e3999409 100644 --- a/KernelLand/Kernel/arch/x86_64/mm_virt.c +++ b/KernelLand/Kernel/arch/x86_64/mm_virt.c @@ -56,7 +56,7 @@ // TODO: INVLPG_ALL is expensive #define GET_TEMP_MAPPING(cr3) do { \ __ASM__("cli"); \ - __AtomicTestSetLoop( (Uint *)TMPCR3(), (cr3) | 3 ); \ + __AtomicTestSetLoop( (Uint *)&TMPCR3(), (cr3) | 3 ); \ INVLPG_ALL(); \ } while(0) #define REL_TEMP_MAPPING() do { \