Fixed interrupts
Lol u need iretq in 64-bit mode. Works now!
This commit is contained in:
@@ -23,7 +23,7 @@ long_mode_start:
|
||||
|
||||
|
||||
spin_loop_64:
|
||||
mov rcx, 0xffff_ffff
|
||||
mov rcx, 0xffff_fff
|
||||
.loop:
|
||||
dec rcx
|
||||
cmp rcx, 0
|
||||
@@ -76,7 +76,7 @@ call_interrupt:
|
||||
sample_handler:
|
||||
mov word [0x8b000], 0x4f72
|
||||
call spin_loop_64
|
||||
iret
|
||||
iretq
|
||||
|
||||
setup_IDT:
|
||||
lidt [idt64.pointer]
|
||||
|
||||
Reference in New Issue
Block a user