--- arch/x86/Kconfig | 5 +++++ arch/x86/kernel/setup64.c | 2 +- arch/x86/kernel/vmlinux_64.lds.S | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) Index: linux-2.6.24-rc3-mm2/arch/x86/kernel/setup64.c =================================================================== --- linux-2.6.24-rc3-mm2.orig/arch/x86/kernel/setup64.c 2007-11-29 21:04:59.130393629 -0800 +++ linux-2.6.24-rc3-mm2/arch/x86/kernel/setup64.c 2007-11-29 22:00:38.256716591 -0800 @@ -111,7 +111,7 @@ void __init setup_per_cpu_areas(void) } if (!ptr) panic("Cannot allocate cpu data for CPU %d\n", i); - memcpy(ptr, __per_cpu_start, __per_cpu_end - __per_cpu_start); + memcpy(ptr, __per_cpu_load, __per_cpu_size); /* Relocate the pda */ memcpy(ptr, cpu_pda(i), sizeof(struct x8664_pda)); cpu_pda(i) = (struct x8664_pda *)ptr; Index: linux-2.6.24-rc3-mm2/arch/x86/kernel/vmlinux_64.lds.S =================================================================== --- linux-2.6.24-rc3-mm2.orig/arch/x86/kernel/vmlinux_64.lds.S 2007-11-29 21:04:59.122393486 -0800 +++ linux-2.6.24-rc3-mm2/arch/x86/kernel/vmlinux_64.lds.S 2007-11-29 21:50:38.924966472 -0800 @@ -16,6 +16,7 @@ jiffies_64 = jiffies; _proxy_pda = 1; PHDRS { text PT_LOAD FLAGS(5); /* R_E */ + percpu PT_LOAD FLAGS(4); /* R__ */ data PT_LOAD FLAGS(7); /* RWE */ user PT_LOAD FLAGS(7); /* RWE */ data.init PT_LOAD FLAGS(7); /* RWE */ Index: linux-2.6.24-rc3-mm2/arch/x86/Kconfig =================================================================== --- linux-2.6.24-rc3-mm2.orig/arch/x86/Kconfig 2007-11-29 21:04:59.142393840 -0800 +++ linux-2.6.24-rc3-mm2/arch/x86/Kconfig 2007-11-29 21:50:38.940966507 -0800 @@ -123,6 +123,11 @@ config GENERIC_TIME_VSYSCALL config ARCH_SETS_UP_PER_CPU_AREA def_bool X86_64 +config PERCPU_ZERO_BASED + bool + depends on X86_64 && SMP + default y + config ZONE_DMA32 bool default X86_64