From be29b406526c931a606d4d4de545f71e62bc893a Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 25 Mar 2024 16:43:00 +0100 Subject: Kernel: A lot of preliminary changes before AHCI and SMP support. --- Private/HALKit/AMD64/HalCoreMultiProcessingAMD64.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Private/HALKit/AMD64/HalCoreMultiProcessingAMD64.cpp') diff --git a/Private/HALKit/AMD64/HalCoreMultiProcessingAMD64.cpp b/Private/HALKit/AMD64/HalCoreMultiProcessingAMD64.cpp index d9161d17..fe38189e 100644 --- a/Private/HALKit/AMD64/HalCoreMultiProcessingAMD64.cpp +++ b/Private/HALKit/AMD64/HalCoreMultiProcessingAMD64.cpp @@ -93,7 +93,7 @@ struct MadtLocalApicAddressOverride final { STATIC MadtType kApicMadtList[256]; -MadtType* system_find_core(MadtType* madt) { +MadtType* _hal_system_find_core(MadtType* madt) { madt = madt + sizeof(MadtType); if (rt_string_cmp(madt->fMag, kApicSignature, @@ -112,12 +112,12 @@ void hal_system_get_cores(voidPtr rsdPtr) { MUST_PASS(kApicMadt); // MADT must exist. SizeT counter = 0UL; - MadtType* offset = system_find_core((MadtType*)kApicMadt); + MadtType* offset = _hal_system_find_core((MadtType*)kApicMadt); //! now find core addresses. while (offset != nullptr) { // calls rt_copy_memory in NewC++ kApicMadtList[counter] = *offset; - offset = system_find_core(offset); + offset = _hal_system_find_core(offset); ++counter; } -- cgit v1.2.3