mirror of
https://github.com/apache/nuttx.git
synced 2026-05-19 03:03:37 +08:00
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:
@@ -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__ */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user