c/64s: Run at the kernel virtual address earlier in
boot")
Signed-off-by: Jinglin Wen
Suggested-by: Michael Ellerman
Cc:
---
v2:
- According to 87le336c6k.fsf@mail.lhotse, improve this patch.
v1:
- 20240617023509.5674-1-jinglin@shingroup.cn
arch/powerpc/kernel/head_64.S | 5 +++
Hi Segher Boessenkool,
Segher Boessenkool writes:
> Hi!
>
> On Mon, Jun 17, 2024 at 10:35:09AM +0800, Jinglin Wen wrote:
> > + cmplwi cr0,r4,0/* runtime base addr is zero */
>
> Just write
>cmpwi r4,0
>
> cr0 is the default, also implicit in m
Hi Michael Ellerman,
Michael Ellerman writes:
> Jinglin Wen writes:
> > According to the code logic, when the kernel is loaded to address 0,
> > no copying operation should be performed, but it is currently being
> > done.
> >
> > This patch fixes the issue wher
According to the code logic, when the kernel is loaded to address 0,
no copying operation should be performed, but it is currently being
done.
This patch fixes the issue where the kernel code was incorrectly
duplicated to address 0 when booting from address 0.
Signed-off-by: Jinglin Wen
Fixed the issue where the kernel, when booting from address 0, had
code incorrectly duplicated to address 0.
Signed-off-by: Jinglin Wen
---
arch/powerpc/kernel/head_64.S | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/powerpc/kernel/head_64.S b/arch/powerpc/kernel