kern: update Initialize0 to account for new ordering

This commit is contained in:
Michael Scire 2020-12-01 17:29:42 -08:00 committed by SciresM
commit 7e1da15f6e
3 changed files with 68 additions and 19 deletions

View file

@ -303,7 +303,6 @@ namespace ams::kern::init::loader {
/* On 10.0.0+, Physically randomize the kernel region. */
if (kern::GetTargetFirmware() >= ams::TargetFirmware_10_0_0) {
ttbr1_table.PhysicallyRandomize(virtual_base_address + rx_offset, bss_end_offset - rx_offset, true);
cpu::StoreEntireCacheForInit();
}
/* Clear kernel .bss. */