We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e71ba94 commit 98bf2d3Copy full SHA for 98bf2d3
arch/powerpc/kernel/head_book3s_32.S
@@ -260,10 +260,19 @@ __secondary_hold_acknowledge:
260
MachineCheck:
261
EXCEPTION_PROLOG_0
262
#ifdef CONFIG_PPC_CHRP
263
+#ifdef CONFIG_VMAP_STACK
264
+ mtspr SPRN_SPRG_SCRATCH2,r1
265
+ mfspr r1, SPRN_SPRG_THREAD
266
+ lwz r1, RTAS_SP(r1)
267
+ cmpwi cr1, r1, 0
268
+ bne cr1, 7f
269
+ mfspr r1, SPRN_SPRG_SCRATCH2
270
+#else
271
mfspr r11, SPRN_SPRG_THREAD
272
lwz r11, RTAS_SP(r11)
273
cmpwi cr1, r11, 0
274
bne cr1, 7f
275
+#endif
276
#endif /* CONFIG_PPC_CHRP */
277
EXCEPTION_PROLOG_1 for_rtas=1
278
7: EXCEPTION_PROLOG_2
0 commit comments