[PowerPC64LE] Endian fix for opal_hmi.c
Another boring one. We need to endian swap before checking flags. Sponsored by: Tag1 Consulting, Inc.
This commit is contained in:
parent
f9acb7a818
commit
05c3051f86
@ -94,7 +94,7 @@ opal_hmi_handler2(struct trapframe *frame)
|
||||
*flags = 0;
|
||||
err = opal_call(OPAL_HANDLE_HMI2, DMAP_TO_PHYS((vm_offset_t)flags));
|
||||
|
||||
if (*flags & OPAL_HMI_FLAGS_TOD_TB_FAIL)
|
||||
if (be64toh(*flags) & OPAL_HMI_FLAGS_TOD_TB_FAIL)
|
||||
panic("TOD/TB recovery failure");
|
||||
|
||||
if (err == OPAL_SUCCESS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user