feat(kernel): WatchDeath + SetTimer events as notification signals; adapter wakes at earliest deadline

This commit is contained in:
2026-10-27 16:06:04 +01:00
parent a4f467f45d
commit 817a38993b
25 changed files with 517 additions and 21 deletions

View File

@@ -102,6 +102,20 @@ impl<P: Platform> Kernel<P> {
self.region_address_cap(pid, region)
.map(|pa| SyscallResult::Value(pa.raw())),
),
Syscall::WatchDeath {
process,
notification,
} => complete(
self.watch_death(pid, process, notification)
.map(|()| SyscallResult::Ok),
),
Syscall::SetTimer {
notification,
deadline,
} => complete(
self.set_timer(pid, notification, deadline)
.map(|()| SyscallResult::Ok),
),
Syscall::Delegate {
slot,
to_endpoint,