Re: [PATCH 03/32] s390: Clear pt_regs flags field
From: Heiko Carstens
Date: Mon Oct 12 2026 - 08:25:43 EST
On Mon, Oct 12, 2026 at 02:15:39PM +0200, Ilya Leoshkevich wrote:
> > diff --git a/arch/s390/kernel/early.c b/arch/s390/kernel/early.c
> > index 1fc153d8385b..b8e3c065fbec 100644
> > --- a/arch/s390/kernel/early.c
> > +++ b/arch/s390/kernel/early.c
> > @@ -154,6 +154,7 @@ void __init __do_early_pgm_check(struct pt_regs *regs)
> > {
> > struct lowcore *lc = get_lowcore();
> > + regs->flags = 0;
> > regs->int_code = lc->pgm_int_code;
> > regs->int_parm_long = lc->trans_exc_code;
> > regs->last_break = lc->pgm_last_break;
>
> Just for my understanding, why can't we do it in C for all handlers?
We could - it is handled inconsistently currently, and I used the
existing pattern. This could be cleaned up as well across all
exception handlers.