mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 07:19:20 +00:00
Code fixes and stability
This commit is contained in:
@ -10,7 +10,6 @@ typedef struct SyscallsFrame
|
||||
uint64_t rbp, rdi, rsi, rdx, rcx, rbx, rax;
|
||||
uint64_t InterruptNumber, ErrorCode, rip, cs, rflags, rsp, ss;
|
||||
#elif defined(__i386__)
|
||||
uint64_t r15, r14, r13, r12, r11, r10, r9, r8;
|
||||
uint64_t ebp, edi, esi, edx, ecx, ebx, eax;
|
||||
uint64_t InterruptNumber, ErrorCode, eip, cs, eflags, esp, ss;
|
||||
#elif defined(__aarch64__)
|
||||
|
@ -172,23 +172,8 @@ namespace Tasking
|
||||
PCB *IdleProcess = nullptr;
|
||||
TCB *IdleThread = nullptr;
|
||||
|
||||
__no_stack_protector bool InvalidPCB(PCB *pcb)
|
||||
{
|
||||
if (pcb >= (PCB *)0xfffffffffffff000)
|
||||
return true;
|
||||
if (!pcb)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
__no_stack_protector bool InvalidTCB(TCB *tcb)
|
||||
{
|
||||
if (tcb >= (TCB *)0xfffffffffffff000)
|
||||
return true;
|
||||
if (!tcb)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
bool InvalidPCB(PCB *pcb);
|
||||
bool InvalidTCB(TCB *tcb);
|
||||
|
||||
void RemoveThread(TCB *tcb);
|
||||
void RemoveProcess(PCB *pcb);
|
||||
|
Reference in New Issue
Block a user