From 547a6e04c3883eaa958622e1506039ed0a3123bc Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 26 May 2025 11:03:41 +0200 Subject: fix: remove useless process_index variable. Located in mp_get_current_task, we just need to push thrdid to the stack now. Since we don't do any modulos anymore. Signed-off-by: Amlal El Mahrouss --- dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'dev/kernel') diff --git a/dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc b/dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc index 1d298698..fe3ee89b 100644 --- a/dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc +++ b/dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc @@ -102,10 +102,8 @@ Void hal_send_ipi_msg(UInt32 target, UInt32 apic_id, UInt8 vector) { /***********************************************************************************/ EXTERN_C HAL::StackFramePtr mp_get_current_task(Int64 thrdid) { - const auto process_index = thrdid; if (thrdid > kSMPCount) return nullptr; - - return kHWThread[process_index].mFramePtr; + return kHWThread[thrdid].mFramePtr; } /***********************************************************************************/ -- cgit v1.2.3