Skip to content

Commit df6924e

Browse files
committed
tools/linux.py: Switch boot CPU to 0
Signed-off-by: Janne Grunau <[email protected]>
1 parent eeffa17 commit df6924e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

proxyclient/tools/linux.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@
124124
u.msr("ACTLR_EL1", actlr, call=lambda addr, *args: p.smp_call_sync(i, addr & ~REGION_RX_EL1, *args))
125125
p.kboot_set_chosen("apple,tso", "")
126126

127+
if p.smp_switch_boot_cpu(0) != 0:
128+
print("Switching primary CPU to core 0 failed")
129+
sys.exit(1)
130+
127131
if p.kboot_prepare_dt(dtb_addr):
128132
print("DT prepare failed")
129133
sys.exit(1)

0 commit comments

Comments
 (0)