summaryrefslogtreecommitdiffstats
path: root/linux-user/x86_64
diff options
context:
space:
mode:
authorLaurent Vivier2018-04-24 21:26:31 +0200
committerLaurent Vivier2018-04-30 09:47:47 +0200
commita075f313c57f1d5f06aa344429747f98434f2962 (patch)
tree0d351c3cf89baf52d2c59aefba4ef150794796a0 /linux-user/x86_64
parentlinux-user: move xtensa signal.c parts to xtensa directory (diff)
downloadqemu-a075f313c57f1d5f06aa344429747f98434f2962.tar.gz
qemu-a075f313c57f1d5f06aa344429747f98434f2962.tar.xz
qemu-a075f313c57f1d5f06aa344429747f98434f2962.zip
linux-user: move i386/x86_64 signal.c parts to i386 directory
No code change, only move code from signal.c to i386/signal.c, except adding includes and exporting setup_frame() and setup_rt_frame(). x86_64/signal.c includes i386/signal.c Signed-off-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20180424192635.6027-17-laurent@vivier.eu>
Diffstat (limited to 'linux-user/x86_64')
-rw-r--r--linux-user/x86_64/signal.c2
-rw-r--r--linux-user/x86_64/target_signal.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/linux-user/x86_64/signal.c b/linux-user/x86_64/signal.c
index 02ca338b6c..a509a38045 100644
--- a/linux-user/x86_64/signal.c
+++ b/linux-user/x86_64/signal.c
@@ -16,3 +16,5 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#define I386_TARGET_SIGNAL_H /* to only include x86_64/target_signal.h */
+#include "../i386/signal.c"
diff --git a/linux-user/x86_64/target_signal.h b/linux-user/x86_64/target_signal.h
index 1e95f4a684..26f96944e5 100644
--- a/linux-user/x86_64/target_signal.h
+++ b/linux-user/x86_64/target_signal.h
@@ -26,4 +26,7 @@ static inline abi_ulong get_sp_from_cpustate(CPUX86State *state)
return state->regs[R_ESP];
}
+void setup_rt_frame(int sig, struct target_sigaction *ka,
+ target_siginfo_t *info,
+ target_sigset_t *set, CPUX86State *env);
#endif /* X86_64_TARGET_SIGNAL_H */