Move PEXIT and TEXIT to task.hpp

This commit is contained in:
Alex 2023-03-27 20:37:58 +03:00
parent 678744f65d
commit bb862bf600
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD
2 changed files with 3 additions and 3 deletions

View File

@ -346,6 +346,9 @@ namespace Tasking
};
}
#define PEXIT(Code) TaskManager->GetCurrentProcess()->ExitCode = Code
#define TEXIT(Code) TaskManager->GetCurrentThread()->ExitCode = Code
extern "C" void TaskingScheduler_OneShot(int TimeSlice);
#endif // !__FENNIX_KERNEL_TASKING_H__

View File

@ -47,9 +47,6 @@ extern VirtualFileSystem::Node *DevFS;
extern VirtualFileSystem::Node *MntFS;
extern VirtualFileSystem::Node *ProcFS;
#define PEXIT(Code) TaskManager->GetCurrentProcess()->ExitCode = Code
#define TEXIT(Code) TaskManager->GetCurrentThread()->ExitCode = Code
#endif // __cplusplus
EXTERNC void putchar(char c);