Skip to content

Commit

Permalink
tools/chainload: Determine boot CPU by cpu[N].state ADT property
Browse files Browse the repository at this point in the history
Signed-off-by: Janne Grunau <[email protected]>
  • Loading branch information
jannau committed Oct 30, 2024
1 parent 5445b9c commit b98a9c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion proxyclient/tools/chainload.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@
print("Setting secondary CPU RVBARs...")

rvbar = entry & ~0xfff
for cpu in u.adt["cpus"][1:]:
for cpu in u.adt["cpus"]:
if cpu.state == "running":
continue
addr, size = cpu.cpu_impl_reg
print(f" {cpu.name}: [0x{addr:x}] = 0x{rvbar:x}")
p.write64(addr, rvbar)
Expand Down

0 comments on commit b98a9c5

Please sign in to comment.