Commit 1a5296e5 authored by Vijaya Kumar K's avatar Vijaya Kumar K Committed by Pavel Emelyanov

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: 's avatarVijaya Kumar K <vijayak@caviumnetworks.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent c9448e1f
...@@ -808,7 +808,7 @@ struct clone_arg { ...@@ -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];
}; };
......
...@@ -1075,7 +1075,7 @@ struct cr_clone_arg { ...@@ -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;
......
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