Skip to content
Snippets Groups Projects
Commit 874f046a authored by Jeremy Soller's avatar Jeremy Soller
Browse files

WIP: IDT in rust

parent e70c4ca9
No related branches found
No related tags found
No related merge requests found
...@@ -67,21 +67,13 @@ long_mode: ...@@ -67,21 +67,13 @@ long_mode:
mov gs, rax mov gs, rax
mov ss, rax mov ss, rax
; load long mode IDT
lidt [idtr]
mov rsp, 0x800000 - 128 mov rsp, 0x800000 - 128
mov rax, gdt.tss
ltr ax
;rust init ;rust init
xor rax, rax
mov eax, [kernel_base + 0x18] mov eax, [kernel_base + 0x18]
mov [interrupts.handler], rax mov rbx, gdtr
mov rax, gdtr jmp rax
mov rbx, idtr
mov rcx, tss
int 0xFF
.lp: .lp:
sti sti
hlt hlt
......
...@@ -183,8 +183,8 @@ vesa: ...@@ -183,8 +183,8 @@ vesa:
.minx dw 640 .minx dw 640
.miny dw 480 .miny dw 480
.required: .required:
.requiredx dw 0 ;1024 ;USE THESE WITH CAUTION .requiredx dw 1024 ;USE THESE WITH CAUTION
.requiredy dw 0 ;768 .requiredy dw 768
.requiredmode dw 0 .requiredmode dw 0
.noedidmsg db "EDID not supported.",10,13,0 .noedidmsg db "EDID not supported.",10,13,0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment