Commit 63c9d8a4 authored by Nicholas Piggin's avatar Nicholas Piggin Committed by Michael Ellerman

powerpc/powernv: Use FIXUP_ENDIAN_HV in OPAL return

Close the recoverability gap for OPAL calls by using FIXUP_ENDIAN_HV
in the return path.
Signed-off-by: default avatarNicholas Piggin <npiggin@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 8ca9c08d
...@@ -94,7 +94,7 @@ opal_return: ...@@ -94,7 +94,7 @@ opal_return:
* bytes (always BE) since MSR:LE will end up fixed up as a side * bytes (always BE) since MSR:LE will end up fixed up as a side
* effect of the rfid. * effect of the rfid.
*/ */
FIXUP_ENDIAN FIXUP_ENDIAN_HV
ld r2,PACATOC(r13); ld r2,PACATOC(r13);
lwz r4,8(r1); lwz r4,8(r1);
ld r5,PPC_LR_STKOFF(r1); ld r5,PPC_LR_STKOFF(r1);
...@@ -120,7 +120,7 @@ opal_real_call: ...@@ -120,7 +120,7 @@ opal_real_call:
hrfid hrfid
opal_return_realmode: opal_return_realmode:
FIXUP_ENDIAN FIXUP_ENDIAN_HV
ld r2,PACATOC(r13); ld r2,PACATOC(r13);
lwz r11,8(r1); lwz r11,8(r1);
ld r12,PPC_LR_STKOFF(r1) ld r12,PPC_LR_STKOFF(r1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment