mirror of
https://github.com/saymrwulf/pulp-runtime.git
synced 2026-05-23 22:13:47 +00:00
Add sync loop barrier with proper address
This commit is contained in:
parent
8e7c7bf55b
commit
28b2b3638a
1 changed files with 5 additions and 0 deletions
|
|
@ -30,6 +30,8 @@ pos_init_entry:
|
|||
# PEs from 1 to 7 will go to sync_loop and wait. PE0 will reach them
|
||||
# later after the pos_init_start. Then, they'll set up their stack into
|
||||
# the L1 and jump to cluster_entry_stub
|
||||
li t0, 0x10000000
|
||||
sw x0, 0(t0)
|
||||
bnez a0, sync_loop
|
||||
#else
|
||||
srli a0, a0, 5
|
||||
|
|
@ -74,6 +76,9 @@ pos_init_entry:
|
|||
#ifdef ARCHI_NO_FC
|
||||
csrr a0, 0xF14
|
||||
andi a1, a0, 0x1f
|
||||
li t0, 0x10000000
|
||||
li t1, 0x1
|
||||
sw t1, 0(t0)
|
||||
j pe_start
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue