opnsense-src/sys
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
..
amd64 Fix unused variable warning in amd64's pmap.c 2022-07-29 20:30:00 +02:00
arm arm: Clear TTBCR before enabling the MMU 2022-08-19 07:54:14 -04:00
arm64 iommu_gas: Eliminate redundant parameters and push down lock acquisition 2022-08-08 02:07:50 -05:00
bsm Add aio_writev and aio_readv 2021-01-02 19:57:58 -07:00
cam Delay GEOM disk_create() until CAM periph probe completes. 2022-08-15 13:37:58 -04:00
cddl Adjust fbt_unload() definition to avoid clang 15 warning 2022-07-24 13:00:08 +02:00
compat thread_create(): call cpu_copy_thread() after td_pflags is zeroed 2022-08-10 03:44:03 +03:00
conf Suppress -Wstrict-prototypes for several zlib files 2022-07-29 20:29:59 +02:00
contrib zlib: Fix a bug when getting a gzip header extra field with inflate(). 2022-08-09 10:40:35 -04:00
crypto crypto: Add an API supporting curve25519. 2022-07-13 12:28:41 -07:00
ddb ddb: add _FLAGS command variants 2022-08-11 11:22:57 -03:00
dev nvme: Print CRD, M and DNR status bits on errors. 2022-08-15 13:34:48 -04:00
dts add overlay for enabling i2c1 on allwinner h3 2022-02-09 11:35:59 +02:00
fs nullfs(5): Fix a typo in a source code comment 2022-08-10 14:23:45 +02:00
gdb ddb: use _FLAGS command macros where appropriate 2022-08-11 11:25:53 -03:00
geom Delay GEOM disk_create() until CAM periph probe completes. 2022-08-15 13:37:58 -04:00
gnu bwn: eliminate dead writes in BWN_GPL_PHY 2022-05-12 08:56:04 -04:00
i386 i386: fix pmap_trm_arena_last atomic load type 2022-08-08 11:00:32 -04:00
isa Adjust function definition in isa's pnp.c to avoid clang 15 warning 2022-08-01 20:07:10 +02:00
kern file: Move code to share fdtol structs into kern_descrip.c 2022-08-11 10:36:11 -04:00
kgssapi State kgssapi dependency on xdr. 2020-09-17 22:29:38 +00:00
libkern libkern: Fix a typo in a source code comment 2022-06-10 14:24:24 +02:00
mips mips busdma: expunge an extra closing brace 2022-07-12 13:47:44 -05:00
modules Remove unnecessary terminating slash in iscsi module Makefile 2022-08-01 20:07:17 +02:00
net bpf: Fix BIOCPROMISC locking 2022-08-19 07:54:04 -04:00
net80211 net80211: Remove tautological state display 2022-08-12 20:34:00 -07:00
netgraph Adjust ng_{name,ID}_rehash() definitions to avoid clang 15 warnings 2022-07-29 20:28:08 +02:00
netinet ddb: use _FLAGS command macros where appropriate 2022-08-11 11:25:53 -03:00
netinet6 icmp6: Improve validation of PMTU 2022-08-16 10:16:50 +02:00
netipsec ipsec: replace SECASVAR mtx by rmlock 2022-08-09 15:46:57 +02:00
netpfil Adjust function definitions in if_pfsync.c to avoid clang 15 warnings 2022-07-29 20:28:08 +02:00
netsmb netsmb: Avoid a read-after-free in smb_t2_request_int() 2021-06-02 09:34:47 -04:00
nfs nfs: do not panic on bootpc_init when no interfaces are found 2022-05-06 09:14:28 -03:00
nfsclient
nfsserver nfs: Mark unused statistics variable as reserved 2020-11-18 04:35:49 +00:00
nlm
ofed ibcore: Fix sysfs registration error flow 2022-06-27 10:14:49 +02:00
opencrypto crypto: Validate return values from CRYPTODEV_PROCESS() 2022-07-15 12:33:49 -04:00
powerpc busdma: _bus_dmamap_addseg repaired 2022-07-12 11:26:11 -05:00
riscv riscv: implement db_show_mdpcpu() 2022-08-11 11:21:41 -03:00
rpc Adjust local_rpcb() definition to avoid clang 15 warning 2022-07-27 21:17:23 +02:00
security sysent: Get rid of bogus sys/sysent.h include. 2022-06-17 22:35:31 +03:00
sys atomic: Add plain atomic_load/store_bool() 2022-08-16 16:34:29 -04:00
teken teken: color #3 is yellow not brown - use TC_YELLOW as the name 2022-05-03 14:20:44 -04:00
tests routing: add IPv6 fib validation procedure. 2021-09-07 21:02:58 +00:00
tools firmware: Map '@' in filenames to '_' in symbols. 2022-07-13 09:19:51 -07:00
ufs Allow forced r/w mount of UFS/FFS filesystem with a bad check hash. 2022-08-17 15:49:09 -07:00
vm vm_fault: Shoot down shared mappings in vm_fault_copy_entry() 2022-08-09 15:47:40 -04:00
x86 mca: Add sysctl to mute corrected errors. 2022-08-15 13:29:13 -04:00
xdr
xen Create wrapper for Giant taken for newbus 2022-06-21 17:13:20 +02:00
Makefile