We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0cbc6c commit fc19d03Copy full SHA for fc19d03
src/io.h
@@ -283,7 +283,7 @@ static inline uint64_t rdmsr(uint32_t index) {
283
}
284
285
static inline void wrmsr(uint32_t index, uint64_t val) {
286
- asm volatile ("wrmsr" :: "a"((uint32_t)val), "b"((uint32_t)(val >> 32)), "c"(index) : "memory");
+ asm volatile ("wrmsr" :: "a"((uint32_t)val), "d"((uint32_t)(val >> 32)), "c"(index) : "memory");
287
288
289
static inline uint64_t rdtsc(void) {
0 commit comments