Allow procmgr to recognize unhandled exceptions.

This commit is contained in:
4lDO2
2025-04-15 15:18:42 +02:00
parent 020b8ad415
commit 2e6122bc7e
9 changed files with 134 additions and 54 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ use crate::{
use super::usercopy::UserSliceWo;
pub fn exit_this_context() -> ! {
pub fn exit_this_context(excp: Option<syscall::Exception>) -> ! {
let close_files;
let addrspace_opt;
@@ -49,7 +49,7 @@ pub fn exit_this_context() -> ! {
// TODO: Should status == Status::HardBlocked be handled differently?
let owner = {
let mut guard = context_lock.write();
guard.status = context::Status::Dead;
guard.status = context::Status::Dead { excp };
guard.owner_proc_id
};
if let Some(owner) = owner {