提交 e9b885ee 编写于 作者: R Rich Felker

fix clobber of edx in i386 vsyscall asm

this function does not obey the normal calling convention; like a
syscall instruction, it's expected not to clobber any registers except
the return value. clobbering edx could break callers that were reusing
the value cached in edx after the syscall returns.
上级 dc059f03
......@@ -16,7 +16,8 @@ __vsyscall:
mov 12(%esp),%edi
push %eax
call 1f
2: pop %ebx
2: mov %ebx,%edx
pop %ebx
pop %ebx
pop %edi
ret
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册