mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-31 16:57:58 +00:00
Use correct instruction
This commit is contained in:
parent
476e97baf1
commit
0fb62e52d2
@ -74,8 +74,8 @@ namespace Memory
|
||||
}
|
||||
|
||||
error("Out of memory! (Free: %ldMB; Used: %ldMB; Reserved: %ldMB)", TO_MB(FreeMemory), TO_MB(UsedMemory), TO_MB(ReservedMemory));
|
||||
CPU::Halt(true);
|
||||
return nullptr;
|
||||
CPU::Stop();
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
void *Physical::RequestPages(size_t Count)
|
||||
|
@ -47,8 +47,7 @@ namespace Execute
|
||||
TaskManager->Sleep(100);
|
||||
goto RetryIPCWrite;
|
||||
}
|
||||
while (1)
|
||||
;
|
||||
CPU::Halt(true);
|
||||
}
|
||||
|
||||
PCB *InterpreterTargetProcess;
|
||||
|
@ -182,7 +182,7 @@ namespace GraphicalUserInterface
|
||||
else
|
||||
{
|
||||
if (unlikely(Idle > 1000))
|
||||
CPU::Halt();
|
||||
CPU::Pause();
|
||||
else
|
||||
Idle++;
|
||||
}
|
||||
|
@ -280,7 +280,7 @@ EXTERNC __no_instrument_function void Main(BootInfo *Info)
|
||||
if (dev->node->Flags != NodeFlags::DIRECTORY)
|
||||
{
|
||||
KPrint("\eE85230/system/dev is not a directory! Halting...");
|
||||
CPU::Halt(true);
|
||||
CPU::Stop();
|
||||
}
|
||||
vfs->Close(dev);
|
||||
DevFS = dev->node;
|
||||
@ -294,7 +294,7 @@ EXTERNC __no_instrument_function void Main(BootInfo *Info)
|
||||
if (mnt->node->Flags != NodeFlags::DIRECTORY)
|
||||
{
|
||||
KPrint("\eE85230/system/mnt is not a directory! Halting...");
|
||||
CPU::Halt(true);
|
||||
CPU::Stop();
|
||||
}
|
||||
vfs->Close(mnt);
|
||||
MntFS = mnt->node;
|
||||
@ -308,7 +308,7 @@ EXTERNC __no_instrument_function void Main(BootInfo *Info)
|
||||
if (proc->node->Flags != NodeFlags::DIRECTORY)
|
||||
{
|
||||
KPrint("\eE85230/system/proc is not a directory! Halting...");
|
||||
CPU::Halt(true);
|
||||
CPU::Stop();
|
||||
}
|
||||
vfs->Close(proc);
|
||||
ProcFS = proc->node;
|
||||
|
@ -170,7 +170,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::Halt();
|
||||
CPU::Pause();
|
||||
debug("IPC %d is ready", ID);
|
||||
return IPCSuccess;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user