Skip to content

Commit 88ac8c4

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 7b3120b commit 88ac8c4

File tree

6 files changed

+792
-4
lines changed

6 files changed

+792
-4
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ OBJS := \
152152
uart.o \
153153
main.o \
154154
aclint.o \
155+
coro.o \
155156
$(OBJS_EXTRA)
156157

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

0 commit comments

Comments
 (0)