diff options
author | H. Peter Anvin <[email protected]> | 2012-04-18 17:16:48 -0700 |
---|---|---|
committer | H. Peter Anvin <[email protected]> | 2012-04-19 15:07:56 -0700 |
commit | ffc4bc9c6fa4eaf935d96d139bfa7443cac0b88e (patch) | |
tree | 61296184c680a012f7d4a10deedec2caba87dc53 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 84f4fc524eed040660bd4ebc8cba259d8afe8461 (diff) |
x86, paravirt: Replace GET_CR2_INTO_RCX with GET_CR2_INTO_RAX
GET_CR2_INTO_RCX is asinine: it is only used in one place, the actual
paravirt call returns the value in %rax, not %rcx; and the one place
that wants it wants the result in %r9. We actually generate as a
result of this call:
call ...
movq %rax, %rcx
xorq %rax, %rax /* this value isn't even used... */
movq %rcx, %r9
At least make the macro do what the paravirt call does, which is put
the value into %rax.
Nevermind the fact that the macro clobbers all the volatile registers.
Signed-off-by: H. Peter Anvin <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Cc: Glauber de Oliveira Costa <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions