HomeFreeBSD

Call cpu_setup() immediately after the page tables are installed. This
rS258392Unpublished

Unpublished Commit · Learn More

No further details are available.

Description

Call cpu_setup() immediately after the page tables are installed. This
enables data cache and other chip-specific features. It was previously
done via an early SYSINIT, but it was being done after pmap and vm setup,
and those setups need to use mutexes. On some modern ARM platforms,
the ldrex/strex instructions that implement mutexes require the data cache
to be enabled.

A nice side effect of enabling caching earlier is that it eliminates the
multi-second pause that used to happen early in boot while physical memory
and pmap and vm were being set up. On boards with 1 GB or more of ram
this pause was very noticible, sometimes 5-6 seconds.

PR: arm/183740

Details

Provenance
ianAuthored on
Parents
rS258391: Fix comment after r250551.
Branches
Unknown
Tags
Unknown

Event Timeline