Skip to content

Commit 5abfac2

Browse files
committed
bsd-user/signal: Create a dummy signal queueing function
Create dummy signal queueing function so we can start to integrate other architectures (at the cost of signals remaining broken) to tame the dependency graph a bit and to bring in signals in a more controlled fashion. Log unimplemented events to it in the mean time. Signed-off-by: Warner Losh <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Reviewed-by: Kyle Evans <[email protected]>
1 parent 11c7b43 commit 5abfac2

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

bsd-user/qemu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#ifndef QEMU_H
1818
#define QEMU_H
1919

20-
2120
#include "qemu/osdep.h"
2221
#include "cpu.h"
2322
#include "qemu/units.h"
@@ -209,6 +208,7 @@ void process_pending_signals(CPUArchState *cpu_env);
209208
void signal_init(void);
210209
long do_sigreturn(CPUArchState *env);
211210
long do_rt_sigreturn(CPUArchState *env);
211+
void queue_signal(CPUArchState *env, int sig, target_siginfo_t *info);
212212
abi_long do_sigaltstack(abi_ulong uss_addr, abi_ulong uoss_addr, abi_ulong sp);
213213

214214
/* mmap.c */

bsd-user/signal.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,19 @@
1616
* You should have received a copy of the GNU General Public License
1717
* along with this program; if not, see <http://www.gnu.org/licenses/>.
1818
*/
19-
#include "qemu/osdep.h"
2019

20+
#include "qemu/osdep.h"
2121
#include "qemu.h"
2222

23+
/*
24+
* Queue a signal so that it will be send to the virtual CPU as soon as
25+
* possible.
26+
*/
27+
void queue_signal(CPUArchState *env, int sig, target_siginfo_t *info)
28+
{
29+
qemu_log_mask(LOG_UNIMP, "No signal queueing, dropping signal %d\n", sig);
30+
}
31+
2332
void signal_init(void)
2433
{
2534
}

0 commit comments

Comments
 (0)