From 4d611fab205847578caaa3ddbdadd057c8243914 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 19 Mar 2024 11:49:16 +0100 Subject: Kernel: unstable: secret: fix code. Signed-off-by: Amlal El Mahrouss --- Private/HALKit/AMD64/HalInterruptRouting.asm | 1 - Private/NewKit/LockDelegate.hpp | 9 ++++++--- Private/Source/HError.cxx | 2 -- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Private/HALKit/AMD64/HalInterruptRouting.asm b/Private/HALKit/AMD64/HalInterruptRouting.asm index f021bf9a..ae3d51c5 100644 --- a/Private/HALKit/AMD64/HalInterruptRouting.asm +++ b/Private/HALKit/AMD64/HalInterruptRouting.asm @@ -188,7 +188,6 @@ IntNormal 60 ;; this one is doing a POST for us. ;; testing interrupts. _ke_power_on_self_test: - mov rcx, 0 int 0x21 int 0x21 int 0x21 diff --git a/Private/NewKit/LockDelegate.hpp b/Private/NewKit/LockDelegate.hpp index 74cd22e5..0fd9ba63 100644 --- a/Private/NewKit/LockDelegate.hpp +++ b/Private/NewKit/LockDelegate.hpp @@ -10,12 +10,15 @@ #include #define kLockDone (200U) /* job is done */ -#define kLockTimedOut (100U) /* has timed out */ +#define kLockTimedOut (100U) /* job has timed out */ namespace HCore { +/// @brief Lock condition pointer. +typedef Boolean* LockPtr; + /// @brief Locking delegate class, hangs until limit. -/// @tparam N +/// @tparam N the amount of cycles to wait. template class LockDelegate final { @@ -23,7 +26,7 @@ class LockDelegate final LockDelegate() = delete; public: - explicit LockDelegate(Boolean *expr) + explicit LockDelegate(LockPtr expr) { auto spin = 0U; diff --git a/Private/Source/HError.cxx b/Private/Source/HError.cxx index ced95401..95d38e57 100644 --- a/Private/Source/HError.cxx +++ b/Private/Source/HError.cxx @@ -6,8 +6,6 @@ #include -using namespace HCore; - namespace HCore { Boolean ke_bug_check(void) noexcept { return false; } } // namespace HCore -- cgit v1.2.3