diff options
author | Jan Beulich <JBeulich@suse.com> | 2011-11-29 06:24:10 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-12-05 11:24:43 -0500 |
commit | f6b2bc847641ea38e2655c8424fef5d2d19f35f9 (patch) | |
tree | 47f7d2ebb9cd1434b5fd8ef0113a4b0cbb0741a2 /arch/x86/ia32 | |
parent | 46db09d3fd847f185a7d23a96bc8fe7a4be0cd05 (diff) |
x86-64: Cleanup some assembly entry points
system_call_after_swapgs doesn't really benefit from forcing
alignment from it - quite the opposite, native code needlessly
so far got a big NOP instruction inserted in front of it. Xen
being the only user of the separate entry point can well live
with the branch going to three bytes into a cache line.
The compatibility mode ptregs entry points for one can make use
of the GLOBAL() macro, and should be suitably aligned. Their
shared continuation point (ia32_ptregs_common) otoh doesn't need
to be global at all, but should continue to be properly aligned.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/4ED4CEEA020000780006407D@nat28.tlf.novell.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/ia32')
-rw-r--r-- | arch/x86/ia32/ia32entry.S | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/x86/ia32/ia32entry.S b/arch/x86/ia32/ia32entry.S index 0d5c279f3732..3e274564f6bf 100644 --- a/arch/x86/ia32/ia32entry.S +++ b/arch/x86/ia32/ia32entry.S | |||
@@ -453,8 +453,8 @@ quiet_ni_syscall: | |||
453 | CFI_ENDPROC | 453 | CFI_ENDPROC |
454 | 454 | ||
455 | .macro PTREGSCALL label, func, arg | 455 | .macro PTREGSCALL label, func, arg |
456 | .globl \label | 456 | ALIGN |
457 | \label: | 457 | GLOBAL(\label) |
458 | leaq \func(%rip),%rax | 458 | leaq \func(%rip),%rax |
459 | leaq -ARGOFFSET+8(%rsp),\arg /* 8 for return address */ | 459 | leaq -ARGOFFSET+8(%rsp),\arg /* 8 for return address */ |
460 | jmp ia32_ptregs_common | 460 | jmp ia32_ptregs_common |
@@ -471,7 +471,8 @@ quiet_ni_syscall: | |||
471 | PTREGSCALL stub32_vfork, sys_vfork, %rdi | 471 | PTREGSCALL stub32_vfork, sys_vfork, %rdi |
472 | PTREGSCALL stub32_iopl, sys_iopl, %rsi | 472 | PTREGSCALL stub32_iopl, sys_iopl, %rsi |
473 | 473 | ||
474 | ENTRY(ia32_ptregs_common) | 474 | ALIGN |
475 | ia32_ptregs_common: | ||
475 | popq %r11 | 476 | popq %r11 |
476 | CFI_ENDPROC | 477 | CFI_ENDPROC |
477 | CFI_STARTPROC32 simple | 478 | CFI_STARTPROC32 simple |