From 199a9aec8b8f8fde86316f8253e60a7dd4d1b490 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 2 Dec 2020 09:16:34 -0800 Subject: [PATCH] exo: explicitly TODO the warmboot magic --- exosphere/program/source/boot/secmon_boot_setup.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exosphere/program/source/boot/secmon_boot_setup.cpp b/exosphere/program/source/boot/secmon_boot_setup.cpp index 13b8c0c64..80092f780 100644 --- a/exosphere/program/source/boot/secmon_boot_setup.cpp +++ b/exosphere/program/source/boot/secmon_boot_setup.cpp @@ -72,6 +72,9 @@ namespace ams::secmon::boot { /* care of it here. Perhaps we should read the number of anti-downgrade fuses burnt, and translate that */ /* to the warmboot key? To be decided during the process of implementing ams-on-mariko support. */ reg::Write(pmc + APBDEV_PMC_SECURE_SCRATCH32, 0x129); + + /* TODO: Fix to ensure correct scratch contents on mariko, as otherwise wb is broken. */ + AMS_ABORT_UNLESS(fuse::GetSocType() != fuse::SocType_Mariko); } /* This function derives the master kek and device keys using the tsec root key. */