Skip to content

Commit c84207e

Browse files
committed
Disable interrupts instead of masking
1 parent 15f8699 commit c84207e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/second_stage.s

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,7 @@ check_cpu:
8181
call check_cpuid
8282
call check_long_mode
8383

84-
disable_irqs:
85-
mov al, 0xFF # Out 0xFF to 0xA1 and 0x21 to disable all IRQs.
86-
out 0xA1, al
87-
out 0x21, al
88-
89-
nop
90-
nop
84+
cli # disable interrupts
9185

9286
lidt zero_idt # Load a zero length IDT so that any NMI causes a triple fault.
9387

0 commit comments

Comments
 (0)