From 1af5efb5c96af6f3246c8eae42912b2fbcd7f006 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 1 Sep 2024 11:21:55 +0200 Subject: Many bug fixes, and wip fixes. RoadMap: - Ring-3 switch [ Still gives GPF ] - Make timer interrupt on non SMP profile. - Work on SMP support, to offload tasks to other cores. - Validate kernel and components (compiler, dlls, programs...) Signed-off-by: Amlal El Mahrouss --- dev/ZKA/Sources/MP.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dev/ZKA/Sources/MP.cxx') diff --git a/dev/ZKA/Sources/MP.cxx b/dev/ZKA/Sources/MP.cxx index 5df86fd6..b0716e77 100644 --- a/dev/ZKA/Sources/MP.cxx +++ b/dev/ZKA/Sources/MP.cxx @@ -102,6 +102,7 @@ namespace Kernel if (!ret) { + mp_do_context_switch_pre(); return mp_do_context_switch(image, stack_ptr, fStack) != 0; } @@ -122,12 +123,12 @@ namespace Kernel ///! @brief Default constructor. HardwareThreadScheduler::HardwareThreadScheduler() { - kcout << "newoskrnl: initializing HardwareThreadScheduler." << endl; + kcout << "newoskrnl.dll: initializing HardwareThreadScheduler." << endl; cSMPCoreName.GetKey() += "Property\\MPClass"; cSMPCoreName.GetValue() = (PropertyId)this; - kcout << "newoskrnl: initialized HardwareThreadScheduler." << endl; + kcout << "newoskrnl.dll: initialized HardwareThreadScheduler." << endl; } ///! @brief Default destructor. -- cgit v1.2.3