Skip to content

Commit acdb403

Browse files
fix(migtd): include TD_INFO in default metadata
Reserve a TdInfo slot in the image layout and add a TdInfo section to the default metadata JSON so the generated MigTD image satisfies the spec's TD_INFO requirement. Signed-off-by: Michal Tarnacki <michal.tarnacki@intel.com> Co-authored-by: GitHub Copilot <noreply@github.com>
1 parent 87a1789 commit acdb403

2 files changed

Lines changed: 16 additions & 7 deletions

File tree

config/image_layout.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"TempStack": "0x010000",
55
"TempHeap": "0x010000",
66
"Metadata": "0x001000",
7-
"Payload": "0xEE6000",
7+
"TdInfo": "0x001000",
8+
"Payload": "0xEE5000",
89
"Ipl": "0x50000",
910
"ResetVector": "0x008000"
1011
}

config/metadata.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
11
{
22
"Sections": [
33
{
4-
"DataOffset": "0xFA7000",
5-
"RawDataSize": "0x59000",
6-
"MemoryAddress": "0xFFFA7000",
7-
"MemoryDataSize": "0x59000",
4+
"DataOffset": "0xFA6000",
5+
"RawDataSize": "0x5A000",
6+
"MemoryAddress": "0xFFFA6000",
7+
"MemoryDataSize": "0x5A000",
88
"Type": "BFV",
99
"Attributes": "0x1"
1010
},
11+
{
12+
"DataOffset": "0xFA6000",
13+
"RawDataSize": "0x1000",
14+
"MemoryAddress": "0x0",
15+
"MemoryDataSize": "0x0",
16+
"Type": "TdInfo",
17+
"Attributes": "0x0"
18+
},
1119
{
1220
"DataOffset": "0xC1000",
13-
"RawDataSize": "0xEE6000",
21+
"RawDataSize": "0xEE5000",
1422
"MemoryAddress": "0xFF0C1000",
15-
"MemoryDataSize": "0xEE6000",
23+
"MemoryDataSize": "0xEE5000",
1624
"Type": "Payload",
1725
"Attributes": "0x1"
1826
},

0 commit comments

Comments
 (0)