Thread (31 messages) 31 messages, 3 authors, 2021-09-30

Re: [PATCH v17 10/15] arm64: kexec: use ld script for relocation function

From: Pasha Tatashin <pasha.tatashin@soleen.com>
Date: 2021-09-30 04:08:58
Also in: kexec, linux-mm, lkml

Sorry, missed two comments:
quoted
      /* Flush the reloc_code in preparation for its execution. */
      dcache_clean_inval_poc((unsigned long)reloc_code,
-                            (unsigned long)reloc_code +
-                            arm64_relocate_new_kernel_size);
+                            (unsigned long)reloc_code +  reloc_size);
Extra whitespace.
Yeap, extra whitespace after '+', will fix it :)
quoted
      icache_inval_pou((uintptr_t)reloc_code,
-                      (uintptr_t)reloc_code +
-                      arm64_relocate_new_kernel_size);
+                      (uintptr_t)reloc_code + reloc_size);
      kexec_list_flush(kimage);
      kexec_image_info(kimage);
diff --git a/arch/arm64/kernel/relocate_kernel.S b/arch/arm64/kernel/relocate_kernel.S
index b4fb97312a80..9d2400855ee4 100644
--- a/arch/arm64/kernel/relocate_kernel.S
+++ b/arch/arm64/kernel/relocate_kernel.S
@@ -15,6 +15,7 @@
 #include <asm/sysreg.h>
 #include <asm/virt.h>

+.pushsection    ".kexec_relocate.text", "ax"
Just use .section if you're putting the entire file in there?
Good point, I will change it to .section.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help