Software APIs
sw
device
silicon_creator
rom
e2e
rom_e2e_shutdown_exception_c_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 "sw/device/silicon_creator/lib/manifest_def.h"
6
7
#include "
hw/top_earlgrey/sw/autogen/top_earlgrey.h
"
8
9
// Note: Since this test program is written to verify the behavior of the ROM C
10
// exception handlers,
11
// - it does not have a `.crt` section,
12
// - its entrypoint `_rom_ext_start_boot()` is defined here and it doesn't have
13
// a `rom_ext_main()` function, and
14
// - it has only the following sections:
15
// - `.manifest`, to be able to boot this program from ROM,
16
// - `.text`, only 2 instructions to trigger an instruction access fault, and
17
// - `.static_critical`, required by the linker script.
18
19
void
_ottf_start(
void
) {
20
((void (*)(void))
TOP_EARLGREY_SRAM_CTRL_MAIN_RAM_BASE_ADDR
)();
21
}
Return to
OpenTitan Documentation