Commit 2a0cea29 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

parasite: Add run-time stack alignment

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Acked-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 536eaa0f
...@@ -443,6 +443,8 @@ static void __parasite_head __used parasite_head(void) ...@@ -443,6 +443,8 @@ static void __parasite_head __used parasite_head(void)
*/ */
asm volatile("parasite_head_start: \n" asm volatile("parasite_head_start: \n"
"leaq parasite_stack(%rip), %rsp \n" "leaq parasite_stack(%rip), %rsp \n"
"subq $16, %rsp \n"
"andq $~15, %rsp \n"
"pushq $0 \n" "pushq $0 \n"
"movq %rsp, %rbp \n" "movq %rsp, %rbp \n"
"movl parasite_cmd(%rip), %edi \n" "movl parasite_cmd(%rip), %edi \n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment