kernel: Implemented various features

+ lapic: Start implementation
+ ioapic: Start implementation
+ apic: Now properly working
+ madt: Start implementation
+ pit: Start implementation
+ smp: Start implementation (only grabs the bootstrap processor's LAPIC ID)
This commit is contained in:
RaphProductions 2025-05-20 08:29:23 +02:00
parent dcea7360d2
commit b2cf9b4710
22 changed files with 520 additions and 79 deletions

View file

@ -37,11 +37,9 @@
%macro isr_err_stub 1
isr_stub_%+%1:
push %1 ; push intno into the stack
push %1
pushall
mov rdi, rsp ; put the stack as the first arg.
mov rdi, rsp
call idt_interrupt_handler
@ -102,10 +100,17 @@ isr_no_err_stub 29
isr_err_stub 30
isr_no_err_stub 31
%assign i 32
%rep 224
isr_no_err_stub i
%assign i i+1
%endrep
global isr_stub_table
isr_stub_table:
%assign i 0
%rep 32
%rep 256
dq isr_stub_%+i
%assign i i+1
%endrep