]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ofwfb: fix boot on LE
authorLeandro Lupori <luporl@FreeBSD.org>
Tue, 9 Mar 2021 15:11:58 +0000 (12:11 -0300)
committerLeandro Lupori <luporl@FreeBSD.org>
Tue, 9 Mar 2021 16:29:24 +0000 (13:29 -0300)
commit043577b721ec4e5c2ab7571e6c05cfd54e49473c
tree78ba3bf6b7bc25f87a4cc91db07d17ce851fc561
parentf61831d2e8bd44b6568b00d538e738c25190bb96
ofwfb: fix boot on LE

Some framebuffer properties obtained from the device tree were not being
properly converted to host endian.
Replace OF_getprop calls by OF_getencprop where needed to fix this.

This fixes boot on PowerPC64 LE, when using ofwfb as the system console.

Reviewed by:    bdragon
Sponsored by:   Eldorado Research Institute (eldorado.org.br)
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D27475
sys/dev/vt/hw/ofwfb/ofwfb.c