summaryrefslogtreecommitdiffhomepage
path: root/Private/Source/ProcessManager.cxx
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-30 08:46:09 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-30 08:46:09 +0100
commitd7112cd6909640afd7609b3a142bc6ecf921ee25 (patch)
tree55033ad28d58d536c4b3bad715d8635f00773bfd /Private/Source/ProcessManager.cxx
parentf22e69b8837b84548f79e0b8ca7bef24605c6611 (diff)
Kernel: Breaking changes, see source code.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/Source/ProcessManager.cxx')
-rw-r--r--Private/Source/ProcessManager.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/Private/Source/ProcessManager.cxx b/Private/Source/ProcessManager.cxx
index ce20cad4..9d1792a2 100644
--- a/Private/Source/ProcessManager.cxx
+++ b/Private/Source/ProcessManager.cxx
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright 2024 Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -17,7 +17,7 @@
#include <NewKit/KernelHeap.hpp>
#include <NewKit/String.hpp>
-#include "NewKit/Panic.hpp"
+#include "NewKit/RuntimeCheck.hpp"
///! bugs = 0
@@ -27,7 +27,7 @@
* For MT see SMPManager. */
/***********************************************************************************/
-namespace hCore {
+namespace HCore {
/***********************************************************************************/
/// Exit Code stuff
/***********************************************************************************/
@@ -122,11 +122,11 @@ const AffinityKind &Process::GetAffinity() { return this->Affinity; }
void Process::Exit(Int32 exit_code) {
if (this->ProcessId !=
ProcessManager::Shared().Leak().GetCurrent().Leak().ProcessId)
- panic(RUNTIME_CHECK_PROCESS);
+ ke_stop(RUNTIME_CHECK_PROCESS);
if (this->Ring == (Int32)ProcessSelector::kRingKernel &&
ProcessManager::Shared().Leak().GetCurrent().Leak().Ring > 0)
- panic(RUNTIME_CHECK_PROCESS);
+ ke_stop(RUNTIME_CHECK_PROCESS);
kExitCode = exit_code;
@@ -283,4 +283,4 @@ bool ProcessHelper::Switch(HAL::StackFrame *the_stack, const PID &new_pid) {
return false;
}
-} // namespace hCore
+} // namespace HCore