Kernel/x86 - Fix forgetting to reference pointer in TMPCR3 switch
authorJohn Hodge (sonata) <[email protected]>
Mon, 3 Nov 2014 04:45:52 +0000 (12:45 +0800)
committerJohn Hodge (sonata) <[email protected]>
Mon, 3 Nov 2014 04:45:52 +0000 (12:45 +0800)
KernelLand/Kernel/arch/x86_64/mm_virt.c

index 42b5e92..e399940 100644 (file)
@@ -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 { \

UCC git Repository :: git.ucc.asn.au