[PowerPC64LE] Fix endian dependence of ofw_real.c.
authorBrandon Bergren <bdragon@FreeBSD.org>
Tue, 22 Sep 2020 23:59:02 +0000 (23:59 +0000)
committerBrandon Bergren <bdragon@FreeBSD.org>
Tue, 22 Sep 2020 23:59:02 +0000 (23:59 +0000)
commitb49db8270ae3a21c5201fc17bccb99720d42b1e1
tree7ac33b6c8ac2fee9f101d747a8032279fa16d0ec
parenta662559264ccc44a9b3580f32b23a92efa08e0f2
[PowerPC64LE] Fix endian dependence of ofw_real.c.

Since OFW always runs in big endian in practice, we need to convert several
bits back and forth.

This is necessary to communicate with SLOF on LE pseries.

Sponsored by: Tag1 Consulting, Inc.
sys/powerpc/ofw/ofw_real.c