forked from xamidev/pepperOS
Task switching fix? but doesnt exit process gracefully
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user