[OpenBIOS] [PATCH 3/6] ppc: fix off-by-one error for register r4 in context switch
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Sat Oct 8 12:56:09 CEST 2016
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
---
arch/ppc/qemu/switch.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/ppc/qemu/switch.S b/arch/ppc/qemu/switch.S
index c3d9d70..f1b120d 100644
--- a/arch/ppc/qemu/switch.S
+++ b/arch/ppc/qemu/switch.S
@@ -193,7 +193,7 @@ __set_context:
/* r4, r1 */
PPC_LL r1, STKOFF(r4)
- PPC_LL r4, (STKOFF + 8 * ULONG_SIZE)(r4)
+ PPC_LL r4, (STKOFF + 9 * ULONG_SIZE)(r4)
LOAD_REG_IMMEDIATE(r0, MSR_FP | MSR_ME | MSR_DR | MSR_IR)
MTMSRD(r0)
--
1.7.10.4
More information about the OpenBIOS
mailing list