From: Avi Kivity <[email protected]> This makes it pick the correct register size.
Signed-off-by: Avi Kivity <[email protected]> diff --git a/lib/x86/processor.h b/lib/x86/processor.h index c348808..d0ace9e 100644 --- a/lib/x86/processor.h +++ b/lib/x86/processor.h @@ -191,7 +191,7 @@ static inline u16 sldt(void) return val; } -static inline void ltr(unsigned val) +static inline void ltr(u16 val) { asm volatile ("ltr %0" : : "rm"(val)); } -- To unsubscribe from this list: send the line "unsubscribe kvm-commits" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
