mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-14 15:14: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
|
@ -17,11 +17,13 @@
|
|||
|
||||
namespace ams::nxboot {
|
||||
|
||||
void DoMemoryTrainingErista(int index);
|
||||
void DoMemoryTrainingMariko(int index);
|
||||
void DoMemoryTrainingErista(int index, void *mtc_tables_buffer);
|
||||
void DoMemoryTrainingMariko(int index, void *mtc_tables_buffer);
|
||||
|
||||
namespace {
|
||||
|
||||
alignas(4) constinit u8 g_mtc_tables_buffer[0x26C0];
|
||||
|
||||
constexpr const u8 MemoryTrainingTableIndex_Invalid = std::numeric_limits<u8>::max();
|
||||
|
||||
constexpr const u8 MemoryTrainingTableIndices[] = {
|
||||
|
@ -70,9 +72,9 @@ namespace ams::nxboot {
|
|||
const auto index = GetMemoryTrainingTableIndex();
|
||||
|
||||
if (fuse::GetSocType() == fuse::SocType_Erista) {
|
||||
DoMemoryTrainingErista(index);
|
||||
DoMemoryTrainingErista(index, g_mtc_tables_buffer);
|
||||
} else {
|
||||
DoMemoryTrainingMariko(index);
|
||||
DoMemoryTrainingMariko(index, g_mtc_tables_buffer);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue