[RFC PATCH 1/3] powerpc/64s: Fix system call emulation

2022-01-17 Thread Nicholas Piggin
Interrupt return code expects the returned-to irq state to be reconciled with the returned-to MSR[EE] state. That is, if local irqs are enabled then MSR[EE] must be set, and if MSR[EE] is not set then local irqs must be disabled. System call emulation (both sc and scv 0) does not get this right, i

[RFC PATCH 1/3] powerpc/64s: Fix system call emulation

2022-01-17 Thread Nicholas Piggin
Interrupt return code expects the returned-to irq state to be reconciled with the returned-to MSR[EE] state. That is, if local irqs are enabled then MSR[EE] must be set, and if MSR[EE] is not set then local irqs must be disabled. System call emulation (both sc and scv 0) does not get this right, i