File tree 1 file changed +14
-14
lines changed
1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -62,27 +62,27 @@ pub unsafe fn __cpuid_count(leaf: u32, sub_leaf: u32) -> CpuidResult {
62
62
#[ cfg( target_arch = "x86" ) ]
63
63
{
64
64
asm ! (
65
- "movl %ebx, {0}" ,
65
+ "movl {0}, ebx " ,
66
66
"cpuid" ,
67
- "xchgl %ebx, {0}" ,
68
- lateout ( reg) ebx,
69
- inlateout ( "eax" ) leaf => eax,
70
- inlateout ( "ecx" ) sub_leaf => ecx,
71
- lateout ( "edx" ) edx,
72
- options( nostack, preserves_flags, att_syntax ) ,
67
+ "xchgl {0}, ebx " ,
68
+ out ( reg) ebx,
69
+ inout ( "eax" ) leaf => eax,
70
+ inout ( "ecx" ) sub_leaf => ecx,
71
+ out ( "edx" ) edx,
72
+ options( nostack, preserves_flags) ,
73
73
) ;
74
74
}
75
75
#[ cfg( target_arch = "x86_64" ) ]
76
76
{
77
77
asm ! (
78
- "movq %rbx, {0:r}" ,
78
+ "movq {0:r}, rbx " ,
79
79
"cpuid" ,
80
- "xchgq %rbx, {0:r}" ,
81
- lateout ( reg) ebx,
82
- inlateout ( "eax" ) leaf => eax,
83
- inlateout ( "ecx" ) sub_leaf => ecx,
84
- lateout ( "edx" ) edx,
85
- options( nostack, preserves_flags, att_syntax ) ,
80
+ "xchgq {0:r}, rbx " ,
81
+ out ( reg) ebx,
82
+ inout ( "eax" ) leaf => eax,
83
+ inout ( "ecx" ) sub_leaf => ecx,
84
+ out ( "edx" ) edx,
85
+ options( nostack, preserves_flags) ,
86
86
) ;
87
87
}
88
88
CpuidResult { eax, ebx, ecx, edx }
You can’t perform that action at this time.
0 commit comments