Skip to content

Commit 70f3228

Browse files
committed
fixup
1 parent a594448 commit 70f3228

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/x86/misc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ pub unsafe fn cpuid(eax: u32, ecx: u32) -> CpuidResult {
4747
}
4848

4949
/// Reads EFLAGS.
50+
#[cfg(target_arch = "x86")]
5051
#[inline(always)]
5152
pub unsafe fn pushfd() -> u32 {
5253
let eflags: u32;
@@ -56,6 +57,7 @@ pub unsafe fn pushfd() -> u32 {
5657
}
5758

5859
/// Write EFLAGS.
60+
#[cfg(target_arch = "x86")]
5961
#[inline(always)]
6062
pub unsafe fn popfd(eflags: u32) {
6163
asm!("pushl %eax" : : "{eax}"(eflags) : "flags" : "volatile");

0 commit comments

Comments
 (0)