summaryrefslogtreecommitdiffhomepage
path: root/dev
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-20 03:24:10 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-20 03:24:10 +0200
commit14188c54711c87cb00ef385ce51fb414386fd659 (patch)
tree9ae09eb513b3be70dca0094916fe762d7ee22e82 /dev
parent4eb813ba7247d9e2bebf255ecc50f68c0a71bb72 (diff)
+ Amend, remove MP hybrid services idea.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev')
-rw-r--r--dev/ZKA/HALKit/AMD64/HalCoreMultiProcessingAMD64.cxx34
1 files changed, 1 insertions, 33 deletions
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 <KernelKit/ProcessScheduler.hxx>
#include <KernelKit/Timer.hxx>
-#include <FirmwareKit/EFI.hxx>
-
// Needed for SMP. //
#include <KernelKit/MP.hxx>
@@ -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<EfiMpServicesProtocol*>(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