mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-22 14:43:08 +00:00
hv.py: Correctly declare BootArgs in ADT memory map
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
530069bbfa
commit
8a8a004d48
1 changed files with 3 additions and 1 deletions
|
@ -123,7 +123,8 @@ class HV:
|
|||
sepfw_off = image_size
|
||||
image_size += align(sepfw_length)
|
||||
self.bootargs_off = image_size
|
||||
image_size += 0x4000
|
||||
bootargs_size = 0x4000
|
||||
image_size += bootargs_size
|
||||
|
||||
print(f"Total region size: 0x{image_size:x} bytes")
|
||||
|
||||
|
@ -154,6 +155,7 @@ class HV:
|
|||
self.adt["chosen"]["memory-map"].SEPFW = (guest_base + sepfw_off, sepfw_length)
|
||||
self.adt["chosen"]["memory-map"].TrustCache = (tc_base, tc_size)
|
||||
self.adt["chosen"]["memory-map"].DeviceTree = (adt_base, align(self.u.ba.devtree_size))
|
||||
self.adt["chosen"]["memory-map"].BootArgs = (guest_base + self.bootargs_off, bootargs_size)
|
||||
|
||||
adt_blob = self.adt.build()
|
||||
print(f"Uploading ADT (0x{len(adt_blob):x} bytes)...")
|
||||
|
|
Loading…
Reference in a new issue