Fixed compiler warnings

This commit is contained in:
Alex
2022-12-21 20:05:57 +02:00
parent 48e8f0c513
commit cddf0426e3
28 changed files with 483 additions and 81 deletions

View File

@ -546,6 +546,12 @@ namespace CPU
asmv("cpuid"
: "=a"(*eax), "=b"(*ebx), "=c"(*ecx), "=d"(*edx)
: "a"(Function));
#else
UNUSED(Function);
UNUSED(eax);
UNUSED(ebx);
UNUSED(ecx);
UNUSED(edx);
#endif
}
@ -556,9 +562,11 @@ namespace CPU
:
: "r"(Address)
: "memory");
#else
UNUSED(Address);
#endif
}
/** @brief EXPERIMENTAL IMPLEMENTATION */
namespace Intel
{
@ -3066,7 +3074,7 @@ namespace CPU
/* @brief Enable Protection Keys for Supervisor Mode Pages */
uint32_t PKS : 1;
/** @brief Reserved */
uint64_t Reserved2 : 7; // TODO: This could be wrong
uint64_t Reserved2 : 7; // TODO: This could be wrong
};
uint64_t raw;
} CR4;