Kernel: Remove obsole CPUID::IsAvailable

This is now a harware requirement that is verified already in boot.S
This commit is contained in:
Bananymous
2023-01-10 21:28:59 +02:00
parent 7d45b3cbd6
commit 64c57ea3d0
5 changed files with 1 additions and 38 deletions

View File

@@ -125,11 +125,6 @@ namespace Kernel
TTY_PRINTLN("'cpuinfo' does not support command line arguments");
return;
}
if (!CPUID::IsAvailable())
{
TTY_PRINTLN("'cpuid' instruction not available");
return;
}
uint32_t ecx, edx;
auto vendor = CPUID::GetVendor();
@@ -154,11 +149,6 @@ namespace Kernel
TTY_PRINTLN("'random' does not support command line arguments");
return;
}
if (!CPUID::IsAvailable())
{
TTY_PRINTLN("'cpuid' instruction not available");
return;
}
uint32_t ecx, edx;
CPUID::GetFeatures(ecx, edx);
if (!(ecx & CPUID::Features::ECX_RDRND))

View File

@@ -1,3 +1,4 @@
#include <BAN/Memory.h>
#include <kernel/APIC.h>
#include <kernel/GDT.h>
#include <kernel/IDT.h>