diff options
Diffstat (limited to 'arch/x86/kernel/vmlinux_64.lds.S')
-rw-r--r-- | arch/x86/kernel/vmlinux_64.lds.S | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kernel/vmlinux_64.lds.S b/arch/x86/kernel/vmlinux_64.lds.S index 962f21f1d4d7..d2a0baa87d1b 100644 --- a/arch/x86/kernel/vmlinux_64.lds.S +++ b/arch/x86/kernel/vmlinux_64.lds.S | |||
@@ -217,10 +217,12 @@ SECTIONS | |||
217 | * percpu offsets are zero-based on SMP. PERCPU_VADDR() changes the | 217 | * percpu offsets are zero-based on SMP. PERCPU_VADDR() changes the |
218 | * output PHDR, so the next output section - __data_nosave - should | 218 | * output PHDR, so the next output section - __data_nosave - should |
219 | * switch it back to data.init. Also, pda should be at the head of | 219 | * switch it back to data.init. Also, pda should be at the head of |
220 | * percpu area. Preallocate it. | 220 | * percpu area. Preallocate it and define the percpu offset symbol |
221 | * so that it can be accessed as a percpu variable. | ||
221 | */ | 222 | */ |
222 | . = ALIGN(PAGE_SIZE); | 223 | . = ALIGN(PAGE_SIZE); |
223 | PERCPU_VADDR_PREALLOC(0, :percpu, pda_size) | 224 | PERCPU_VADDR_PREALLOC(0, :percpu, pda_size) |
225 | per_cpu____pda = __per_cpu_start; | ||
224 | #else | 226 | #else |
225 | PERCPU(PAGE_SIZE) | 227 | PERCPU(PAGE_SIZE) |
226 | #endif | 228 | #endif |