freebsd-dev/sys/powerpc/aim
Leandro Lupori 3d0399c718 [PowerPC64] Clear low-order bits of ARPN
PowerISA 2.07B says that the low-order p-12 bits of the real page number
contained in ARPN and LP fields of a PTE must be 0s and are ignored
by the hardware (Book III-S, 5.7.7.1), where 2^p is the actual page size
in bytes, but we were clearing only the LP field.

This worked on bare metal and QEMU with KVM, that ignore these bits,
but caused a kernel panic on QEMU with TCG, that expects them to be
cleared.

This fixes running FreeBSD with HPT superpages enabled on QEMU
with TCG.

MFC after:	2 weeks
Sponsored by:	Eldorado Research Institute (eldorado.org.br)
2021-03-25 14:01:57 -03:00
..
aim_machdep.c powerpc/aim: Add machine check handler for TLB multihit 2020-12-30 23:45:10 +01:00
locore32.S powerpc64: Add a trap stack area 2019-02-04 16:02:03 +00:00
locore64.S powerpc64: Fix boot on virtual-mode OF (PowerMac G5) 2021-02-07 16:13:55 -06:00
locore.S Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00
mmu_oea64.c [PowerPC64] Clear low-order bits of ARPN 2021-03-25 14:01:57 -03:00
mmu_oea64.h Implement superpages for PowerPC64 (HPT) 2020-11-06 14:12:45 +00:00
mmu_oea.c [PowerPC] Implement pmap_mincore() for moea 2020-09-13 16:46:03 +00:00
mmu_radix.c Add a VA_IS_CLEANMAP() macro. 2021-02-17 16:32:11 -08:00
moea64_native.c SPDX: Spell 4 clause BSD license correctly 2021-03-11 14:17:54 -07:00
mp_cpudep.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
slb.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
trap_subr32.S [PowerPC] Fix AP bringup on 32-bit AIM SMP 2021-03-06 15:46:28 -06:00
trap_subr64.S Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00