| ... | @@ -544,7 +544,7 @@ fn cpuid(leaf_id: u32, subid: u32) CpuidLeaf { | ... | @@ -544,7 +544,7 @@ fn cpuid(leaf_id: u32, subid: u32) CpuidLeaf { |
| 544 | : [leaf_id] "{eax}" (leaf_id), | 544 | : [leaf_id] "{eax}" (leaf_id), |
| 545 | [subid] "{ecx}" (subid), | 545 | [subid] "{ecx}" (subid), |
| 546 | [leaf_ptr] "r" (&cpuid_leaf), | 546 | [leaf_ptr] "r" (&cpuid_leaf), |
| 547 | : "eax", "ebx", "ecx", "edx" | 547 | : "ebx", "edx" // "eax" and "ecx" are already inputs |
| 548 | ); | 548 | ); |
| 549 | | 549 | |
| 550 | return cpuid_leaf; | 550 | return cpuid_leaf; |
| ... | @@ -557,6 +557,6 @@ fn getXCR0() u32 { | ... | @@ -557,6 +557,6 @@ fn getXCR0() u32 { |
| 557 | \\ xgetbv | 557 | \\ xgetbv |
| 558 | : [ret] "={eax}" (-> u32), | 558 | : [ret] "={eax}" (-> u32), |
| 559 | : | 559 | : |
| 560 | : "eax", "edx", "ecx" | 560 | : "edx", "ecx" // "eax" is already an output |
| 561 | ); | 561 | ); |
| 562 | } | 562 | } |