summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/KernelKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-24 05:08:21 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-24 05:08:21 +0100
commit77a1bd038f4288a7c24cfe52ad9824ca947c6671 (patch)
treed7e3fe10fce24ddc6a2b3db15a6dc9d6aeee2451 /dev/kernel/KernelKit
parent66be78af046c20bd110793c03062a3ff67b04f9c (diff)
kernel(feat): Add basic wide system bug check (memory check), other
changes have been made too, see commit details for more information. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/kernel/KernelKit')
-rw-r--r--dev/kernel/KernelKit/DriveMgr.h2
-rw-r--r--dev/kernel/KernelKit/FileMgr.h2
-rw-r--r--dev/kernel/KernelKit/KPC.h (renamed from dev/kernel/KernelKit/LPC.h)9
-rw-r--r--dev/kernel/KernelKit/MemoryMgr.h2
-rw-r--r--dev/kernel/KernelKit/Timer.h2
-rw-r--r--dev/kernel/KernelKit/User.h2
6 files changed, 8 insertions, 11 deletions
diff --git a/dev/kernel/KernelKit/DriveMgr.h b/dev/kernel/KernelKit/DriveMgr.h
index 87bd2714..fd972ab7 100644
--- a/dev/kernel/KernelKit/DriveMgr.h
+++ b/dev/kernel/KernelKit/DriveMgr.h
@@ -11,7 +11,7 @@
#include <CompilerKit/CompilerKit.h>
#include <KernelKit/DebugOutput.h>
#include <KernelKit/DeviceMgr.h>
-#include <KernelKit/LPC.h>
+#include <KernelKit/KPC.h>
#include <NewKit/Defines.h>
#include <NewKit/KString.h>
#include <NewKit/Ref.h>
diff --git a/dev/kernel/KernelKit/FileMgr.h b/dev/kernel/KernelKit/FileMgr.h
index 7374df9d..59203998 100644
--- a/dev/kernel/KernelKit/FileMgr.h
+++ b/dev/kernel/KernelKit/FileMgr.h
@@ -31,7 +31,7 @@
#include <CompilerKit/CompilerKit.h>
#include <HintsKit/CompilerHint.h>
-#include <KernelKit/LPC.h>
+#include <KernelKit/KPC.h>
#include <KernelKit/DebugOutput.h>
#include <NewKit/Stream.h>
#include <NewKit/ErrorOr.h>
diff --git a/dev/kernel/KernelKit/LPC.h b/dev/kernel/KernelKit/KPC.h
index d76eeff1..9b62c14e 100644
--- a/dev/kernel/KernelKit/LPC.h
+++ b/dev/kernel/KernelKit/KPC.h
@@ -8,8 +8,8 @@
#include <NewKit/Defines.h>
-/// @file LPC.h
-/// @brief Local Process Codes.
+/// @file KPC.h
+/// @brief Kernel Procedure Code.
#define err_local_ok() (NeOS::UserProcessScheduler::The().CurrentProcess().Leak().GetLocalCode() == NeOS::kErrorSuccess)
#define err_local_fail() (NeOS::UserProcessScheduler::The().CurrentProcess().Leak().GetLocalCode() != NeOS::kErrorSuccess)
@@ -60,11 +60,8 @@ namespace NeOS
inline constexpr HError kErrorFileLocked = 64;
inline constexpr HError kErrorUnimplemented = -1;
- /// @brief Raises a bug check stop code.
- Void err_bug_check_raise(Void) noexcept;
-
/// @brief Does a system wide bug check.
/// @param void no params are needed.
/// @return if error-free: false, otherwise true.
- Boolean err_bug_check(Void) noexcept;
+ Boolean err_bug_check_raise(Void) noexcept;
} // namespace NeOS
diff --git a/dev/kernel/KernelKit/MemoryMgr.h b/dev/kernel/KernelKit/MemoryMgr.h
index 93718493..139ae7aa 100644
--- a/dev/kernel/KernelKit/MemoryMgr.h
+++ b/dev/kernel/KernelKit/MemoryMgr.h
@@ -12,7 +12,7 @@
/// @brief: heap allocation support.
#include <NewKit/KernelPanic.h>
-#include <KernelKit/LPC.h>
+#include <KernelKit/KPC.h>
#include <HintsKit/CompilerHint.h>
namespace NeOS
diff --git a/dev/kernel/KernelKit/Timer.h b/dev/kernel/KernelKit/Timer.h
index abca5352..e52f91e7 100644
--- a/dev/kernel/KernelKit/Timer.h
+++ b/dev/kernel/KernelKit/Timer.h
@@ -7,7 +7,7 @@
#pragma once
#include <ArchKit/ArchKit.h>
-#include <KernelKit/LPC.h>
+#include <KernelKit/KPC.h>
namespace NeOS
{
diff --git a/dev/kernel/KernelKit/User.h b/dev/kernel/KernelKit/User.h
index 9ab2b02e..620b9bc9 100644
--- a/dev/kernel/KernelKit/User.h
+++ b/dev/kernel/KernelKit/User.h
@@ -16,7 +16,7 @@
------------------------------------------- */
#include <CompilerKit/CompilerKit.h>
-#include <KernelKit/LPC.h>
+#include <KernelKit/KPC.h>
#include <NewKit/KString.h>
#include <NewKit/Defines.h>