Skip to content

Commit 85580d7

Browse files
Jonathan Woollett-Lightdianpopa
Jonathan Woollett-Light
authored andcommitted
Linking has_cpuid todo
Signed-off-by: Jonathan Woollett-Light <[email protected]>
1 parent 20e18a8 commit 85580d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cpuid/src/common.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ pub enum Error {
3131
/// Extract entry from the cpuid.
3232
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
3333
pub fn get_cpuid(function: u32, count: u32) -> Result<CpuidResult, Error> {
34-
// TODO: replace with validation based on `has_cpuid()` when it becomes stable:
35-
// https://doc.rust-lang.org/core/arch/x86/fn.has_cpuid.html
34+
// TODO: Use `core::arch::x86_64::has_cpuid`
35+
// (https://github.com/firecracker-microvm/firecracker/issues/3271)
3636
#[cfg(target_env = "sgx")]
3737
{
3838
return Err(Error::NotSupported);

0 commit comments

Comments
 (0)