[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:
Brandon Bergren 2020-09-23 01:51:01 +00:00
parent f9acb7a818
commit 05c3051f86
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366051

View File

@ -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)