1/*
2 * Copyright (c) 2023 Rivos Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <zephyr/toolchain.h>
8
9/* exports */
10GTEXT(__rom_header)
11
12/* OpenTitan manifest consists of 1024 bytes (256 words) of manifest
13 * containing signature, device ID, version info, etc. The test ROM
14 * ignores all of these fields except for entry point.
15 *
16 * The layout below conforms to manifest version: 0x71c3 (major),
17 * 0x6c47 (minor).  The manifest format is documented here:
18 * https://github.com/lowRISC/opentitan/blob/689a163294e1791bd30cfe096decf7f9233abad4/sw/host/opentitanlib/src/image/manifest.rs#L205
19 */
20SECTION_FUNC(rom_header, __rom_header)
21	.rept(225)
22	.word 0
23	.endr
24	/* Entry point is relative to the beginning of manifest. */
25	.word(__start - __rom_header)
26	/* Extensions entry table goes here. */
27	.rept(30)
28	.word 0
29	.endr
30