HomeFreeBSD

ofwfb: fix boot on LE

Description

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

(cherry picked from commit 043577b721ec4e5c2ab7571e6c05cfd54e49473c)

Details

Provenance
luporlAuthored on Mar 9 2021, 3:11 PM
Reviewer
bdragon
Differential Revision
D27475: ofwfb: fix boot on LE
Parents
rG0cb06bcc54d9: Include ccompile.h after opt_global.h.
Branches
Unknown
Tags
Unknown