From 7e9a0c15105cdf7d8470bbaf81f49dbcd9436f69 Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Sat, 18 Jun 2022 21:07:45 +0300 Subject: [PATCH] Add stub signal.c implementation for e2k. --- bsd-user/e2k/signal.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 bsd-user/e2k/signal.c diff --git a/bsd-user/e2k/signal.c b/bsd-user/e2k/signal.c new file mode 100644 index 0000000000..5c1a70874e --- /dev/null +++ b/bsd-user/e2k/signal.c @@ -0,0 +1,29 @@ +/* + * Elbrus specific signal definitions for bsd-user + * + * Copyright (c) 2022 Gleb Popov + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, see . + */ + +#include "qemu.h" + +abi_long setup_sigframe_arch(CPUE2KState *env, abi_ulong frame_addr, + struct target_sigframe *frame, int flags) +{ + target_mcontext_t *mcp = &frame->sf_uc.uc_mcontext; + + get_mcontext(env, mcp, flags); + return 0; +}