aboutsummaryrefslogtreecommitdiff
path: root/bsd-user/main.c
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/main.c
parentc93cbac1f4aab40c3fd4ac7488c7e3365ec5c894 (diff)
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/main.c')
-rw-r--r--bsd-user/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bsd-user/main.c b/bsd-user/main.c
index 29cf4e1569..f1d58e905e 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -217,6 +217,11 @@ void qemu_cpu_kick(CPUState *cpu)
/* Assumes contents are already zeroed. */
static void init_task_state(TaskState *ts)
{
+ ts->sigaltstack_used = (struct target_sigaltstack) {
+ .ss_sp = 0,
+ .ss_size = 0,
+ .ss_flags = TARGET_SS_DISABLE,
+ };
}
void gemu_log(const char *fmt, ...)