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>
This commit is contained in:
buxiasen
2025-07-30 22:35:01 +08:00
committed by Xiang Xiao
parent 1058397807
commit a938926b52
+3 -1
View File
@@ -40,7 +40,7 @@
#if defined(CONFIG_HOST_X86_64) && !defined(CONFIG_SIM_M32)
/* Storage order: %rbx, %rsp, %rbp, %r12, %r13, %r14, %r15, %rip */
# define XCPTCONTEXT_REGS 10
# define XCPTCONTEXT_REGS 11
# define XCPTCONTEXT_SIZE (8 * XCPTCONTEXT_REGS)
# ifdef __ASSEMBLY__
@@ -55,6 +55,7 @@
# define JB_RIP (7*8)
# define JB_FLAG (8*8)
# define JB_ERRNO (9*8)
# define JB_ALIGN0 (10*8)
# else
@@ -68,6 +69,7 @@
# define JB_RIP (7)
# define JB_FLAG (8)
# define JB_ERRNO (9)
# define JB_ALIGN0 (10)
# endif /* __ASSEMBLY__ */