mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-28 15:34:31 +00:00
test(kernel): ✨ add debug playground functions for testing purposes
This commit is contained in:
parent
fda5ede37f
commit
2349610e47
@ -247,6 +247,10 @@ EXTERNC nif cold void Main()
|
|||||||
KPrint("Initializing Filesystem");
|
KPrint("Initializing Filesystem");
|
||||||
KernelVFS();
|
KernelVFS();
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
__early_playground();
|
||||||
|
#endif
|
||||||
|
|
||||||
KPrint("\x1b[1;32m################################");
|
KPrint("\x1b[1;32m################################");
|
||||||
TaskManager = new Tasking::Task(Tasking::IP(KernelMainThread));
|
TaskManager = new Tasking::Task(Tasking::IP(KernelMainThread));
|
||||||
TaskManager->StartScheduler();
|
TaskManager->StartScheduler();
|
||||||
|
@ -139,6 +139,10 @@ void KernelMainThread()
|
|||||||
Subsystem::Linux::InitializeSubSystem();
|
Subsystem::Linux::InitializeSubSystem();
|
||||||
Subsystem::Windows::InitializeSubSystem();
|
Subsystem::Windows::InitializeSubSystem();
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
__late_playground();
|
||||||
|
#endif
|
||||||
|
|
||||||
KPrint("Executing %s", Config.InitPath);
|
KPrint("Executing %s", Config.InitPath);
|
||||||
int ExitCode = -1;
|
int ExitCode = -1;
|
||||||
Tasking::PCB *initProc;
|
Tasking::PCB *initProc;
|
||||||
|
30
Kernel/tests/playground.cpp
Normal file
30
Kernel/tests/playground.cpp
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
/*
|
||||||
|
This file is part of Fennix Kernel.
|
||||||
|
|
||||||
|
Fennix Kernel is free software: you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License as
|
||||||
|
published by the Free Software Foundation, either version 3 of
|
||||||
|
the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
Fennix Kernel is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Fennix Kernel. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
|
||||||
|
void __early_playground()
|
||||||
|
{
|
||||||
|
/* test code */
|
||||||
|
}
|
||||||
|
|
||||||
|
void __late_playground()
|
||||||
|
{
|
||||||
|
/* test code */
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // DEBUG
|
@ -31,6 +31,8 @@ void TreeFS(Node node, int Depth);
|
|||||||
void TaskHeartbeat();
|
void TaskHeartbeat();
|
||||||
void StressKernel();
|
void StressKernel();
|
||||||
void coroutineTest();
|
void coroutineTest();
|
||||||
|
void __early_playground();
|
||||||
|
void __late_playground();
|
||||||
|
|
||||||
#endif // DEBUG
|
#endif // DEBUG
|
||||||
#endif // !__FENNIX_KERNEL_non_constructor_tests_H__
|
#endif // !__FENNIX_KERNEL_non_constructor_tests_H__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user