Skip to contentSkip to conversation

ARMv8: PSCI: Enable SMC

PATCH Superseded Arnab Basu 1 participant 1 message Jan 12, 2015 Arm (32-bit)

lore
Share & tools
lore

Arnab Basu

author
#0 lore raw

PATCH v2 9/9 ARMv8: PSCI: Enable SMC

Enable the SMC instruction so that the kernel can use the psci code

Cc Bhupesh Sharma <[email protected]>
Cc Marc Zyngier <[email protected]>
---
 arch/arm/include/asm/macro.h | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/include/asm/macro.h +5 -0
index 1c8c425..e36f043 100644
@@ -106,8 +106,13 @@ lr	.req	x30
 .endm
 
 .macro armv8_switch_to_el2_m, xreg1
+#ifdef CONFIG_ARMV8_PSCI
+	/* 64bit EL2 | HCE | RES1 (Bits[5:4]) | Non-secure EL0/EL1 */
+	mov	\xreg1, #0x531
+#else
 	/* 64bit EL2 | HCE | SMD | RES1 (Bits[5:4]) | Non-secure EL0/EL1 */
 	mov	\xreg1, #0x5b1
+#endif
 	msr	scr_el3, \xreg1
 	msr	cptr_el3, xzr		/* Disable coprocessor traps to EL3 */
 	mov	\xreg1, #0x33ff
Signature · 1 line
1.9.1