| ... | ... | @@ -544,7 +544,7 @@ fn cpuid(leaf_id: u32, subid: u32) CpuidLeaf { |
| 544 | 544 | : [leaf_id] "{eax}" (leaf_id), |
| 545 | 545 | [subid] "{ecx}" (subid), |
| 546 | 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 | 550 | return cpuid_leaf; |
| ... | ... | @@ -557,6 +557,6 @@ fn getXCR0() u32 { |
| 557 | 557 | \\ xgetbv |
| 558 | 558 | : [ret] "={eax}" (-> u32), |
| 559 | 559 | : |
| 560 | | : "eax", "edx", "ecx" |
| 560 | : "edx", "ecx" // "eax" is already an output |
| 561 | 561 | ); |
| 562 | 562 | } |