summary refs log tree commit diff stats
path: root/bsd-user/qemu.h
diff options
context:
space:
mode:
authorWarner Losh <imp@bsdimp.com>2022-01-08 21:40:28 -0700
committerWarner Losh <imp@bsdimp.com>2022-01-28 15:53:41 -0700
commit46f4f76d332d8c2b4eb24c8e6f91ac8bdc205733 (patch)
tree2e7dbd85513290f80fb1214d0ab4cbba1a3aa544 /bsd-user/qemu.h
parentc93cbac1f4aab40c3fd4ac7488c7e3365ec5c894 (diff)
downloadfocaccia-qemu-46f4f76d332d8c2b4eb24c8e6f91ac8bdc205733.tar.gz
focaccia-qemu-46f4f76d332d8c2b4eb24c8e6f91ac8bdc205733.zip
bsd-user/signal.c: setup_frame
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 <sson@FreeBSD.org>
Signed-off-by: Kyle Evans <kevans@freebsd.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'bsd-user/qemu.h')
-rw-r--r--bsd-user/qemu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h
index 1648a509b9..de20650a00 100644
--- a/bsd-user/qemu.h
+++ b/bsd-user/qemu.h
@@ -107,7 +107,8 @@ typedef struct TaskState {
      */
     sigset_t signal_mask;
 
-    uint8_t stack[];
+    /* This thread's sigaltstack, if it has one */
+    struct target_sigaltstack sigaltstack_used;
 } __attribute__((aligned(16))) TaskState;
 
 void stop_all_tasks(void);