mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-10 06:01:52 +00:00
sept-s: remove a bunch of debug garbage
This commit is contained in:
parent
c56561b234
commit
fb2baa8c8d
1 changed files with 1 additions and 18 deletions
|
@ -62,20 +62,6 @@ static void exfiltrate_keys_and_reboot_if_needed(void) {
|
||||||
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) {
|
||||||
|
|
Loading…
Reference in a new issue