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:
|
spin_loop_64:
|
||||||
mov rcx, 0xffff_ffff
|
mov rcx, 0xffff_fff
|
||||||
.loop:
|
.loop:
|
||||||
dec rcx
|
dec rcx
|
||||||
cmp rcx, 0
|
cmp rcx, 0
|
||||||
@@ -76,7 +76,7 @@ call_interrupt:
|
|||||||
sample_handler:
|
sample_handler:
|
||||||
mov word [0x8b000], 0x4f72
|
mov word [0x8b000], 0x4f72
|
||||||
call spin_loop_64
|
call spin_loop_64
|
||||||
iret
|
iretq
|
||||||
|
|
||||||
setup_IDT:
|
setup_IDT:
|
||||||
lidt [idt64.pointer]
|
lidt [idt64.pointer]
|
||||||
|
|||||||
Reference in New Issue
Block a user