[PATCH v2] powerpc: Fix unnecessary copy to 0 when kernel is booted at address 0.

2024-06-19 Thread Jinglin Wen
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 +++

Re: [PATCH] powerpc: Fixed duplicate copying in the early boot.

2024-06-18 Thread Jinglin Wen
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

Re: [PATCH] powerpc: Fixed duplicate copying in the early boot.

2024-06-18 Thread Jinglin Wen
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

[PATCH] powerpc: Fixed duplicate copying in the early boot.

2024-06-16 Thread Jinglin Wen
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

[PATCH] powerpc: Fixed the bug of duplicate copying

2024-06-06 Thread 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