From 14188c54711c87cb00ef385ce51fb414386fd659 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 20 Aug 2024 03:24:10 +0200 Subject: + Amend, remove MP hybrid services idea. Signed-off-by: Amlal El Mahrouss --- .../HALKit/AMD64/HalCoreMultiProcessingAMD64.cxx | 34 +--------------------- 1 file changed, 1 insertion(+), 33 deletions(-) (limited to 'dev') diff --git a/dev/ZKA/HALKit/AMD64/HalCoreMultiProcessingAMD64.cxx b/dev/ZKA/HALKit/AMD64/HalCoreMultiProcessingAMD64.cxx index 0f1c9fcb..cfcc2cf6 100644 --- a/dev/ZKA/HALKit/AMD64/HalCoreMultiProcessingAMD64.cxx +++ b/dev/ZKA/HALKit/AMD64/HalCoreMultiProcessingAMD64.cxx @@ -12,8 +12,6 @@ #include #include -#include - // Needed for SMP. // #include @@ -139,37 +137,7 @@ namespace Kernel::HAL /// @param rsdPtr RSD PTR structure. Void hal_system_get_cores(voidPtr rsdPtr) { - if (StringBuilder::Equals(kHandoverHeader->f_FirmwareVendorName, kHandoverBetterEFI_U)) - { - // Our EFI way using Hybrid MP services. - EfiMpServicesProtocol* mp = reinterpret_cast(kHandoverHeader->f_HardwareTables.f_MPPtr); - - UInt32 who_is_this = -1; - - mp->WhoAmI(mp, &who_is_this); - - kcout << "newoskrnl: Processor #0 WhoAmI: " << number(who_is_this) << endl; - - UInt32 health_flag = 0; - - UInt32 num = 0; - UInt32 enabled_num = 0; - - mp->GetNumberOfProcessors(mp, &num, &enabled_num); - - kcout << "newoskrnl: Processor #: " << number(num) << endl; - kcout << "newoskrnl: Enabled processors #: " << number(enabled_num) << endl; - - if (enabled_num < 2) - { - ke_stop(RUNTIME_CHECK_PROCESS); - } - } - else - { - // Classic way (MADT) - kcout << "Non ZKA EFI system detected.\r"; - } + (void)rsdPtr; } } // namespace Kernel::HAL -- cgit v1.2.3