The jump target shall be after the padding, not into it.

Reported by:	alc
Approved by:	re (bz)
MFC after:	2 weeks
This commit is contained in:
Konstantin Belousov 2011-09-11 18:00:46 +00:00
parent b48f7c4c8d
commit e4505da615

View File

@ -398,8 +398,9 @@ IDTVEC(fast_syscall)
movq %rsp, %rdi
call ast
jmp 1b
2: /* Restore preserved registers. */
.align 16
2: /* Restore preserved registers. */
MEXITCOUNT
movq TF_RDI(%rsp),%rdi /* bonus; preserve arg 1 */
movq TF_RSI(%rsp),%rsi /* bonus: preserve arg 2 */