changes start.S to add SMT initialization if NUM_HARTS is set and >1

This commit is contained in:
2026-01-04 13:36:53 +01:00
parent 499468b819
commit dd0fe0cc72

2
env/start.S vendored
View File

@@ -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