mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-06 17:41:24 -04:00
Exosphere: Change physical segment maps depending on firmware version
This commit is contained in:
parent
441e58be56
commit
adc496b6a7
5 changed files with 84 additions and 22 deletions
|
@ -147,7 +147,12 @@ void bootup_misc_mmio(void) {
|
|||
(void)(MAKE_MC_REG(0x014));
|
||||
|
||||
/* Clear RESET Vector, setup CPU Secure Boot RESET Vectors. */
|
||||
uint32_t reset_vec = TZRAM_GET_SEGMENT_PA(TZRAM_SEGMENT_ID_WARMBOOT_CRT0_AND_MAIN);
|
||||
uint32_t reset_vec;
|
||||
if (exosphere_get_target_firmware() >= EXOSPHERE_TARGET_FIRMWARE_500) {
|
||||
reset_vec = TZRAM_GET_SEGMENT_5X_PA(TZRAM_SEGMENT_ID_WARMBOOT_CRT0_AND_MAIN);
|
||||
} else {
|
||||
reset_vec = TZRAM_GET_SEGMENT_PA(TZRAM_SEGMENT_ID_WARMBOOT_CRT0_AND_MAIN);
|
||||
}
|
||||
EVP_CPU_RESET_VECTOR_0 = 0;
|
||||
SB_AA64_RESET_LOW_0 = reset_vec | 1;
|
||||
SB_AA64_RESET_HIGH_0 = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue