Messages in this thread Patch in this message | | | From | Lai Jiangshan <> | Subject | [RFC PATCH 3/4] x86/entry: Remove parameter rdx from macro PUSH_AND_CLEAR_REGS and PUSH_REGS | Date | Tue, 1 Jun 2021 14:52:16 +0800 |
| |
From: Lai Jiangshan <laijs@linux.alibaba.com>
There is no caller using parameter rdx.
Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com> --- arch/x86/entry/calling.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/x86/entry/calling.h b/arch/x86/entry/calling.h index a4c061fb7c6e..d63fcc09e722 100644 --- a/arch/x86/entry/calling.h +++ b/arch/x86/entry/calling.h @@ -63,7 +63,7 @@ For 32-bit we have the following conventions - kernel is built with * for assembly code: */ -.macro PUSH_REGS rdx=%rdx rax=%rax save_ret=0 +.macro PUSH_REGS rax=%rax save_ret=0 .if \save_ret pushq %rsi /* pt_regs->si */ movq 8(%rsp), %rsi /* temporarily store the return address in %rsi */ @@ -72,7 +72,7 @@ For 32-bit we have the following conventions - kernel is built with pushq %rdi /* pt_regs->di */ pushq %rsi /* pt_regs->si */ .endif - pushq \rdx /* pt_regs->dx */ + pushq %rdx /* pt_regs->dx */ pushq %rcx /* pt_regs->cx */ pushq \rax /* pt_regs->ax */ pushq %r8 /* pt_regs->r8 */ @@ -114,8 +114,8 @@ For 32-bit we have the following conventions - kernel is built with .endm -.macro PUSH_AND_CLEAR_REGS rdx=%rdx rax=%rax save_ret=0 - PUSH_REGS rdx=\rdx, rax=\rax, save_ret=\save_ret +.macro PUSH_AND_CLEAR_REGS rax=%rax save_ret=0 + PUSH_REGS rax=\rax, save_ret=\save_ret CLEAR_REGS .endm -- 2.19.1.6.gb485710b
| |