From 7821342e0fd790c0933f3e2579659b09aaa25098 Mon Sep 17 00:00:00 2001 From: Amlal Date: Sun, 26 Jan 2025 12:19:50 +0100 Subject: ADD: Starting code in 0x7c000 on AMD64 APs. (HalApplicationProcessor.cc) ADD: Add a MUST_PASS (debug) for IPCMsg.cc Signed-off-by: Amlal --- dev/Kernel/HALKit/AMD64/Processor.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dev/Kernel/HALKit/AMD64/Processor.h') 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. -- cgit v1.2.3