summaryrefslogtreecommitdiffhomepage
path: root/dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm
diff options
context:
space:
mode:
Diffstat (limited to 'dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm')
-rw-r--r--dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm18
1 files changed, 7 insertions, 11 deletions
diff --git a/dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm b/dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm
index d59cc197..6abd28c9 100644
--- a/dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm
+++ b/dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm
@@ -141,12 +141,7 @@ IntNormal 38
IntNormal 39
IntNormal 40
-extern mp_system_call_handler
-
-__ZKA_INT_41:
- cmp rcx, 0
- jne mp_system_call_handler
- iretq
+IntNormal 41
IntNormal 42
IntNormal 43
@@ -222,17 +217,18 @@ section .text
hal_load_gdt:
lgdt [rcx]
- push 0x08
- lea rax, [rel rt_reload_segments]
- push rax
+ cli
+ push 8
+ push hal_reload_segments
o64 retf
-rt_reload_segments:
- mov ax, 0x10
+hal_reload_segments:
+ mov ax, 16
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
+ sti
ret
global hal_load_idt