task: Implement new process state

Added "Frozen" for vfork implementation.
This commit is contained in:
EnderIce2
2024-10-20 03:00:34 +03:00
parent 53360c10e2
commit f57ad7fc81
4 changed files with 20 additions and 1 deletions

View File

@ -170,8 +170,15 @@ namespace Tasking
*/
Terminated,
/**
* Frozen
*
* Used internally by the kernel
*/
Frozen,
_StatusMin = UnknownStatus,
_StatusMax = Terminated
_StatusMax = Frozen
};
enum TaskPriority
@ -475,6 +482,12 @@ namespace Tasking
TaskInfo Info{};
ThreadLocalStorage TLS{};
struct
{
bool vforked = false;
TCB *CallingThread = nullptr;
} Linux{};
/* Filesystem */
FileNode *CWD;
FileNode *Executable;