aboutsummaryrefslogtreecommitdiff
path: root/boot/startup-x86_64.s
diff options
context:
space:
mode:
Diffstat (limited to 'boot/startup-x86_64.s')
-rw-r--r--boot/startup-x86_64.s36
1 files changed, 0 insertions, 36 deletions
diff --git a/boot/startup-x86_64.s b/boot/startup-x86_64.s
index 610d7ca..5413a80 100644
--- a/boot/startup-x86_64.s
+++ b/boot/startup-x86_64.s
@@ -161,10 +161,6 @@ clear_bss:
inc rdi
cmp rdi, ___BSS_END__
jne clear_bss
-
- ; initialize IDT and PICs
- call setup_idt
-
fninit ; activate FPU
init_sse:
@@ -182,38 +178,6 @@ init_sse:
cli ; Usually we should not get here.
hlt
-;
-; Interrupt handling
-;
-
-
-;
-; Relocating of IDT entries and setting IDTR
-;
-
-setup_idt:
- mov rax, vectors_start
-
- ; bits 0..15 -> ax, 16..31 -> bx, 32..64 -> edx
- mov rbx, rax
- mov rdx, rax
- shr rdx, 32
- shr rbx, 16
-
- mov r10, idt ; pointer to the actual interrupt gate
- mov rcx, 255 ; counter
-.loop:
- add [r10+0], ax
- adc [r10+6], bx
- adc [r10+8], edx
- add r10, 16
- dec rcx
- jge .loop
-
- lidt [idt_descr]
- ret
-
-
[SECTION .data]
;