On Thu, Apr 1, 2021 at 1:28 PM Jan Hubicka <hubi...@ucw.cz> wrote: > > > On Thu, Apr 1, 2021 at 6:54 PM H.J. Lu <hjl.to...@gmail.com> wrote: > > > > > > Since uiret should be used only for user interrupt handler return, don't > > > generate uiret in interrupt handler return with -mcmodel=kernel even if > > > UINTR is enabled. > > > > NAK, -mcmodel should not affect ISAs, in the same way it doesn't switch off > > SSE. > > Agreed, while kernel name might not be bit too suggestive, code models > was intended to be quite general, so it may make sense to compile things > that are not kernels with kernel cmodel... >
Then kernel must be built with -mno-uintr if there are kernel interrupt handlers in C. That means that other UINTR intrinsics won't be available to kernel source and inline asm statement should be used instead. -- H.J.