mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 07:19:20 +00:00
Added ubsan
This commit is contained in:
@ -55,8 +55,8 @@ namespace InterProcessCommunication
|
||||
{
|
||||
trace("Starting IPC Service...");
|
||||
Vector<AuxiliaryVector> auxv;
|
||||
TaskManager->CreateThread(TaskManager->GetCurrentProcess(), (Tasking::IP)IPCServiceStub, nullptr, nullptr, auxv);
|
||||
TaskManager->GetCurrentThread()->Rename("IPC Service");
|
||||
Tasking::TCB *thd = TaskManager->CreateThread(TaskManager->GetCurrentProcess(), (Tasking::IP)IPCServiceStub, nullptr, nullptr, auxv);
|
||||
thd->Rename("IPC Service");
|
||||
}
|
||||
|
||||
IPC::~IPC()
|
||||
|
@ -697,7 +697,15 @@ namespace Tasking
|
||||
SmartCriticalSection(TaskingLock);
|
||||
TCB *Thread = new TCB;
|
||||
if (Parent == nullptr)
|
||||
{
|
||||
Thread->Parent = this->GetCurrentProcess();
|
||||
if (Thread->Parent == nullptr)
|
||||
{
|
||||
error("Failed to get current process. Thread cannot be created.");
|
||||
delete Thread;
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
else
|
||||
Thread->Parent = Parent;
|
||||
|
||||
@ -1086,7 +1094,6 @@ namespace Tasking
|
||||
}
|
||||
#endif
|
||||
TaskingLock.Unlock();
|
||||
this->IPCManager = new InterProcessCommunication::IPC;
|
||||
IdleProcess = CreateProcess(nullptr, (char *)"Idle", TaskTrustLevel::Idle);
|
||||
for (int i = 0; i < SMP::CPUCores; i++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user