diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-12-09 19:33:44 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-12-09 19:33:44 -0500 |
commit | ce9119ad90b1caba550447bfcc0a21850558ca49 (patch) | |
tree | e7005dcf5ec04848e9ddf33a5b00d11b04ea48f9 /arch/x86/kernel/entry_32.S | |
parent | f839bbc5c81b1c92ff8e81c360e9564f7b961b2e (diff) |
x86-32: Avoid pipeline serialization in PTREGSCALL1 and 2
In the PTREGSCALL1 and 2 macros, we can trivially avoid an unnecessary
pipeline serialization, so do so.
In PTREGSCALLS3 this is much less clear-cut since we have to push a
new value to the stack. Leave it alone for now assuming it is as good
as it is going to be; may want to check on Atom or another in-order
x86 to see if we can do better.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Brian Gerst <brgerst@gmail.com>
LKML-Reference: <1260403316-5679-2-git-send-email-brgerst@gmail.com>
Diffstat (limited to 'arch/x86/kernel/entry_32.S')
-rw-r--r-- | arch/x86/kernel/entry_32.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/entry_32.S b/arch/x86/kernel/entry_32.S index 6492555d123d..cb12b9bfc9cc 100644 --- a/arch/x86/kernel/entry_32.S +++ b/arch/x86/kernel/entry_32.S | |||
@@ -735,15 +735,15 @@ ptregs_##name: \ | |||
735 | ALIGN; \ | 735 | ALIGN; \ |
736 | ptregs_##name: \ | 736 | ptregs_##name: \ |
737 | leal 4(%esp),%edx; \ | 737 | leal 4(%esp),%edx; \ |
738 | movl PT_EBX(%edx),%eax; \ | 738 | movl (PT_EBX+4)(%esp),%eax; \ |
739 | jmp sys_##name; | 739 | jmp sys_##name; |
740 | 740 | ||
741 | #define PTREGSCALL2(name) \ | 741 | #define PTREGSCALL2(name) \ |
742 | ALIGN; \ | 742 | ALIGN; \ |
743 | ptregs_##name: \ | 743 | ptregs_##name: \ |
744 | leal 4(%esp),%ecx; \ | 744 | leal 4(%esp),%ecx; \ |
745 | movl PT_ECX(%ecx),%edx; \ | 745 | movl (PT_ECX+4)(%esp),%edx; \ |
746 | movl PT_EBX(%ecx),%eax; \ | 746 | movl (PT_EBX+4)(%esp),%eax; \ |
747 | jmp sys_##name; | 747 | jmp sys_##name; |
748 | 748 | ||
749 | #define PTREGSCALL3(name) \ | 749 | #define PTREGSCALL3(name) \ |