Page MenuHomeFreeBSD

arm: Clear TTBCR before enabling the MMU
ClosedPublic

Authored by markj on Aug 4 2022, 1:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 10, 1:15 AM
Unknown Object (File)
Jan 12 2024, 6:50 AM
Unknown Object (File)
Dec 20 2023, 3:31 AM
Unknown Object (File)
Jun 17 2023, 5:22 PM
Unknown Object (File)
Mar 22 2023, 6:35 PM
Unknown Object (File)
Mar 5 2023, 5:52 PM
Unknown Object (File)
Dec 23 2022, 3:02 AM
Subscribers

Details

Summary

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, or the uboot loader. Because we don't
implement that extension and use regular 32-bit page tables, the kernel
hangs after enabling the MMU.

Just clear everything in TTBCR before enabling the MMU. FreeBSD doesn't
toggle anything in that register, and a look through the flag
definitions suggests that setting everything to zero is what we want.

PR: 251187

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46745
Build 43634: arc lint + arc unit