Fix fork() syscall

This commit is contained in:
Alex
2023-05-22 00:43:45 +03:00
parent 5cb799df89
commit 061363d85d
5 changed files with 32 additions and 44 deletions

View File

@ -201,7 +201,7 @@ namespace InterProcessCommunication
warn("Interrupts are disabled. This may cause a kernel hang.");
debug("Waiting for IPC %d (now %s)", ID, Hnd->Listening ? "listening" : "ready");
while (Hnd->Listening)
CPU::Pause();
TaskManager->Schedule();
debug("IPC %d is ready", ID);
return IPCSuccess;
}

View File

@ -48,16 +48,6 @@ NewLock(TaskingLock);
namespace Tasking
{
void Task::Schedule()
{
if (!StopScheduler)
TaskingScheduler_OneShot(1);
// APIC::InterruptCommandRegisterLow icr;
// icr.Vector = CPU::x86::IRQ16;
// icr.Level = APIC::APICLevel::Assert;
// ((APIC::APIC *)Interrupts::apic[0])->IPI(GetCurrentCPU()->ID, icr);
}
#if defined(a86)
__naked __used __no_stack_protector NIF void IdleProcessLoop()
{