powerpc/64e: Fix system call illegal mtmsrd instruction
authorNicholas Piggin <npiggin@gmail.com>
Tue, 6 Jul 2021 05:13:10 +0000 (15:13 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 6 Jul 2021 09:58:54 +0000 (19:58 +1000)
commit1df3af6dc3cfe643f43d46f202bd44861ccbdb99
tree46a015b251af77803cce529eb611b87744fe3da5
parent3f601608b71c3ca1e199898cd16f09d707fedb56
powerpc/64e: Fix system call illegal mtmsrd instruction

BookE does not have mtmsrd, switch to use wrteei to enable MSR[EE].

Fixes: dd152f70bdc1 ("powerpc/64s: system call avoid setting MSR[RI] until we set MSR[EE]")
Reported-by: Christian Zigotzky <chzigotzky@xenosoft.de>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210706051310.608992-1-npiggin@gmail.com
arch/powerpc/kernel/interrupt_64.S