mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-09 11:51:58 -04:00
kern/kldr: fix bugs in physical randomization
This commit is contained in:
parent
4f50f57bb7
commit
6ad0f0e7f2
2 changed files with 5 additions and 4 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue