DescriptionFix restore_rt() getter's inline asm not to clobber the x86-64 red zone
Using "call" in x86-64 inline asm without adjusting the stack pointer
for the 128 byte red zone isn't valid, because it would clobber the
red zone.
This use of "call" comes from the x86-32 version, but it's not
necessary on x86-64 where we can use %rip-relative addressing.
Also relax output constraint from using %rax ('=a') to using any
register ('=r'); the stricter constraint wasn't necessary before.
BUG=none
TEST=none
Committed: https://code.google.com/p/linux-syscall-support/source/detail?r=23
Patch Set 1 #
Total comments: 2
Messages
Total messages: 4 (0 generated)
|