changes start.S to add SMT initialization if NUM_HARTS is set and >1
This commit is contained in:
2
env/start.S
vendored
2
env/start.S
vendored
@@ -30,7 +30,7 @@ _start:
|
|||||||
2:
|
2:
|
||||||
la t0, trap_entry
|
la t0, trap_entry
|
||||||
csrw mtvec, t0
|
csrw mtvec, t0
|
||||||
#if defined(NUM_HARTS) && NUM_HARTS>1
|
#if defined(NUM_HARTS)
|
||||||
/* block other cores until hart 0 has finished initialization */
|
/* block other cores until hart 0 has finished initialization */
|
||||||
csrr t0, mhartid
|
csrr t0, mhartid
|
||||||
beqz t0, hart0_init
|
beqz t0, hart0_init
|
||||||
|
|||||||
Reference in New Issue
Block a user