diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-08-19 11:08:35 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-08-19 11:11:32 +0200 |
| commit | 849af3db3b0d0c1edd3d32359be21785e3465bf2 (patch) | |
| tree | 6f7a9266a9972da7cf8418fe2a41b2e95154e9e1 /dev/ZKA/Sources/MP.cxx | |
| parent | 933d1ef6721903895b15c45917a0fc705763fbf5 (diff) | |
[IMP]
+ Add the thread header block, which contains informations about a list
of threads inside a process.
+ Add WINDOW structure to keep track of Windows as well.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/ZKA/Sources/MP.cxx')
| -rw-r--r-- | dev/ZKA/Sources/MP.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/dev/ZKA/Sources/MP.cxx b/dev/ZKA/Sources/MP.cxx index bf35f51e..da92a8c6 100644 --- a/dev/ZKA/Sources/MP.cxx +++ b/dev/ZKA/Sources/MP.cxx @@ -84,17 +84,17 @@ namespace Kernel /// @retval false stack is invalid, previous code is running. Bool HardwareThread::Switch(HAL::StackFramePtr stack) { - if (!rt_check_stack(stack)) + /// provide 'nullptr' to free the stack frame. + if (stack == nullptr) { - /// provide 'nullptr' to free the stack frame. - if (stack == nullptr) - { - delete fStack; - fStack = nullptr; + delete fStack; + fStack = nullptr; - return true; - } + return true; + } + if (!rt_check_stack(stack)) + { return false; } @@ -125,7 +125,7 @@ namespace Kernel StringView strCoreName(512); strCoreName += "\\Class\\Smp\\MPClass"; - cSMPCoreName.GetKey() = strCoreName; + cSMPCoreName.GetKey() = strCoreName; cSMPCoreName.GetValue() = (UIntPtr)this; kcout << "newoskrnl: initializing " << strCoreName.CData() << endl; |
