mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
powerpc/rtas: Call enter_rtas with MSR[EE] disabled
Disable MSR[EE] in C code rather than asm. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Laurent Dufour <ldufour@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220308135047.478297-5-npiggin@gmail.com
This commit is contained in:
committed by
Michael Ellerman
parent
4e949faae2
commit
c5a65e0a42
@@ -59,6 +59,10 @@ static inline void do_enter_rtas(unsigned long args)
|
||||
msr = mfmsr();
|
||||
BUG_ON(!(msr & MSR_RI));
|
||||
|
||||
BUG_ON(!irqs_disabled());
|
||||
|
||||
hard_irq_disable(); /* Ensure MSR[EE] is disabled on PPC64 */
|
||||
|
||||
enter_rtas(args);
|
||||
|
||||
srr_regs_clobbered(); /* rtas uses SRRs, invalidate */
|
||||
|
||||
Reference in New Issue
Block a user