Skip to content

Commit

Permalink
include/setjmp: add alignment to __jmp_buf definition
Browse files Browse the repository at this point in the history
JIRA: RTOS-785
  • Loading branch information
lukileczo committed Feb 27, 2024
1 parent 719dd2f commit 39f5f97
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/arch/armv7a/setjmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct __jmp_buf {
__u64 d[8];
__u32 fpscr;
#endif
} __attribute__((packed));
} __attribute__((packed, aligned(8)));


#endif
2 changes: 1 addition & 1 deletion include/arch/armv7m/setjmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct __jmp_buf {
__u64 d[8];
__u32 fpscr;
#endif
} __attribute__((packed));
} __attribute__((packed, aligned(8)));


#endif
2 changes: 1 addition & 1 deletion include/arch/ia32/setjmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct __jmp_buf {
__u32 jmp;
__u32 ret;
__u32 sigMask;
} __attribute__((packed));
} __attribute__((packed, aligned(4)));


#endif
2 changes: 1 addition & 1 deletion include/arch/riscv64/setjmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct __jmp_buf {
__u64 sigMsk;
__u64 f[12];
__u64 fcsr;
} __attribute__((packed));
} __attribute__((packed, aligned(8)));


#endif
2 changes: 1 addition & 1 deletion include/arch/sparcv8leon3/setjmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct __jmp_buf {
__u32 i[2];
__u32 sigFlg;
__u32 sigMsk;
} __attribute__((packed));
} __attribute__((packed, aligned(4)));


#endif

0 comments on commit 39f5f97

Please sign in to comment.