Fix SIGKILL and allow SYS_EXIT to pass 16 bits.

This commit is contained in:
4lDO2
2024-07-03 16:58:07 +02:00
parent 8f3e40a99e
commit d70ad544e6
3 changed files with 13 additions and 4 deletions
+4
View File
@@ -211,6 +211,8 @@ pub fn switch() -> SwitchResult {
next_context.syscall_debug_info.on_switch_to();
}
percpu.switch_internals.being_sigkilled.set(next_context.being_sigkilled);
unsafe {
arch::switch_to(prev_context, next_context);
}
@@ -240,6 +242,8 @@ pub struct ContextSwitchPercpu {
// The ID of the idle process
idle_id: Cell<ContextId>,
pub(crate) being_sigkilled: Cell<bool>,
}
impl ContextSwitchPercpu {
pub fn context_id(&self) -> ContextId {