summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/HALKit/AMD64/Processor.h
diff options
context:
space:
mode:
authorAmlal <amlal.elmahrouss@icloud.com>2025-01-26 12:19:50 +0100
committerAmlal <amlal.elmahrouss@icloud.com>2025-01-26 12:19:50 +0100
commit7821342e0fd790c0933f3e2579659b09aaa25098 (patch)
treea7c5acd8bfa93a6660ef869dfbdafafae0aeb50a /dev/Kernel/HALKit/AMD64/Processor.h
parentc0cd417753523f60d9ef414b345f791b068071ed (diff)
ADD: Starting code in 0x7c000 on AMD64 APs. (HalApplicationProcessor.cc)
ADD: Add a MUST_PASS (debug) for IPCMsg.cc Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/HALKit/AMD64/Processor.h')
-rw-r--r--dev/Kernel/HALKit/AMD64/Processor.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/dev/Kernel/HALKit/AMD64/Processor.h b/dev/Kernel/HALKit/AMD64/Processor.h
index acdf7e42..623c8245 100644
--- a/dev/Kernel/HALKit/AMD64/Processor.h
+++ b/dev/Kernel/HALKit/AMD64/Processor.h
@@ -233,14 +233,16 @@ namespace Kernel::HAL
/// @param lo low byte
/// @param hi high byte
/***********************************************************************************/
- inline Void hal_get_msr(UInt32 msr, UInt32* lo, UInt32* hi) noexcept
+ inline UInt32 hal_get_msr(UInt32 msr, UInt32* lo, UInt32* hi) noexcept
{
if (!lo || !hi)
- return;
+ return 0;
asm volatile("rdmsr"
: "=a"(*lo), "=d"(*hi)
: "c"(msr));
+
+ return *lo + *hi;
}
/// @brief Set Model-specific register.