HomeFreeBSD

Add an loader command on arm64 to sync the cache

Description

Add an loader command on arm64 to sync the cache

On boot we don't need to perform any CPU cache management when the IDC
and DIC fields in the ctr_el0 register are set. Add a command to tell
loader to ignore these fields. This could be useful, for example, if the
hardware is misreporting the values and we are missing a quirk to enable
it.

It is not expected this will be needed, but is only intended as a
workaround to ensure the kernel can still boot.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit c399283c71e310e1573e8d27f9cb9d27a4ea3376)

Details

Provenance
andrewAuthored on Dec 20 2021, 1:42 PM
Parents
rGcc217b688132: Don't sync the I/D caches when they are coherent
Branches
Unknown
Tags
Unknown