Skip to content

Commit 7cf636c

Browse files
hcahcaAlexander Gordeev
authored andcommitted
s390/early: Copy last breaking event address to pt_regs
In case of an early crash the early program check handler also prints the last breaking event address which is contained within the pt_regs structure. However it is not initialized, and therefore a more or less random value is printed in case of a crash. Copy the last breaking event address from lowcore to pt_regs in case of an early program check to address this. This also makes it easier to analyze early crashes. Reviewed-by: Alexander Gordeev <[email protected]> Signed-off-by: Heiko Carstens <[email protected]> Signed-off-by: Alexander Gordeev <[email protected]>
1 parent 0cb39c9 commit 7cf636c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/s390/kernel/early.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ void __init __do_early_pgm_check(struct pt_regs *regs)
157157

158158
regs->int_code = lc->pgm_int_code;
159159
regs->int_parm_long = lc->trans_exc_code;
160+
regs->last_break = lc->pgm_last_break;
160161
ip = __rewind_psw(regs->psw, regs->int_code >> 16);
161162

162163
/* Monitor Event? Might be a warning */

0 commit comments

Comments
 (0)