mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
[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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366051
|
@ -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…
Reference in a new issue