mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
alpha-linux-user: Implement signals.
Move userland PALcode handling into linux-user main loop so that we can send signals from there. This also makes alpha_palcode.c system-level only, so don't build it for userland. Add defines for GENTRAP PALcall mapping to signals. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
f24518b502
commit
6049f4f831
9 changed files with 489 additions and 117 deletions
|
@ -472,8 +472,28 @@ int do_sigaction(int sig, const struct target_sigaction *act,
|
|||
|
||||
#endif
|
||||
|
||||
#if defined(TARGET_MIPS)
|
||||
#if defined(TARGET_ALPHA)
|
||||
struct target_old_sigaction {
|
||||
abi_ulong _sa_handler;
|
||||
abi_ulong sa_mask;
|
||||
abi_ulong sa_flags;
|
||||
};
|
||||
|
||||
struct target_rt_sigaction {
|
||||
abi_ulong _sa_handler;
|
||||
abi_ulong sa_flags;
|
||||
target_sigset_t sa_mask;
|
||||
};
|
||||
|
||||
/* This is the struct used inside the kernel. The ka_restorer
|
||||
field comes from the 5th argument to sys_rt_sigaction. */
|
||||
struct target_sigaction {
|
||||
abi_ulong _sa_handler;
|
||||
abi_ulong sa_flags;
|
||||
target_sigset_t sa_mask;
|
||||
abi_ulong sa_restorer;
|
||||
};
|
||||
#elif defined(TARGET_MIPS)
|
||||
struct target_sigaction {
|
||||
uint32_t sa_flags;
|
||||
#if defined(TARGET_ABI_MIPSN32)
|
||||
|
@ -483,7 +503,6 @@ struct target_sigaction {
|
|||
#endif
|
||||
target_sigset_t sa_mask;
|
||||
};
|
||||
|
||||
#else
|
||||
struct target_old_sigaction {
|
||||
abi_ulong _sa_handler;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue