mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-21 22:23:05 +00:00
tools/chainload: Determine boot CPU by cpu[N].state ADT property
Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
parent
a603b86e6b
commit
eb8430ba7e
1 changed files with 3 additions and 1 deletions
|
@ -85,7 +85,9 @@ for name in ("mtp", "aop"):
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue