Re: reduce hppa interrupt guts awfulness

2018-05-03 Thread Mark Kettenis
> Date: Thu, 3 May 2018 17:18:56 + > From: Miod Vallat > > > Regarding your diff. The approach seems reasonable to me. The magic > > number in the gscbus.c doesn't fill me with joy. > > > > > + r[4] = cpu_gethpa(0) | (31 - irqbit); /* iar */ > > > > I realise

Re: reduce hppa interrupt guts awfulness

2018-05-03 Thread Miod Vallat
> Regarding your diff. The approach seems reasonable to me. The magic > number in the gscbus.c doesn't fill me with joy. > > > + r[4] = cpu_gethpa(0) | (31 - irqbit); /* iar */ > > I realise you're following existing practice, but maybe you could you > add a gscbus_reg struct

Re: reduce hppa interrupt guts awfulness

2018-05-02 Thread Mark Kettenis
> Date: Tue, 1 May 2018 21:22:12 + > From: Miod Vallat > > B2000 and C3650 test have been done with sys/dev/ic/com.c downgraded to > 1.166 in order to avoid freezes (bug resolution ongoing and not related > to this diff). So that's why my C3000 didn't come back after a

reduce hppa interrupt guts awfulness

2018-05-01 Thread Miod Vallat
[this is long, and hppa-specific, feel free to ignore if you don't care about OpenBSD/hppa. Noone does anyway nowadays] At the beginning of the hppa port, no interrupts were shared - the processor allows for 32 interrupt sources and the existing designs made sure to allocate distinct interrupts