summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/HALKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-05-26 11:03:41 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-05-26 11:03:41 +0200
commit547a6e04c3883eaa958622e1506039ed0a3123bc (patch)
treee4541225a4e5a268969a99c4444d264c0bc100fd /dev/kernel/HALKit
parent8dd831a5bff24ba599c1ba8ff49e9d094756ea7c (diff)
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 <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/HALKit')
-rw-r--r--dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc4
1 files changed, 1 insertions, 3 deletions
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;
}
/***********************************************************************************/