1
0
Fork 0

feat: idek

This commit is contained in:
Kevin Alavik 2025-05-30 14:52:04 +02:00
parent 4534f1da14
commit 93d09b1930
Signed by: cmpsb
GPG key ID: 10D1CC0526FDC6D7
4 changed files with 21 additions and 21 deletions

View file

@ -100,15 +100,6 @@ void emk_entry(void)
gdt_init();
idt_init();
/* Setup SMP */
if (!mp_request.response)
{
kpanic(NULL, "Failed to get MP request");
}
mp_response = mp_request.response;
smp_init();
/* Setup physical memory*/
if (!hhdm_request.response)
{
@ -169,6 +160,15 @@ void emk_entry(void)
*c = 32;
kfree(c);
/* Setup SMP */
if (!mp_request.response)
{
kpanic(NULL, "Failed to get MP request");
}
mp_response = mp_request.response;
smp_init();
/* Setup ACPI */
rsdp_response = rsdp_request.response;
if (!rsdp_response)
@ -176,13 +176,13 @@ void emk_entry(void)
kpanic(NULL, "Failed to get RSDP request");
}
acpi_init();
madt_init(); // Also init MADT, to prepare for APIC
/* Disable legacy PIC to prepare for APIC */
outb(0x21, 0xff);
outb(0xA1, 0xff);
/* Setup APIC */
madt_init();
lapic_init();
/* Finished */