diff options
| author | Amlal <amlal@el-mahrouss-logic.com> | 2024-09-06 13:49:29 +0200 |
|---|---|---|
| committer | Amlal <amlal@el-mahrouss-logic.com> | 2024-09-06 13:50:47 +0200 |
| commit | 48d5ea1be488018bc4b83be08b9d87b0e259e3f1 (patch) | |
| tree | a97cdde46e3e41db9f66f85db49189aa3c9e4441 /dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm | |
| parent | 39d95f7fb429c5c6b71cd7c1e985cadaf4ab7b83 (diff) | |
[ IMP ] Lots of fixes regarding GDT, IDT, HW Threads and Scheduler.
Signed-off-by: Amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm')
| -rw-r--r-- | dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm b/dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm index 6abd28c9..49e02ee1 100644 --- a/dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm +++ b/dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm @@ -155,7 +155,7 @@ IntNormal 49 [extern hal_kernel_call_enter] IntNormal 50 - + __ZKA_INT_51: cli @@ -216,19 +216,28 @@ section .text [global hal_load_gdt] hal_load_gdt: - lgdt [rcx] cli - push 8 - push hal_reload_segments - o64 retf -hal_reload_segments: - mov ax, 16 + + lgdt [rcx] + + mov ax, 0x10 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax + + mov rax, 0x08 + push rax + push hal_reload_segments + + o64 retf + +extern hal_real_init + +hal_reload_segments: sti + jmp hal_real_init ret global hal_load_idt |
