[PowerPC64LE] Endian fix for opal_dev.c.

Not much to say here, another missing be64toh() in memory that was written
from OPAL.

Sponsored by:	Tag1 Consulting, Inc.
This commit is contained in:
Brandon Bergren 2020-09-23 01:41:51 +00:00
parent 9cbcb6ffce
commit bf933a83ec
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366048

View File

@ -135,7 +135,7 @@ opal_heartbeat(void)
events = 0;
/* Turn the OPAL state crank */
opal_call(OPAL_POLL_EVENTS, vtophys(&events));
if (events & OPAL_EVENT_MSG_PENDING)
if (be64toh(events) & OPAL_EVENT_MSG_PENDING)
opal_handle_messages();
tsleep(opal_hb_proc, 0, "opal",
MSEC_2_TICKS(opal_heartbeat_ms));