summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-05-18 10:29:30 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-05-18 10:29:30 +0200
commit163f32fbfbfa2fb0744787769fb3d4865f57d8dd (patch)
treea28226f575585bda679d526b337324d10ce0e365 /dev/kernel/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cc
parente42b9ddb9121cd69cfb6b5bc0d7efc31653b72a0 (diff)
feat(kernel{sched/hal}): int 3 if something is wrong in `sched_jump_to_task`
why: - After the image's entry is done, and no exit is called. also: - Added sched_idle_task to CPS's API. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cc')
-rw-r--r--dev/kernel/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/kernel/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cc b/dev/kernel/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cc
index 00c206f0..7e2b8957 100644
--- a/dev/kernel/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cc
+++ b/dev/kernel/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cc
@@ -20,11 +20,11 @@ STATIC BOOL kIsRunning = NO;
STATIC void hal_idt_send_eoi(UInt8 vector) {
((volatile UInt32*) kApicBaseAddress)[0xB0 / 4] = 0;
- if (vector >= 0x20 && vector <= 0x2F) {
+ if (vector >= kPICCommand && vector <= 0x2F) {
if (vector >= 0x28) {
- Kernel::HAL::rt_out8(0xA0, 0x20);
+ Kernel::HAL::rt_out8(kPIC2Command, kPICCommand);
}
- Kernel::HAL::rt_out8(0x20, 0x20);
+ Kernel::HAL::rt_out8(kPICCommand, kPICCommand);
}
kIsRunning = NO;