fix the shift
This commit is contained in:
parent
099d6d9093
commit
7e710e7e4a
1 changed files with 2 additions and 2 deletions
|
|
@ -78,7 +78,7 @@ pub unsafe fn __cpuid(leaf: u32) -> CpuidResult {
|
|||
}
|
||||
|
||||
/// Does the host support the `cpuid` instruction?
|
||||
#[inline]
|
||||
#[inline(never)]
|
||||
pub fn has_cpuid() -> bool {
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
{
|
||||
|
|
@ -117,7 +117,7 @@ pub fn has_cpuid() -> bool {
|
|||
# So if the value of the 21st bit is 1, cpuid is available,
|
||||
# and if it is zero, it isn't because we didn't manage to
|
||||
# modify it:
|
||||
shrd %eax, 21
|
||||
shrl %eax, 21
|
||||
# Restore original eflags
|
||||
popfd
|
||||
"#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue