On 1/25/22 12:29, Warner Losh wrote:
setup_frame sets up a signalled stack frame. Associated routines to
extract the pointer to the stack frame and to support alternate stacks.
Signed-off-by: Stacey Son<[email protected]>
Signed-off-by: Kyle Evans<[email protected]>
Signed-off-by: Warner Losh<[email protected]>
---
bsd-user/main.c | 5 +++
bsd-user/qemu.h | 3 +-
bsd-user/signal.c | 82 +++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 89 insertions(+), 1 deletion(-)
Reviewed-by: Richard Henderson <[email protected]>
+#if defined(TARGET_ARM)
+ return (sp - frame_size) & ~7;
+#elif defined(TARGET_AARCH64)
+ return (sp - frame_size) & ~15;
+#else
+ return sp - frame_size;
+#endif
Just double-checking that this is still in the cleanup queue.
I would expect x86 to require 16 byte alignment as well, for sse.
r~