Fixed tasking

This commit is contained in:
Alex
2022-10-25 04:10:57 +03:00
parent 0beb57eae8
commit af3193d782
2 changed files with 88 additions and 51 deletions

View File

@ -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__)