mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
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: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
8ca9c08d0c
commit
63c9d8a4b3
1 changed files with 2 additions and 2 deletions
|
@ -94,7 +94,7 @@ opal_return:
|
|||
* bytes (always BE) since MSR:LE will end up fixed up as a side
|
||||
* effect of the rfid.
|
||||
*/
|
||||
FIXUP_ENDIAN
|
||||
FIXUP_ENDIAN_HV
|
||||
ld r2,PACATOC(r13);
|
||||
lwz r4,8(r1);
|
||||
ld r5,PPC_LR_STKOFF(r1);
|
||||
|
@ -120,7 +120,7 @@ opal_real_call:
|
|||
hrfid
|
||||
|
||||
opal_return_realmode:
|
||||
FIXUP_ENDIAN
|
||||
FIXUP_ENDIAN_HV
|
||||
ld r2,PACATOC(r13);
|
||||
lwz r11,8(r1);
|
||||
ld r12,PPC_LR_STKOFF(r1)
|
||||
|
|
Loading…
Reference in a new issue