Skip to content

Commit fed2170

Browse files
committed
refactor(port_std): run the dispatcher in a PendSV-style interrupt handler
1 parent 4e8ecb8 commit fed2170

File tree

2 files changed

+114
-112
lines changed

2 files changed

+114
-112
lines changed

src/constance_port_std/src/lib.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ This port fully supports [the standard interrupt handling framework].
5252

5353
## Implementation
5454

55-
Based on the internal user-mode scheduling (UMS) framework, we treat interrupt handlers as UMS worker threads, just like tasks and the dispatcher. The user-mode scheduler manages active interrupt threads and favors them over other kinds of threads. (In contrast, the scheduler doesn't manage tasks - it only knows which task is currently chosen by the operating system.)
55+
Based on the internal user-mode scheduling (UMS) framework, we treat interrupt handlers as UMS worker threads, just like tasks. The user-mode scheduler manages active interrupt threads and favors them over other kinds of threads. (In contrast, the scheduler doesn't manage tasks - it only knows which task is currently chosen by the operating system.)
56+
57+
The interrupt line [`INTERRUPT_LINE_DISPATCH`] is reserved for the dispatcher.
5658

5759
**To be implemented:** True asynchronous interrupts aren't supported yet.
60+
61+
[`INTERRUPT_LINE_DISPATCH`]: crate::INTERRUPT_LINE_DISPATCH

0 commit comments

Comments
 (0)