[Skiboot] [PATCH] head.S: store all of LR and CTR
Stewart Smith
stewart at linux.vnet.ibm.com
Mon May 8 14:53:00 AEST 2017
Oliver O'Halloran <oohall at gmail.com> writes:
> When saving the CTR and LR registers the skiboot exception handlers use the
> 'stw' instruction which only saves the lower 32 bits of the register. Given
> these are both 64 bit registers this leads to some strange register dumps,
> for example:
>
> ***********************************************
> Unexpected exception 200 !
> SRR0 : 0000000030016968 SRR1 : 9000000000201000
> HSRR0: 0000000000000180 HSRR1: 9000000000001000
> LR : 3003438830823f50 CTR : 3003438800000018
> CFAR : 00000000300168fc
> CR : 40004208 XER: 00000000
>
> In this dump the upper 32 bits of LR and CTR are actually stack gunk
> which obscures the underlying issue.
>
> Signed-off-by: Oliver O'Halloran <oohall at gmail.com>
Merged as of 70bc370883330c8b1076555c126647a3cdf88706
and the r5/r6 fixup spotted by Ben merged as of
d55194c5d9ada77eee2c9a69814708304f34d334
and cherry-picked back into 5.4.x as of:
e4055143dd6376bed4c94db6d95b73559a0bf702
4868b9816c7990fb0f26a0032fecfd5d9c9327b4
--
Stewart Smith
OPAL Architect, IBM.
More information about the Skiboot
mailing list