bsd-user/signal-common.h: Move signal functions prototypes to here
Signed-off-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
0ef5998973
commit
2bd010c4bf
@ -21,6 +21,7 @@
|
|||||||
#define _TARGET_ARCH_CPU_H_
|
#define _TARGET_ARCH_CPU_H_
|
||||||
|
|
||||||
#include "target_arch.h"
|
#include "target_arch.h"
|
||||||
|
#include "signal-common.h"
|
||||||
|
|
||||||
#define TARGET_DEFAULT_CPU_MODEL "any"
|
#define TARGET_DEFAULT_CPU_MODEL "any"
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#define _TARGET_ARCH_CPU_H_
|
#define _TARGET_ARCH_CPU_H_
|
||||||
|
|
||||||
#include "target_arch.h"
|
#include "target_arch.h"
|
||||||
|
#include "signal-common.h"
|
||||||
|
|
||||||
#define TARGET_DEFAULT_CPU_MODEL "qemu32"
|
#define TARGET_DEFAULT_CPU_MODEL "qemu32"
|
||||||
|
|
||||||
|
@ -199,14 +199,6 @@ print_openbsd_syscall(int num,
|
|||||||
void print_openbsd_syscall_ret(int num, abi_long ret);
|
void print_openbsd_syscall_ret(int num, abi_long ret);
|
||||||
extern int do_strace;
|
extern int do_strace;
|
||||||
|
|
||||||
/* signal.c */
|
|
||||||
void process_pending_signals(CPUArchState *cpu_env);
|
|
||||||
void signal_init(void);
|
|
||||||
long do_sigreturn(CPUArchState *env);
|
|
||||||
long do_rt_sigreturn(CPUArchState *env);
|
|
||||||
void queue_signal(CPUArchState *env, int sig, target_siginfo_t *info);
|
|
||||||
abi_long do_sigaltstack(abi_ulong uss_addr, abi_ulong uoss_addr, abi_ulong sp);
|
|
||||||
|
|
||||||
/* mmap.c */
|
/* mmap.c */
|
||||||
int target_mprotect(abi_ulong start, abi_ulong len, int prot);
|
int target_mprotect(abi_ulong start, abi_ulong len, int prot);
|
||||||
abi_long target_mmap(abi_ulong start, abi_ulong len, int prot,
|
abi_long target_mmap(abi_ulong start, abi_ulong len, int prot,
|
||||||
|
@ -9,6 +9,12 @@
|
|||||||
#ifndef SIGNAL_COMMON_H
|
#ifndef SIGNAL_COMMON_H
|
||||||
#define SIGNAL_COMMON_H
|
#define SIGNAL_COMMON_H
|
||||||
|
|
||||||
|
long do_rt_sigreturn(CPUArchState *env);
|
||||||
|
abi_long do_sigaltstack(abi_ulong uss_addr, abi_ulong uoss_addr, abi_ulong sp);
|
||||||
|
long do_sigreturn(CPUArchState *env);
|
||||||
void force_sig_fault(int sig, int code, abi_ulong addr);
|
void force_sig_fault(int sig, int code, abi_ulong addr);
|
||||||
|
void process_pending_signals(CPUArchState *env);
|
||||||
|
void queue_signal(CPUArchState *env, int sig, target_siginfo_t *info);
|
||||||
|
void signal_init(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#define _TARGET_ARCH_CPU_H_
|
#define _TARGET_ARCH_CPU_H_
|
||||||
|
|
||||||
#include "target_arch.h"
|
#include "target_arch.h"
|
||||||
|
#include "signal-common.h"
|
||||||
|
|
||||||
#define TARGET_DEFAULT_CPU_MODEL "qemu64"
|
#define TARGET_DEFAULT_CPU_MODEL "qemu64"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user