diff options
| author | Warner Losh <imp@bsdimp.com> | 2024-06-23 15:29:42 -0600 |
|---|---|---|
| committer | Warner Losh <imp@bsdimp.com> | 2024-07-23 10:56:30 -0600 |
| commit | 5fa2a10ba6822fc1e500e921dcae344db46e1649 (patch) | |
| tree | 53a8955280e815b90aee881addd0b245ad0c339e /bsd-user/i386/target_arch_signal.h | |
| parent | 5b6828d194fba3c170a5f717cc1fc3d35645aadd (diff) | |
| download | focaccia-qemu-5fa2a10ba6822fc1e500e921dcae344db46e1649.tar.gz focaccia-qemu-5fa2a10ba6822fc1e500e921dcae344db46e1649.zip | |
bsd-user: Define TARGET_SIGSTACK_ALIGN and use it to round stack
Most (all?) targets require stacks to be properly aligned. Rather than a series of ifdefs in bsd-user/signal.h, instead use a manditory #define for all architectures. Signed-off-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'bsd-user/i386/target_arch_signal.h')
| -rw-r--r-- | bsd-user/i386/target_arch_signal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bsd-user/i386/target_arch_signal.h b/bsd-user/i386/target_arch_signal.h index 279dadc22c..2c14153ab6 100644 --- a/bsd-user/i386/target_arch_signal.h +++ b/bsd-user/i386/target_arch_signal.h @@ -88,4 +88,6 @@ struct target_sigframe { uint32_t __spare__[2]; }; +#define TARGET_SIGSTACK_ALIGN 8 + #endif /* TARGET_ARCH_SIGNAL_H */ |