\
".section .fixup,\"ax\"\n" \
\
- "3: movl $-1,%[err]\n" \
+ "3: movl $-2,%[_err]\n" \
" jmp 2b\n" \
\
".previous\n" \
\
_ASM_EXTABLE(1b, 3b) \
- : [err] "=r" (__err)
+ : [_err] "=r" (__err)
/*
* This function is called only during boot time when x86 caps are not set
asm volatile("1:"XSAVES"\n\t"
"2:\n\t"
xstate_fault(err)
- : "D" (xstate), "m" (*xstate), "a" (lmask), "d" (hmask)
- : "memory");
+ : "D" (xstate), "m" (*xstate), "a" (lmask), "d" (hmask), "0" (err)
+ : "memory");
else
asm volatile("1:"XSAVE"\n\t"
"2:\n\t"
xstate_fault(err)
- : "D" (xstate), "m" (*xstate), "a" (lmask), "d" (hmask)
- : "memory");
+ : "D" (xstate), "m" (*xstate), "a" (lmask), "d" (hmask), "0" (err)
+ : "memory");
return err;
}
asm volatile("1:"XRSTORS"\n\t"
"2:\n\t"
xstate_fault(err)
- : "D" (xstate), "m" (*xstate), "a" (lmask), "d" (hmask)
- : "memory");
+ : "D" (xstate), "m" (*xstate), "a" (lmask), "d" (hmask), "0" (err)
+ : "memory");
else
asm volatile("1:"XRSTOR"\n\t"
"2:\n\t"
xstate_fault(err)
- : "D" (xstate), "m" (*xstate), "a" (lmask), "d" (hmask)
- : "memory");
+ : "D" (xstate), "m" (*xstate), "a" (lmask), "d" (hmask), "0" (err)
+ : "memory");
return err;
}