[PowerPC64LE] Radix MMU fixes for LE.
authorBrandon Bergren <bdragon@FreeBSD.org>
Fri, 13 Nov 2020 16:56:03 +0000 (16:56 +0000)
committerBrandon Bergren <bdragon@FreeBSD.org>
Fri, 13 Nov 2020 16:56:03 +0000 (16:56 +0000)
commit0e0457251ba01ccf44fa483ff425d600925571e1
tree6e3ad7bcc4f217656962b6a624f2202dbc80f2c7
parent26869ad14c70306313405029229a1e2fd94510cd
[PowerPC64LE] Radix MMU fixes for LE.

There were many, many endianness fixes needed for Radix MMU. The Radix
pagetable is stored in BE (as it is read and written to by the MMU hw),
so we need to convert back and forth every time we interact with it when
running in LE.

With these changes, I can successfully boot with radix enabled on POWER9 hw.

Reviewed by: luporl, jhibbits
Sponsored by: Tag1 Consulting, Inc.
Differential Revision: https://reviews.freebsd.org/D27181
sys/powerpc/aim/mmu_radix.c