diff options
| author | Tianhao Wang <shrik3@mailbox.org> | 2024-04-18 02:29:44 +0200 |
|---|---|---|
| committer | Tianhao Wang <shrik3@mailbox.org> | 2024-06-11 15:16:34 +0200 |
| commit | 4c7dec80c02db70d9592bbe91f00145c0eb7a40e (patch) | |
| tree | 6889539f2bb88aafe22fe076e83fcf67afc66b67 /boot/startup-x86_64.s | |
| parent | 9ffe5da010790ca8751e132841352c9543d06c5c (diff) | |
interrupt: add rust binding for idt
Diffstat (limited to 'boot/startup-x86_64.s')
| -rw-r--r-- | boot/startup-x86_64.s | 36 |
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] ; |
