Software APIs
uncorrupted_test.c
1 // Copyright lowRISC contributors (OpenTitan project).
2 // Licensed under the Apache License, Version 2.0, see LICENSE for details.
3 // SPDX-License-Identifier: Apache-2.0
4 
5 #include <stdbool.h>
6 
9 #include "sw/device/silicon_creator/lib/drivers/retention_sram.h"
10 #include "sw/device/silicon_creator/lib/manifest_def.h"
11 
12 OTTF_DEFINE_TEST_CONFIG();
13 
14 bool test_main(void) {
15  char *cause = (char *)retention_sram_get()->owner.reserved;
16  LOG_INFO("Booted slot=%p; Cause=%s", manifest_def_get(), cause);
17  return true;
18 }