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 03:58:40
Also in: kexec, linux-mm, lkml

On Wed, Sep 29, 2021 at 8:45 AM Will Deacon [off-list ref] wrote:
On Thu, Sep 16, 2021 at 07:13:20PM -0400, Pasha Tatashin wrote:
quoted
Currently, relocation code declares start and end variables
which are used to compute its size.

The better way to do this is to use ld script incited, and put relocation
function in its own section.
"incited"? I don't understand ...
I will correct it:
s/incited//

quoted
+#ifdef CONFIG_KEXEC_CORE
+/* kexec relocation code should fit into one KEXEC_CONTROL_PAGE_SIZE */
+ASSERT(__relocate_new_kernel_end - (__relocate_new_kernel_start & ~(SZ_4K - 1))
+     <= SZ_4K, "kexec relocation code is too big or misaligned")
+ASSERT(KEXEC_CONTROL_PAGE_SIZE >= SZ_4K, "KEXEC_CONTROL_PAGE_SIZE is brokern")
Typo: "brokern",
Will correct it.

Thanks,
Pasha

_______________________________________________
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