mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-16 08:04:23 -04:00
fusee_cpp: move mtc code/used-tables to nv memory (needed for mariko downtrain fix)
This commit is contained in:
parent
40e2d4bbe6
commit
598edc0a46
4 changed files with 25 additions and 24 deletions
|
@ -27,7 +27,7 @@ namespace ams::nxboot {
|
|||
|
||||
using EmcDvfsTimingTable = mariko::EmcDvfsTimingTable;
|
||||
|
||||
EmcDvfsTimingTable *GetEmcDvfsTimingTables(int index) {
|
||||
EmcDvfsTimingTable *GetEmcDvfsTimingTables(int index, void *mtc_tables_buffer) {
|
||||
/* Get the compressed table. */
|
||||
u8 *cmp_table;
|
||||
size_t cmp_table_size;
|
||||
|
@ -55,7 +55,7 @@ namespace ams::nxboot {
|
|||
}
|
||||
|
||||
/* Uncompress the table. */
|
||||
EmcDvfsTimingTable *out_tables = reinterpret_cast<EmcDvfsTimingTable *>(0x40040000 - 2 * sizeof(EmcDvfsTimingTable));
|
||||
EmcDvfsTimingTable *out_tables = reinterpret_cast<EmcDvfsTimingTable *>(mtc_tables_buffer);
|
||||
Uncompress(out_tables, 2 * sizeof(EmcDvfsTimingTable), cmp_table, cmp_table_size);
|
||||
|
||||
return out_tables;
|
||||
|
@ -63,9 +63,9 @@ namespace ams::nxboot {
|
|||
|
||||
}
|
||||
|
||||
void DoMemoryTrainingMariko(int index) {
|
||||
void DoMemoryTrainingMariko(int index, void *mtc_tables_buffer) {
|
||||
/* Get timing tables. */
|
||||
auto *timing_tables = GetEmcDvfsTimingTables(index);
|
||||
auto *timing_tables = GetEmcDvfsTimingTables(index, mtc_tables_buffer);
|
||||
auto *src_timing_tables = timing_tables + 0;
|
||||
auto *dst_timing_tables = timing_tables + 1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue