sdmmc: various fixes + logging as bugs are debugged

This commit is contained in:
Michael Scire 2020-11-17 18:01:38 -08:00 committed by SciresM
parent b32c9bf17c
commit 512fc8f9b1
9 changed files with 61 additions and 8 deletions

View file

@ -19,6 +19,8 @@ namespace ams::diag {
void AbortImpl() {
AMS_SECMON_LOG("AbortImpl was called\n");
AMS_LOG_FLUSH();
reg::Write(0x4, 0xAAAAAAAA);
/* TODO: Reboot */
AMS_INFINITE_LOOP();

View file

@ -76,6 +76,7 @@ namespace ams::secmon::fatal {
}
/* TODO */
AMS_LOG_FLUSH();
AMS_INFINITE_LOOP();
}

View file

@ -45,6 +45,7 @@ namespace ams::secmon::fatal {
sdmmc::SetSdCardWorkBuffer(Port, GetSdCardWorkBuffer(), sdmmc::SdCardWorkBufferSize);
//sdmmc::Deactivate(Port);
R_TRY(sdmmc::Activate(Port));
return ResultSuccess();