soc: lowrisc: opentitan: Fix manifest sizing
The actual manifest is 1024 bytes, but we previously had padding bytes due to the implementation of SECTION_FUNC(). The manifest is not executable code so SECTION_VAR() is appropriate and produces a section of the appropriate size. Fixes: #82822 Signed-off-by: Shawn Nematbakhsh <shawn@rivosinc.com>
This commit is contained in:
parent
e0173d9b8e
commit
c8e9da2615
2 changed files with 2 additions and 2 deletions
|
@ -21,6 +21,6 @@ config NUM_IRQS
|
|||
# The OpenTitan SoC requires a manifest in front of the
|
||||
# application binary.
|
||||
config ROM_START_OFFSET
|
||||
default 0x404
|
||||
default 0x400
|
||||
|
||||
endif # SOC_OPENTITAN
|
||||
|
|
|
@ -17,7 +17,7 @@ GTEXT(__rom_header)
|
|||
* 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)
|
||||
SECTION_VAR(rom_header, __rom_header)
|
||||
.rept(225)
|
||||
.word 0
|
||||
.endr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue