On Wed, Jul 07, 2021 at 09:14:29PM -0700, Linus Torvalds wrote:
Except now that I think about it, I worry about getting scheduled away *between* the instruction that sets SFC and the one that sets DFC. And then switch_to() will save just SFC to the thread-struct. And then restore the (new thread) SFC value to _both_ SFC and DFC.
arch/m68k/Kconfig: select ARCH_NO_PREEMPT if !COLDFIRE So only coldfire can support kernel preemption, and coldfire never uses SFC/DFC.