Skip to content

Commit e4ae87e

Browse files
committed
Add coroutine-based SMP support with WFI
This implements cooperative multitasking for multi-hart systems using coroutines, enabling efficient SMP emulation with significant CPU usage reduction. - WFI instruction callback mechanism for power management - CPU usage optimization: ~90% reduction in idle systems - Maximum latency: 1ms (acceptable for typical 10ms timer interrupts)
1 parent b50f948 commit e4ae87e

File tree

6 files changed

+794
-4
lines changed

6 files changed

+794
-4
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ OBJS := \
169169
uart.o \
170170
main.o \
171171
aclint.o \
172+
coro.o \
172173
$(OBJS_EXTRA)
173174

174175
deps := $(OBJS:%.o=.%.o.d)

0 commit comments

Comments
 (0)