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

2021-09-29 Thread Pasha Tatashin
Sorry, missed two comments: > > /* 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); > > +

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

2021-09-29 Thread Pasha Tatashin
On Wed, Sep 29, 2021 at 8:45 AM Will Deacon wrote: > > On Thu, Sep 16, 2021 at 07:13:20PM -0400, Pasha Tatashin wrote: > > 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

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

2021-09-29 Thread Will Deacon
On Thu, Sep 16, 2021 at 07:13:20PM -0400, Pasha Tatashin wrote: > 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

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

2021-09-16 Thread Pasha Tatashin
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. Signed-off-by: Pasha Tatashin --- arch/arm64/include/asm/sections.h | 1 +