kern/kldr: fix bugs in physical randomization
This commit is contained in:
1 parent
4f50f57bb7
commit
6ad0f0e7f2
2 files changed
+5
-4
No files matched your search
@@ -307,6 +307,7 @@ namespace ams::kern::init::loader {
|
||||
/* On 10.0.0+, Physically randomize the kernel region. */
|
||||
if (kern::GetTargetFirmware() >= kern::TargetFirmware_10_0_0) {
|
||||
ttbr1_table.PhysicallyRandomize(virtual_base_address + rx_offset, bss_end_offset - rx_offset, true);
|
||||
cpu::StoreEntireCacheForInit();
|
||||
}
|
||||
|
||||
/* Clear kernel .bss. */
|
||||
|
||||
Reference in new issue
Block a user