lowlevel-z80: set insys when pre-empting, fix a scribble in some modes
authorAlan Cox <alan@linux.intel.com>
Fri, 17 Jul 2015 22:27:53 +0000 (23:27 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 17 Jul 2015 22:27:53 +0000 (23:27 +0100)
commit3984cf3d985f5e615c5438943b08020af14a5b17
treecb6928dc99de9b59664525bd441bc4d48476f4ad
parent1dd1152ff97703452da5841cef74352b0e0c08da
lowlevel-z80: set insys when pre-empting, fix a scribble in some modes

We must update the udata before mapping process memory as we are not
guaranteed that won't vanish the udata.

Set u_insys so that the following case cannot occur once we begin loosening
irq disabled areas

IRQ
pre-empt
ei
swapper()

IRQ
pre-empt
*boom*
Kernel/lowlevel-z80-banked.s
Kernel/lowlevel-z80.s