mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-30 00:08:03 +00:00
Disable SMEP and SMAP for now
This commit is contained in:
parent
2ddfec2130
commit
8d963bfd84
@ -213,13 +213,15 @@ namespace CPU
|
|||||||
{
|
{
|
||||||
if (!BSP)
|
if (!BSP)
|
||||||
KPrint("SMEP is supported.");
|
KPrint("SMEP is supported.");
|
||||||
cr4.SMEP = 1;
|
fixme("Not going to enable SMEP.");
|
||||||
|
// cr4.SMEP = 1;
|
||||||
}
|
}
|
||||||
if (rdx & x64::CPUID_FEAT_RDX_SMAP)
|
if (rdx & x64::CPUID_FEAT_RDX_SMAP)
|
||||||
{
|
{
|
||||||
if (!BSP)
|
if (!BSP)
|
||||||
KPrint("SMAP is supported.");
|
KPrint("SMAP is supported.");
|
||||||
cr4.SMAP = 1;
|
fixme("Not going to enable SMAP.");
|
||||||
|
// cr4.SMAP = 1;
|
||||||
}
|
}
|
||||||
if (strcmp(Hypervisor(), x86_CPUID_VENDOR_VIRTUALBOX) != 0 &&
|
if (strcmp(Hypervisor(), x86_CPUID_VENDOR_VIRTUALBOX) != 0 &&
|
||||||
strcmp(Hypervisor(), x86_CPUID_VENDOR_TCG) != 0)
|
strcmp(Hypervisor(), x86_CPUID_VENDOR_TCG) != 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user