warmboot: start secmon_restore_to_tzram

This commit is contained in:
Michael Scire
2018-12-18 15:31:34 -08:00
parent 4f9ecc9d50
commit 3924a2ef76
5 changed files with 520 additions and 3 deletions

View File

@@ -25,6 +25,7 @@
#include "cluster.h"
#include "flow.h"
#include "timer.h"
#include "secmon.h"
void reboot(void) {
/* Write MAIN_RST */
@@ -81,7 +82,7 @@ void lp0_entry_main(warmboot_metadata_t *meta) {
/* Initialize the CPU cluster. */
cluster_initialize_cpu();
/* TODO: decrypt_restore_secmon_to_tzram(); */
secmon_restore_to_tzram(target_firmware);
/* Power on the CPU cluster. */
cluster_power_on_cpu();
@@ -95,5 +96,3 @@ void lp0_entry_main(warmboot_metadata_t *meta) {
FLOW_CTLR_HALT_COP_EVENTS_0 = halt_val;
}
}