svn commit: r366048 - head/sys/powerpc/powernv
Brandon Bergren
bdragon at FreeBSD.org
Wed Sep 23 01:41:52 UTC 2020
Author: bdragon
Date: Wed Sep 23 01:41:51 2020
New Revision: 366048
URL: https://svnweb.freebsd.org/changeset/base/366048
Log:
[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.
Modified:
head/sys/powerpc/powernv/opal_dev.c
Modified: head/sys/powerpc/powernv/opal_dev.c
==============================================================================
--- head/sys/powerpc/powernv/opal_dev.c Wed Sep 23 01:37:01 2020 (r366047)
+++ head/sys/powerpc/powernv/opal_dev.c Wed Sep 23 01:41:51 2020 (r366048)
@@ -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));
More information about the svn-src-head
mailing list