Skip to content

Commit aaf5eef

Browse files
committed
x86/xen: remove unneeded dummy push from xen_hypercall_hvm()
Stack alignment of the kernel in 64-bit mode is 8, not 16, so the dummy push in xen_hypercall_hvm() for aligning the stack to 16 bytes can be removed. Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> Signed-off-by: Juergen Gross <jgross@suse.com>
1 parent 0bd797b commit aaf5eef

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

arch/x86/xen/xen-head.S

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ SYM_FUNC_START(xen_hypercall_hvm)
100100
push %r10
101101
push %r9
102102
push %r8
103-
#ifdef CONFIG_FRAME_POINTER
104-
pushq $0 /* Dummy push for stack alignment. */
105-
#endif
106103
#endif
107104
/* Set the vendor specific function. */
108105
call __xen_hypercall_setfunc
@@ -119,9 +116,6 @@ SYM_FUNC_START(xen_hypercall_hvm)
119116
#else
120117
lea xen_hypercall_amd(%rip), %rcx
121118
cmp %rax, %rcx
122-
#ifdef CONFIG_FRAME_POINTER
123-
pop %rax /* Dummy pop. */
124-
#endif
125119
pop %r8
126120
pop %r9
127121
pop %r10

0 commit comments

Comments
 (0)