projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
146b2b0
)
x86/asm/entry/64: Use smaller instructions
author
Denys Vlasenko
<
[email protected]
>
Wed, 25 Mar 2015 17:18:15 +0000
(18:18 +0100)
committer
Ingo Molnar
<
[email protected]
>
Fri, 27 Mar 2015 08:57:06 +0000
(09:57 +0100)
The $AUDIT_ARCH_X86_64 parameter to syscall_trace_enter_phase1/2
is a 32-bit constant, loading it with 32-bit MOV produces 5-byte
insn instead of 10-byte MOVABS one.
Signed-off-by: Denys Vlasenko <
[email protected]
>
Cc: Alexei Starovoitov <
[email protected]
>
Cc: Andy Lutomirski <
[email protected]
>
Cc: Borislav Petkov <
[email protected]
>
Cc: Frederic Weisbecker <
[email protected]
>
Cc: H. Peter Anvin <
[email protected]
>
Cc: Kees Cook <
[email protected]
>
Cc: Linus Torvalds <
[email protected]
>
Cc: Oleg Nesterov <
[email protected]
>
Cc: Steven Rostedt <
[email protected]
>
Cc: Will Drewry <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/kernel/entry_64.S
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/entry_64.S
b/arch/x86/kernel/entry_64.S
index 9988c4b2de330c13a93f3ff7581e31dbf8b1a9e1..f85d2ccec6d26982425f0ad19aa8021843187a7f 100644
(file)
--- a/
arch/x86/kernel/entry_64.S
+++ b/
arch/x86/kernel/entry_64.S
@@
-305,7
+305,7
@@
system_call_fastpath:
/* Do syscall entry tracing */
tracesys:
movq %rsp, %rdi
- mov
q $AUDIT_ARCH_X86_64, %r
si
+ mov
l $AUDIT_ARCH_X86_64, %e
si
call syscall_trace_enter_phase1
test %rax, %rax
jnz tracesys_phase2 /* if needed, run the slow path */
@@
-316,7
+316,7
@@
tracesys:
tracesys_phase2:
SAVE_EXTRA_REGS
movq %rsp, %rdi
- mov
q $AUDIT_ARCH_X86_64, %r
si
+ mov
l $AUDIT_ARCH_X86_64, %e
si
movq %rax,%rdx
call syscall_trace_enter_phase2