diff options
-rw-r--r-- | arch/x86/boot/compressed/head_64.S | 8 | ||||
-rw-r--r-- | arch/x86/boot/compressed/vmlinux_64.lds | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/compressed/head_64.S index 7a212a62db36..d8819efac81d 100644 --- a/arch/x86/boot/compressed/head_64.S +++ b/arch/x86/boot/compressed/head_64.S | |||
@@ -244,9 +244,9 @@ ENTRY(startup_64) | |||
244 | /* Copy the compressed kernel to the end of our buffer | 244 | /* Copy the compressed kernel to the end of our buffer |
245 | * where decompression in place becomes safe. | 245 | * where decompression in place becomes safe. |
246 | */ | 246 | */ |
247 | leaq _end(%rip), %r8 | 247 | leaq _end_before_pgt(%rip), %r8 |
248 | leaq _end(%rbx), %r9 | 248 | leaq _end_before_pgt(%rbx), %r9 |
249 | movq $_end /* - $startup_32 */, %rcx | 249 | movq $_end_before_pgt /* - $startup_32 */, %rcx |
250 | 1: subq $8, %r8 | 250 | 1: subq $8, %r8 |
251 | subq $8, %r9 | 251 | subq $8, %r9 |
252 | movq 0(%r8), %rax | 252 | movq 0(%r8), %rax |
@@ -268,7 +268,7 @@ relocated: | |||
268 | */ | 268 | */ |
269 | xorq %rax, %rax | 269 | xorq %rax, %rax |
270 | leaq _edata(%rbx), %rdi | 270 | leaq _edata(%rbx), %rdi |
271 | leaq _end(%rbx), %rcx | 271 | leaq _end_before_pgt(%rbx), %rcx |
272 | subq %rdi, %rcx | 272 | subq %rdi, %rcx |
273 | cld | 273 | cld |
274 | rep | 274 | rep |
diff --git a/arch/x86/boot/compressed/vmlinux_64.lds b/arch/x86/boot/compressed/vmlinux_64.lds index 7e5c7209f6cc..bef1ac891bce 100644 --- a/arch/x86/boot/compressed/vmlinux_64.lds +++ b/arch/x86/boot/compressed/vmlinux_64.lds | |||
@@ -39,10 +39,10 @@ SECTIONS | |||
39 | *(.bss.*) | 39 | *(.bss.*) |
40 | *(COMMON) | 40 | *(COMMON) |
41 | . = ALIGN(8); | 41 | . = ALIGN(8); |
42 | _end = . ; | 42 | _end_before_pgt = . ; |
43 | . = ALIGN(4096); | 43 | . = ALIGN(4096); |
44 | pgtable = . ; | 44 | pgtable = . ; |
45 | . = . + 4096 * 6; | 45 | . = . + 4096 * 6; |
46 | _heap = .; | 46 | _ebss = .; |
47 | } | 47 | } |
48 | } | 48 | } |