summaryrefslogtreecommitdiffhomepage
path: root/dev/zka/KernelKit
diff options
context:
space:
mode:
authorAmlal <amlal@el-mahrouss-logic.com>2024-10-24 16:53:42 +0200
committerAmlal <amlal@el-mahrouss-logic.com>2024-10-24 16:53:42 +0200
commit6e3be96bb9a9b3047aee59da639819453eaab6ac (patch)
treef690833cefc4e041c0964bc831fc6dd32ea14eef /dev/zka/KernelKit
parent08e69a55cfda4722277d16ddb632669edde3580b (diff)
IMP: Pushing important code.
Signed-off-by: Amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'dev/zka/KernelKit')
-rw-r--r--dev/zka/KernelKit/LPC.h4
-rw-r--r--dev/zka/KernelKit/LockDelegate.h6
2 files changed, 6 insertions, 4 deletions
diff --git a/dev/zka/KernelKit/LPC.h b/dev/zka/KernelKit/LPC.h
index b0b0fae8..305b504d 100644
--- a/dev/zka/KernelKit/LPC.h
+++ b/dev/zka/KernelKit/LPC.h
@@ -51,11 +51,11 @@ namespace Kernel
inline constexpr HError kErrorInvalidCreds = 61;
inline constexpr HError kErrorUnimplemented = 0;
- /// @brief Reports a bug to system check.
+ /// @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.
+ /// @param void no params are needed.
/// @return if error-free: false, otherwise true.
Boolean err_bug_check(void) noexcept;
} // namespace Kernel
diff --git a/dev/zka/KernelKit/LockDelegate.h b/dev/zka/KernelKit/LockDelegate.h
index 8f7e9a42..f0e3791f 100644
--- a/dev/zka/KernelKit/LockDelegate.h
+++ b/dev/zka/KernelKit/LockDelegate.h
@@ -33,16 +33,18 @@ namespace Kernel
{
auto spin = 0U;
- while (spin != N)
+ while (spin < N)
{
if (*expr)
{
fLockStatus | kLockDone;
break;
}
+
+ ++spin;
}
- if (spin == N)
+ if (spin > N)
fLockStatus | kLockTimedOut;
}