Kernel: Remove obsole CPUID::IsAvailable
This is now a harware requirement that is verified already in boot.S
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include <BAN/Memory.h>
|
||||
#include <kernel/APIC.h>
|
||||
#include <kernel/GDT.h>
|
||||
#include <kernel/IDT.h>
|
||||
|
||||
Reference in New Issue
Block a user