mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-15 03:27:49 +01:00
Clarify package2 relocation comment
This commit is contained in:
parent
d0e28890b0
commit
b00df2032d
@ -278,9 +278,10 @@ void load_package2_sections(package2_meta_t *metadata, uint32_t master_key_rev)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (needs_relocation) {
|
if (needs_relocation) {
|
||||||
/* This code should *always* succeed in finding a carveout within four loops, */
|
/* This code should *always* succeed in finding a carveout within seven loops, */
|
||||||
/* due to the section size limit, and section number limit. */
|
/* due to the section size limit, and section number limit. */
|
||||||
/* However, Nintendo tries past that and panics after 8 loops. */
|
/* However, Nintendo tries panics after 8 loops if a safe section is not found. */
|
||||||
|
/* This should never be the case, mathematically. */
|
||||||
/* We will replicate this behavior. */
|
/* We will replicate this behavior. */
|
||||||
int found_safe_carveout = 0;
|
int found_safe_carveout = 0;
|
||||||
uint64_t potential_base_start = DRAM_BASE_PHYSICAL;
|
uint64_t potential_base_start = DRAM_BASE_PHYSICAL;
|
||||||
@ -409,4 +410,5 @@ void load_package2(void) {
|
|||||||
|
|
||||||
/* TODO: MISC register 0x1F0098C00 |= 0x2000;
|
/* TODO: MISC register 0x1F0098C00 |= 0x2000;
|
||||||
|
|
||||||
|
/* TODO: Update SCR_EL3 depending on value in Bootconfig. */
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user