Re: [PATCH v2] powerpc64/idle: Fix SP offsets when saving GPRs

2021-02-10 Thread Michael Ellerman
On Sat, 6 Feb 2021 01:23:42 -0600, Christopher M. Riedl wrote: > The idle entry/exit code saves/restores GPRs in the stack "red zone" > (Protected Zone according to PowerPC64 ELF ABI v2). However, the offset > used for the first GPR is incorrect and overwrites the back chain - the > Protected Zone

[PATCH v2] powerpc64/idle: Fix SP offsets when saving GPRs

2021-02-05 Thread Christopher M. Riedl
The idle entry/exit code saves/restores GPRs in the stack "red zone" (Protected Zone according to PowerPC64 ELF ABI v2). However, the offset used for the first GPR is incorrect and overwrites the back chain - the Protected Zone actually starts below the current SP. In practice this is probably not