summaryrefslogtreecommitdiffhomepage
path: root/dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm
diff options
context:
space:
mode:
authorAmlal <amlal@el-mahrouss-logic.com>2024-09-10 18:42:15 +0200
committerAmlal <amlal@el-mahrouss-logic.com>2024-09-10 18:42:15 +0200
commit408f58b0ef54f49d894023d6753f8d27d0bfd46d (patch)
treee3a963519dc4e5f4d6966e5b0c597be622dca76e /dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm
parent5aef44da0ce752e7ac6bd9c95489942b1a0319ae (diff)
[ IMP ] Repository bump.
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.asm36
1 files changed, 18 insertions, 18 deletions
diff --git a/dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm b/dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm
index e2dec1f9..cdbb2d1f 100644
--- a/dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm
+++ b/dev/ZKA/HALKit/AMD64/HalInterruptAPI.asm
@@ -52,7 +52,7 @@ IntNormal 5
;; Invalid opcode interrupt
__ZKA_INT_6:
- cli
+ cld
push rax
@@ -61,14 +61,14 @@ __ZKA_INT_6:
pop rax
- sti
+ std
o64 iret
IntNormal 7
;; Invalid opcode interrupt
__ZKA_INT_8:
- cli
+ cld
push rax
@@ -77,7 +77,7 @@ __ZKA_INT_8:
pop rax
- sti
+ std
o64 iret
IntNormal 9
@@ -87,7 +87,7 @@ IntExp 11
IntExp 12
__ZKA_INT_13:
- cli
+ cld
push rax
@@ -96,11 +96,11 @@ __ZKA_INT_13:
pop rax
- sti
+ std
o64 iret
__ZKA_INT_14:
- cli
+ cld
push rax
@@ -109,7 +109,7 @@ __ZKA_INT_14:
pop rax
- sti
+ std
o64 iret
IntNormal 15
@@ -156,7 +156,7 @@ IntNormal 49
[extern hal_kernel_call_enter]
__ZKA_INT_50:
- cli
+ cld
push r8
push r9
@@ -171,11 +171,11 @@ __ZKA_INT_50:
pop r9
pop r8
- sti
+ std
o64 iret
__ZKA_INT_51:
- cli
+ cld
push rcx
push rdx
@@ -191,7 +191,7 @@ __ZKA_INT_51:
pop rdx
pop rcx
- sti
+ std
o64 iret
[extern hal_on_ap_startup]
@@ -209,9 +209,9 @@ SZ_32 equ 1 << 6
LONG_MODE equ 1 << 5
__ZKA_INT_52:
- cli
+ cld
jmp hal_on_ap_startup
- sti
+ std
ret
IntNormal 53
@@ -234,7 +234,7 @@ section .text
[global hal_load_gdt]
hal_load_gdt:
- cli
+ cld
lgdt [rcx]
@@ -254,7 +254,7 @@ hal_load_gdt:
extern hal_real_init
hal_reload_segments:
- sti
+ std
;; Write address of syscall handler.
mov rdx, [mp_system_call_handler]
@@ -308,9 +308,9 @@ mp_system_call_handler:
o64 sysret
hal_load_idt:
- cli
+ cld
lidt [rcx]
- sti
+ std
ret
section .data