Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda into per cpuarea
From: Jeremy Fitzhardinge
Date: Thu Jun 19 2008 - 18:24:40 EST
Mike Travis wrote:
@@ -132,6 +133,12 @@ ident_complete:
#ifdef CONFIG_SMP
addq %rbp, trampoline_level4_pgt + 0(%rip)
addq %rbp, trampoline_level4_pgt + (511*8)(%rip)
+
+ /*
+ * Fix up per_cpu__gdt_page offset when basing percpu
+ * variables at zero. This is only needed for the boot cpu.
+ */
+ addq $__per_cpu_load, early_gdt_descr_base
This needs to be rip-relative. An absolute reference here will fail
because you're still running in physical addresses.
J
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/