opnsense-src/sys/arm
Mark Johnston 363d4b3b42 arm: Clear TTBCR before enabling the MMU
Upon reset, this register is supposed to have a value of zero.  But when
booting certain v7 CPUs in QEMU, we enter the kernel with several bits
set, including the EAE bit, which enables ARM's PAE extension.  I'm not
sure if QEMU is setting it or if it's the uboot loader.  Because FreeBSD
doesn't implement that extension and uses regular 32-bit page tables,
the kernel hangs immediately after enabling the MMU.

Just clear everything in TTBCR before enabling the MMU, to match the
reset value.  FreeBSD doesn't toggle anything in that register.

PR:		251187
Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit e9552d8b45)
2022-08-19 07:54:14 -04:00
..
allwinner if_dwc: recognize additional rgmii phy-modes 2022-07-04 13:34:56 -03:00
altera/socfpga arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
annapurna/alpine Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
arm arm: Clear TTBCR before enabling the MMU 2022-08-19 07:54:14 -04:00
broadcom/bcm2835 Fix an indentation bug in the bcm pci driver 2022-06-07 15:20:19 +01:00
cloudabi32 Add infrastructure required for Linux coredump support 2022-05-12 15:12:59 -07:00
conf Add the extres pseudo devices to some kernels. 2022-05-17 14:15:44 -07:00
freescale freescale: Fix a typo in a source code comment 2022-07-08 04:24:47 +02:00
include Create sys/reg.h for the common code previously in machine/reg.h 2022-05-12 15:12:59 -07:00
linux linux(4): Regen for clone syscall. 2022-06-17 22:33:29 +03:00
mv mvebu_gpio: Fix settings of gpio pin direction. 2022-01-20 11:22:30 +01:00
nvidia tegra: Fix a typo in a source code comment 2022-06-10 14:30:59 +02:00
qemu arm: Add kern_clocksource.c directly in files.arm 2019-04-16 20:04:22 +00:00
rockchip Add support for RK3288 SoC. 2020-12-04 16:24:44 +00:00
ti am335x: Fix a typo in a source code comment 2022-06-10 14:26:26 +02:00
versatile Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
xilinx arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00