Interrupt Forwarding #22

Merged
koniifer merged 8 commits from kodin/ableos-idl:kold/interrupts into master 2024-11-26 15:53:52 -06:00
2 changed files with 12 additions and 6 deletions
Showing only changes of commit a658189efe - Show all commits

View file

@ -100,6 +100,14 @@ impl Executor {
if let Poll::Ready(()) = task.poll(&mut cx) { if let Poll::Ready(()) = task.poll(&mut cx) {
self.tasks.remove(id); self.tasks.remove(id);
self.interrupt_lookup.map(move |pid|{
if let Some(pid) = pid{
if pid == id {
return None;
}
}
return pid;
});
} }
} }
} }

View file

@ -2,9 +2,7 @@ sleep := @use("../../../libraries/stn/src/sleep.hb")
log := @use("../../../libraries/stn/src/log.hb") log := @use("../../../libraries/stn/src/log.hb")
main := fn(): int { main := fn(): int {
loop { log.info("BEFORE\0")
log.info("BEFORE\0") sleep.sleep_until_interrupt(32)
sleep.sleep_until_interrupt(32) log.info("AFTER\0")
log.info("AFTER\0")
}
} }