summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-05-20 13:46:07 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-05-20 13:46:07 +0200
commitbec0e457ad346783be7f84be71bb0eddc881847c (patch)
tree337f59719b2fc10d03b2253630bb88b28a6c6839 /dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc
parent9978ec66ff0e5fc98892c089c47637f0d164bc46 (diff)
wip: feat(kernel): Add stub for ring-3 switch on the AP side of the
scheduling system. why? - To let the code run in user mode, as specified in the design. next: - Debug the #06 interrupt when switching to task. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc')
-rw-r--r--dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc b/dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc
index 78db9b16..46ad8fd6 100644
--- a/dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc
+++ b/dev/kernel/HALKit/AMD64/HalApplicationProcessor.cc
@@ -112,12 +112,10 @@ EXTERN_C BOOL mp_register_process(HAL::StackFramePtr stack_frame, ProcessID thrd
kHWThread[thrdid].mFramePtr = stack_frame;
kHWThread[thrdid].mThreadID = thrdid;
- STATIC HardwareTimer timer{rtl_milliseconds(1000)};
-
- timer.Wait();
-
HardwareThreadScheduler::The()[thrdid].Leak()->Busy(NO);
+ sched_jump_to_task(stack_frame);
+
return YES;
}