diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2014-03-04 10:38:06 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-09-23 16:21:28 -0400 |
commit | b4f0d3755c5e9cc86292d5fd78261903b4f23d4a (patch) | |
tree | 34cddc7f4fc142be54c487e95335d469eda10e5e /arch/x86/ia32/ia32entry.S | |
parent | a17c8b54dc738c4fda31e8be0302cd131a04c19f (diff) |
audit: x86: drop arch from __audit_syscall_entry() interface
Since the arch is found locally in __audit_syscall_entry(), there is no need to
pass it in as a parameter. Delete it from the parameter list.
x86* was the only arch to call __audit_syscall_entry() directly and did so from
assembly code.
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: x86@kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-audit@redhat.com
Signed-off-by: Eric Paris <eparis@redhat.com>
---
As this patch relies on changes in the audit tree, I think it
appropriate to send it through my tree rather than the x86 tree.
Diffstat (limited to 'arch/x86/ia32/ia32entry.S')
-rw-r--r-- | arch/x86/ia32/ia32entry.S | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/x86/ia32/ia32entry.S b/arch/x86/ia32/ia32entry.S index 4299eb05023c..f5bdd2881815 100644 --- a/arch/x86/ia32/ia32entry.S +++ b/arch/x86/ia32/ia32entry.S | |||
@@ -186,12 +186,12 @@ sysexit_from_sys_call: | |||
186 | 186 | ||
187 | #ifdef CONFIG_AUDITSYSCALL | 187 | #ifdef CONFIG_AUDITSYSCALL |
188 | .macro auditsys_entry_common | 188 | .macro auditsys_entry_common |
189 | movl %esi,%r9d /* 6th arg: 4th syscall arg */ | 189 | movl %esi,%r8d /* 5th arg: 4th syscall arg */ |
190 | movl %edx,%r8d /* 5th arg: 3rd syscall arg */ | 190 | movl %ecx,%r9d /*swap with edx*/ |
191 | /* (already in %ecx) 4th arg: 2nd syscall arg */ | 191 | movl %edx,%ecx /* 4th arg: 3rd syscall arg */ |
192 | movl %ebx,%edx /* 3rd arg: 1st syscall arg */ | 192 | movl %r9d,%edx /* 3rd arg: 2nd syscall arg */ |
193 | movl %eax,%esi /* 2nd arg: syscall number */ | 193 | movl %ebx,%esi /* 2nd arg: 1st syscall arg */ |
194 | movl $AUDIT_ARCH_I386,%edi /* 1st arg: audit arch */ | 194 | movl %eax,%edi /* 1st arg: syscall number */ |
195 | call __audit_syscall_entry | 195 | call __audit_syscall_entry |
196 | movl RAX-ARGOFFSET(%rsp),%eax /* reload syscall number */ | 196 | movl RAX-ARGOFFSET(%rsp),%eax /* reload syscall number */ |
197 | cmpq $(IA32_NR_syscalls-1),%rax | 197 | cmpq $(IA32_NR_syscalls-1),%rax |