[time] Fix wrong SGX_CPUID leaf

This commit is contained in:
ClawSeven 2024-03-05 17:20:45 +08:00 committed by volcano
parent 060d2ec1b3
commit f8e8d400d3

@ -220,7 +220,7 @@ impl CpuId {
}
pub fn support_sgx2(&self) -> bool {
const SGX_CPUID: u32 = 12;
const SGX_CPUID: u32 = 0x12;
let cpuid = self.get_cpuid_info(SGX_CPUID, 0);
// The 0th bit set to 1 in `cpuid.eax` indicates that the SGX feature is enabled.