1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-09 21:51:45 +00:00

sept-s: remove a bunch of debug garbage

This commit is contained in:
Michael Scire 2019-02-20 10:49:25 -08:00
parent c56561b234
commit fb2baa8c8d

View file

@ -61,21 +61,7 @@ static void exfiltrate_keys_and_reboot_if_needed(void) {
se_set_in_context_save_mode(true); se_set_in_context_save_mode(true);
se_save_context(KEYSLOT_SWITCH_SRKGENKEY, KEYSLOT_SWITCH_RNGKEY, enc_se_state); se_save_context(KEYSLOT_SWITCH_SRKGENKEY, KEYSLOT_SWITCH_RNGKEY, enc_se_state);
se_set_in_context_save_mode(false); se_set_in_context_save_mode(false);
/* Decrypt the security engine context. */
/* Copy TSEC key from SOR1 registers. */
MAKE_REG32(0x4003FFC0) = pmc->secure_scratch4;
MAKE_REG32(0x4003FFC4) = pmc->secure_scratch5;
MAKE_REG32(0x4003FFC8) = pmc->secure_scratch6;
MAKE_REG32(0x4003FFCC) = pmc->secure_scratch7;
/* TODO: Master kek */
MAKE_REG32(0x4003FFD0) = 0;
MAKE_REG32(0x4003FFD4) = 0;
MAKE_REG32(0x4003FFD8) = 0;
MAKE_REG32(0x4003FFDC) = 0;
set_has_rebooted(true); set_has_rebooted(true);
reboot_to_self(); reboot_to_self();
} else { } else {
@ -107,9 +93,6 @@ static void exfiltrate_keys_and_reboot_if_needed(void) {
pmc->secure_scratch6 = 0xCCCCCCCC; pmc->secure_scratch6 = 0xCCCCCCCC;
pmc->secure_scratch7 = 0xCCCCCCCC; pmc->secure_scratch7 = 0xCCCCCCCC;
} }
} }
static void setup_env(void) { static void setup_env(void) {