x86/asm/entry/32: Shorten __audit_syscall_entry() args preparation
authorDenys Vlasenko <[email protected]>
Tue, 9 Jun 2015 18:54:09 +0000 (20:54 +0200)
committerIngo Molnar <[email protected]>
Wed, 10 Jun 2015 06:42:13 +0000 (08:42 +0200)
commita92fde25231a89d7d10895482556260c1b63767d
tree1bc361bd96e906d27879bbbb0983db164fa3037b
parent1536bb46fac7672ef04aaaa6a3b07848314263bc
x86/asm/entry/32: Shorten __audit_syscall_entry() args preparation

We use three MOVs to swap edx and ecx. We can use one XCHG
instead.

Expand the comments. It's difficult to keep track which arg#
every register corresponds to, so spell it out.

Signed-off-by: Denys Vlasenko <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[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: Peter Zijlstra <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Will Drewry <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
[ Expanded the comments some more. ]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/entry/entry_64_compat.S