feat: add SavedContext::with_entry_and_stack, wire SpawnThread to preserve entry point and stack

This commit is contained in:
2026-10-18 01:24:56 +02:00
parent 4833f2e2bb
commit 142505d8a4
4 changed files with 88 additions and 3 deletions

View File

@@ -97,4 +97,8 @@ impl Kernel<MockPlatform> {
) -> CapSlot {
self.grant_cap(pid, resource, permissions).expect("grant cap")
}
pub fn thread_context(&self, tid: ThreadId) -> &domain::thread::SavedContext {
self.threads.get(tid).expect("thread").saved_context()
}
}