mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-08 05:49:15 +00:00
Fixed tasking
This commit is contained in:
@ -146,16 +146,26 @@ namespace Tasking
|
||||
PCB *IdleProcess = nullptr;
|
||||
TCB *IdleThread = nullptr;
|
||||
|
||||
bool InvalidPCB(PCB *pcb)
|
||||
__attribute__((no_stack_protector)) static inline bool InvalidPCB(PCB *pcb)
|
||||
{
|
||||
if (pcb == (PCB *)0xffffffffffffffff)
|
||||
return true;
|
||||
if (!pcb)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool InvalidTCB(TCB *tcb)
|
||||
__attribute__((no_stack_protector)) static inline bool InvalidTCB(TCB *tcb)
|
||||
{
|
||||
if (tcb == (TCB *)0xffffffffffffffff)
|
||||
return true;
|
||||
if (!tcb)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool FindNewProcess(void *CPUDataPointer);
|
||||
|
||||
#if defined(__amd64__)
|
||||
void OnInterruptReceived(CPU::x64::TrapFrame *Frame);
|
||||
#elif defined(__i386__)
|
||||
|
Reference in New Issue
Block a user