It is a big problem if the kernel is
using a resource, and
is interrupted, and
the interrupt handler also uses the same resource
This must be prevented.
In Minix, see the lock and unlock macros.