Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

soc: opentitan: update manifest format #70122

Merged
merged 1 commit into from
Jun 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions soc/lowrisc/opentitan/rom_header.S
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,24 @@

#include <zephyr/toolchain.h>

/* imports */
GTEXT(__start)
/* exports */
GTEXT(__rom_header)

/* OpenTitan manifest consists of 896 bytes (224 words) containing signature,
* device ID, version info, etc. The test ROM ignores all of these fields
* except for entry point (final word in manifest).
/* OpenTitan manifest consists of 1024 bytes (256 words) of manifest
* containing signature, device ID, version info, etc. The test ROM
* ignores all of these fields except for entry point.
*
* The layout below conforms to manifest version: 0x71c3 (major),
* 0x6c47 (minor). The manifest format is documented here:
* https://github.com/lowRISC/opentitan/blob/689a163294e1791bd30cfe096decf7f9233abad4/sw/host/opentitanlib/src/image/manifest.rs#L205
*/
SECTION_FUNC(rom_header, __rom_header)
.rept(223)
.rept(225)
.word 0
.endr
/* Entry point is relative to the beginning of manifest. */
.word(__start - __rom_header)
/* Extensions entry table goes here. */
.rept(30)
.word 0
.endr
Loading