The lldt instruction takes an r/m16 operand. Fixes: 7d36db351752 ("Initial commit from qemu-kvm.git kvm/test/") Signed-off-by: Jim Mattson <jmattson@xxxxxxxxxx> --- lib/x86/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/x86/processor.h b/lib/x86/processor.h index eaf24d491499..fe5add548261 100644 --- a/lib/x86/processor.h +++ b/lib/x86/processor.h @@ -443,7 +443,7 @@ static inline void sidt(struct descriptor_table_ptr *ptr) asm volatile ("sidt %0" : "=m"(*ptr)); } -static inline void lldt(unsigned val) +static inline void lldt(u16 val) { asm volatile ("lldt %0" : : "rm"(val)); } -- 2.33.0.1079.g6e70778dc9-goog