Skip to content

Commit 8fac768

Browse files
committed
arch/sim: add JB_ALIGN0 for x64 to ensure the align
Or will cause the fork break as call will auto push 1 item. Signed-off-by: buxiasen <buxiasen@xiaomi.com>
1 parent e53307a commit 8fac768

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

arch/sim/include/setjmp.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#if defined(CONFIG_HOST_X86_64) && !defined(CONFIG_SIM_M32)
4141
/* Storage order: %rbx, %rsp, %rbp, %r12, %r13, %r14, %r15, %rip */
4242

43-
# define XCPTCONTEXT_REGS 10
43+
# define XCPTCONTEXT_REGS 11
4444
# define XCPTCONTEXT_SIZE (8 * XCPTCONTEXT_REGS)
4545

4646
# ifdef __ASSEMBLY__
@@ -55,6 +55,7 @@
5555
# define JB_RIP (7*8)
5656
# define JB_FLAG (8*8)
5757
# define JB_ERRNO (9*8)
58+
# define JB_ALIGN0 (10*8)
5859

5960
# else
6061

@@ -68,6 +69,7 @@
6869
# define JB_RIP (7)
6970
# define JB_FLAG (8)
7071
# define JB_ERRNO (9)
72+
# define JB_ALIGN0 (10)
7173

7274
# endif /* __ASSEMBLY__ */
7375

0 commit comments

Comments
 (0)