Task switching fix? but doesnt exit process gracefully

This commit is contained in:
2026-02-20 16:01:34 +01:00
parent ac7216d84a
commit 4cf4fb0dda
6 changed files with 22 additions and 11 deletions

View File

@@ -160,6 +160,7 @@ void process_switch(uint64_t stack_addr, uint64_t code_addr)
// Just mark as DEAD then idle. Scheduler will delete process at next timer interrupt % quantum.
void process_exit()
{
DEBUG("Exiting from process '%s'", current_process->name);
CLEAR_INTERRUPTS;
if (current_process)
{
@@ -167,6 +168,7 @@ void process_exit()
}
SET_INTERRUPTS;
outb(0x20, 0x20);
for (;;)
{
asm("hlt");