Remove unnecessary "cli" and "sti"

This commit is contained in:
Alex Kotov 2022-12-10 13:38:46 +04:00
parent 08e17da327
commit e46588a13e
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 0 additions and 3 deletions

View File

@ -5,7 +5,6 @@
%macro NOERRCODE 1
[GLOBAL interrupts_cb_%1]
interrupts_cb_%1:
cli
push dword 0
push dword %1
jmp common_part
@ -14,7 +13,6 @@ interrupts_cb_%1:
%macro ERRCODE 1
[GLOBAL interrupts_cb_%1]
interrupts_cb_%1:
cli
push dword %1
jmp common_part
%endmacro
@ -42,7 +40,6 @@ common_part:
popad
add esp, 8 ; Cleans up the pushed error code and pushed ISR number
sti
iret ; pops 5 things at once: CS, EIP, EFLAGS, SS, and ESP
; Protected mode exteptions