1
0
Fork 0

fix/kernel: Fixed spelling mistakes

This commit is contained in:
Kevin Alavik 2025-05-30 15:14:21 +02:00
parent 93d09b1930
commit b7a1a35180
Signed by: cmpsb
GPG key ID: 10D1CC0526FDC6D7
2 changed files with 13 additions and 10 deletions

View file

@ -8,6 +8,8 @@
#include <stdatomic.h>
#include <lib/string.h>
#include <mm/heap.h>
#include <arch/io.h>
#include <sys/apic/lapic.h>
#define MAX_CPUS 256
#define MSR_GS_BASE 0xC0000101
@ -76,6 +78,14 @@ void smp_init(void)
{
set_cpu_local(&cpu_locals[i]);
log_early("CPU %u is the bootstrap processor", i);
/* Disable legacy PIC to prepare for APIC */
outb(0x21, 0xff);
outb(0xA1, 0xff);
/* Setup APIC */
lapic_init();
atomic_fetch_add(&started_cpus, 1);
cpu_locals[i].ready = true;
}

View file

@ -87,7 +87,7 @@ void emk_entry(void)
/* Just do nothing */
}
log_early("Experimental Micro Kernel (EMK) 1.0 Copytright (c) 2025 Piraterna");
log_early("Experimental Micro Kernel (EMK) 1.0 Copyright (c) 2025 Piraterna");
log_early("Compiled at %s %s, emk1.0-%s, flanterm support: %s", __TIME__, __DATE__, BUILD_MODE, FLANTERM_SUPPORT ? "yes" : "no");
log_early("%s", LOG_SEPARATOR);
@ -166,9 +166,6 @@ void emk_entry(void)
kpanic(NULL, "Failed to get MP request");
}
mp_response = mp_request.response;
smp_init();
/* Setup ACPI */
rsdp_response = rsdp_request.response;
if (!rsdp_response)
@ -178,12 +175,8 @@ void emk_entry(void)
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 */
lapic_init();
mp_response = mp_request.response;
smp_init();
/* Finished */
log_early("%s", LOG_SEPARATOR);