diff options
Diffstat (limited to 'dev/kernel')
| -rw-r--r-- | dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc | 4 |
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; } /***********************************************************************************/ |
