Skip to content

Commit

Permalink
Linking has_cpuid todo
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Woollett-Light <[email protected]>
  • Loading branch information
Jonathan Woollett-Light authored and dianpopa committed Nov 18, 2022
1 parent 20e18a8 commit 85580d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cpuid/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ pub enum Error {
/// Extract entry from the cpuid.
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
pub fn get_cpuid(function: u32, count: u32) -> Result<CpuidResult, Error> {
// TODO: replace with validation based on `has_cpuid()` when it becomes stable:
// https://doc.rust-lang.org/core/arch/x86/fn.has_cpuid.html
// TODO: Use `core::arch::x86_64::has_cpuid`
// (https://github.com/firecracker-microvm/firecracker/issues/3271)
#[cfg(target_env = "sgx")]
{
return Err(Error::NotSupported);
Expand Down

0 comments on commit 85580d7

Please sign in to comment.