search for: wrmsr_amd_saf

Displaying 1 result from an estimated 1 matches for "wrmsr_amd_saf".

Did you mean: wrmsr_amd_safe
2010 Oct 07
0
[PATCH] x86-64: workaround for BIOSes wrongly enabling LAHF_LM feature indicator
..." + __FIXUP_WORD " 1b,3b\n" + ".previous\n" + : "=a" (*lo), "=d" (*hi), "=r" (err) + : "c" (msr), "D" (0x9c5a203a), "2" (0), "i" (-EFAULT)); + + return err; +} + +static inline int wrmsr_amd_safe(unsigned int msr, unsigned int lo, + unsigned int hi) +{ + int err; + + asm volatile("1: wrmsr\n2:\n" + ".section .fixup,\"ax\"\n" + "3: movl %6,%0\n" + " jmp 2b\n" + ".previous\n" + ".section __ex...