Skip to content

powerpc/64: Fix some snafus in head_64.S

Bradley Morgan linuxppc-dev lkml stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2powerpc/64e: Pass entry point in r4 to book3e_start_thread()arch/powerpc/kernel/head_64.S+1 -10 replies
2/2powerpc/64: Set r3 to physical CPU ID before kexec_wait on !SMParch/powerpc/kernel/head_64.S+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] powerpc/64: Fix some snafus in head_64.S

While reading through head_64.S, I noticed two bugs in early secondary processor startup.

The first patch fixes a register mismatch on Book3E where the secondary thread entry point was loaded into r5 instead of r4 when thread switching is required, which jumps to data and traps immediately.

The second patch fixes non SMP kernels where secondary processors jump to kexec_wait without copying their physical CPU ID into r3, leaving the next kernel with garbage during kexec.

Tested on ppc64.

Bradley Morgan (2):
powerpc/64e: Pass entry point in r4 to book3e_start_thread() powerpc/64: Set r3 to physical CPU ID before kexec_wait on !SMP

 arch/powerpc/kernel/head_64.S | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.53.0