mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 10:16:41 +00:00
parasite: Add run-time stack alignment
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Acked-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
536eaa0f03
commit
2a0cea2997
1 changed files with 2 additions and 0 deletions
|
|
@ -443,6 +443,8 @@ static void __parasite_head __used parasite_head(void)
|
|||
*/
|
||||
asm volatile("parasite_head_start: \n"
|
||||
"leaq parasite_stack(%rip), %rsp \n"
|
||||
"subq $16, %rsp \n"
|
||||
"andq $~15, %rsp \n"
|
||||
"pushq $0 \n"
|
||||
"movq %rsp, %rbp \n"
|
||||
"movl parasite_cmd(%rip), %edi \n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue