BFIX: Fix gpf's in .elf applications

This commit is contained in:
boreddevnl
2026-03-23 17:26:41 +01:00
parent b7020152c1
commit 70cd296d19
3 changed files with 42 additions and 28 deletions

View File

@@ -589,6 +589,8 @@ uint64_t process_terminate_current(void) {
// Mark slot as free
to_delete->pid = 0xFFFFFFFF;
to_delete->cpu_affinity = 0xFFFFFFFF;
to_delete->ui_window = NULL;
to_delete->is_terminal_proc = false;
// 4. Load context for the NEXT process
if (current_process[my_cpu]->is_user && current_process[my_cpu]->kernel_stack) {