feat: TrueType (TTF) font rendering, many new desktop applications and DOOM support, among other improvements
This commit is contained in:
@@ -19,6 +19,10 @@
|
||||
using namespace Kt;
|
||||
|
||||
namespace Hal {
|
||||
static int g_detectedCpuCount = 0;
|
||||
|
||||
int GetDetectedCpuCount() { return g_detectedCpuCount; }
|
||||
|
||||
void ApicInitialize(ACPI::CommonSDTHeader* xsdt) {
|
||||
KernelLogStream(INFO, "APIC") << "Initializing APIC subsystem";
|
||||
|
||||
@@ -29,6 +33,8 @@ namespace Hal {
|
||||
return;
|
||||
}
|
||||
|
||||
g_detectedCpuCount = madt.LocalApicCount;
|
||||
|
||||
if (madt.IoApicAddress == 0) {
|
||||
KernelLogStream(ERROR, "APIC") << "No IOAPIC found in MADT";
|
||||
return;
|
||||
|
||||
@@ -19,4 +19,7 @@ namespace Hal {
|
||||
//
|
||||
// xsdt: pointer to the XSDT (already HHDM-mapped)
|
||||
void ApicInitialize(ACPI::CommonSDTHeader* xsdt);
|
||||
|
||||
// Number of CPU cores detected via MADT (available after ApicInitialize)
|
||||
int GetDetectedCpuCount();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user