2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00

restore: Align stack to 16 bytes for arm64

arm64 expects stack to be aligned to 16 bytes.
If stack pointer is not aligned clone system call
fails during restore.

Signed-off-by: Vijaya Kumar K <vijayak@caviumnetworks.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Vijaya Kumar K
2015-12-28 13:39:40 +05:30
committed by Pavel Emelyanov
parent c9448e1ff7
commit 1a5296e537
2 changed files with 2 additions and 2 deletions

View File

@@ -808,7 +808,7 @@ struct clone_arg {
* Reserve some space for clone() to locate arguments * Reserve some space for clone() to locate arguments
* and retcode in this place * and retcode in this place
*/ */
char stack[128] __attribute__((aligned (8))); char stack[128] __attribute__((aligned (16)));
char stack_ptr[0]; char stack_ptr[0];
}; };

View File

@@ -1075,7 +1075,7 @@ struct cr_clone_arg {
* Reserve some space for clone() to locate arguments * Reserve some space for clone() to locate arguments
* and retcode in this place * and retcode in this place
*/ */
char stack[128] __attribute__((aligned (8))); char stack[128] __attribute__((aligned (16)));
char stack_ptr[0]; char stack_ptr[0];
struct pstree_item *item; struct pstree_item *item;
unsigned long clone_flags; unsigned long clone_flags;