Skip to content

Commit

Permalink
devtools/td-layout-config: move payload image to physical memory
Browse files Browse the repository at this point in the history
Maximum size of ROM space is 16MiB which limits the size of payload
image that can be contained by image.

Signed-off-by: Jiaqi Gao <jiaqi.gao@intel.com>
  • Loading branch information
gaojiaqi7 committed Mar 31, 2024
1 parent ddf9c5c commit 2cfa425
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions devtools/td-layout-config/config_memory_exec.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
"size": "0x20000",
"type": "Memory"
},
{
"name": "ShimPayload",
"size": "0xC2D000",
"type": "Memory"
},
{
"name": "EventLog",
"size": "0x100000",
Expand Down
3 changes: 0 additions & 3 deletions devtools/td-layout-config/src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ pub fn parse_image(data: String) -> String {
panic!("Image size exceeds the maximum ROM space");
}

if payload_size != 0 {
image_layout.reserve_low("Payload", payload_size, "Rom")
}
rom_layout.reserve_low("Config", config_size, "Rom");
rom_layout.reserve_low("Mailbox", mailbox_size, "Rom");
rom_layout.reserve_low("TempStack", temp_stack_size, "Rom");
Expand Down

0 comments on commit 2cfa425

Please sign in to comment.