mirror of
https://gitlab.com/bztsrc/bootboot.git
synced 2023-02-13 20:54:32 -05:00
Start SMP on qemu too
This commit is contained in:
parent
f01d06c962
commit
b383f59dec
2 changed files with 6 additions and 1 deletions
|
@ -101,11 +101,16 @@ _start:
|
|||
mrs x7, mpidr_el1
|
||||
and x7, x7, #3
|
||||
cbnz x7, 3f
|
||||
// failsafe: if startup.elf does not start all cores (depends on config.txt)
|
||||
// failsafe: if startup.elf does not start all cores (depends on config.txt), and qemu expects 0xD8
|
||||
mov x2, #0x40000000
|
||||
mov x3, #0xd8
|
||||
str w1, [x2, #0x9C] // write _start address to core1's mailbox 3
|
||||
str w1, [x3, #8]
|
||||
str w1, [x2, #0xAC] // write _start address to core2's mailbox 3
|
||||
str w1, [x3, #16]
|
||||
str w1, [x2, #0xBC] // write _start address to core3's mailbox 3
|
||||
str w1, [x3, #24]
|
||||
sev
|
||||
// clear bss
|
||||
ldr x2, =__bss_start
|
||||
ldr w3, =__bss_size
|
||||
|
|
BIN
bootboot.img
BIN
bootboot.img
Binary file not shown.
Loading…
Reference in a new issue