[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 25/43] bsd-user: Add architecture specific signal tramp code
From: |
imp |
Subject: |
[PATCH v2 25/43] bsd-user: Add architecture specific signal tramp code |
Date: |
Thu, 26 Aug 2021 15:11:43 -0600 |
From: Warner Losh <imp@FreeBSD.org>
Add a stubbed out version of setup_sigtramp. This is not yet used for
x86, but is used for other architectures. This will be connected in
future commits.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
bsd-user/i386/target_arch_sigtramp.h | 29 ++++++++++++++++++++++++++
bsd-user/x86_64/target_arch_sigtramp.h | 29 ++++++++++++++++++++++++++
2 files changed, 58 insertions(+)
create mode 100644 bsd-user/i386/target_arch_sigtramp.h
create mode 100644 bsd-user/x86_64/target_arch_sigtramp.h
diff --git a/bsd-user/i386/target_arch_sigtramp.h
b/bsd-user/i386/target_arch_sigtramp.h
new file mode 100644
index 0000000000..889bff7a54
--- /dev/null
+++ b/bsd-user/i386/target_arch_sigtramp.h
@@ -0,0 +1,29 @@
+/*
+ * Intel i386 sigcode for bsd-user
+ *
+ * Copyright (c) 2013 Stacey D. Son
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _TARGET_ARCH_SIGTRAMP_H_
+#define _TARGET_ARCH_SIGTRAMP_H_
+
+static inline abi_long setup_sigtramp(abi_ulong offset, unsigned sigf_uc,
+ unsigned sys_sigreturn)
+{
+
+ return -TARGET_EOPNOTSUPP;
+}
+#endif /* _TARGET_ARCH_SIGTRAMP_H_ */
diff --git a/bsd-user/x86_64/target_arch_sigtramp.h
b/bsd-user/x86_64/target_arch_sigtramp.h
new file mode 100644
index 0000000000..5629263a19
--- /dev/null
+++ b/bsd-user/x86_64/target_arch_sigtramp.h
@@ -0,0 +1,29 @@
+/*
+ * Intel x86_64 sigcode for bsd-user
+ *
+ * Copyright (c) 2013 Stacey D. Son
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _TARGET_ARCH_SIGTRAMP_H_
+#define _TARGET_ARCH_SIGTRAMP_H_
+
+static inline abi_long setup_sigtramp(abi_ulong offset, unsigned sigf_uc,
+ unsigned sys_sigreturn)
+{
+
+ return -TARGET_EOPNOTSUPP;
+}
+#endif /* _TARGET_ARCH_SIGTRAMP_H_ */
--
2.32.0
- [PATCH v2 28/43] bsd-user: Add system independent stack, data and text limiting, (continued)
- [PATCH v2 28/43] bsd-user: Add system independent stack, data and text limiting, imp, 2021/08/26
- [PATCH v2 20/43] bsd-user: Move per-cpu code into target_arch_cpu.h, imp, 2021/08/26
- [PATCH v2 24/43] bsd-user: Create target specific vmparam.h, imp, 2021/08/26
- [PATCH v2 26/43] bsd-user: *BSD specific siginfo defintions, imp, 2021/08/26
- [PATCH v2 21/43] bsd-user: pull in target_arch_thread.h update target_arch_elf.h, imp, 2021/08/26
- [PATCH v2 32/43] bsd-user: Make cpu_model and cpu_type visible to all of main.c, imp, 2021/08/26
- [PATCH v2 33/43] bsd-user: update debugging in mmap.c, imp, 2021/08/26
- [PATCH v2 39/43] bsd-user: move qemu_log to later in the file, imp, 2021/08/26
- [PATCH v2 29/43] bsd-user: elf cleanup, imp, 2021/08/26
- [PATCH v2 31/43] bsd-user: Rewrite target system call definintion glue, imp, 2021/08/26
- [PATCH v2 25/43] bsd-user: Add architecture specific signal tramp code,
imp <=
- [PATCH v2 27/43] bsd-user: Move stack initializtion into a per-os file., imp, 2021/08/26
- [PATCH v2 34/43] bsd-user: Add target_arch_reg to describe a target's register set, imp, 2021/08/26
- [PATCH v2 30/43] bsd-user: Remove dead #ifdefs from elfload.c, imp, 2021/08/26
[PATCH v2 36/43] bsd-user: add stubbed out core dump support, imp, 2021/08/26
[PATCH v2 38/43] bsd-user: Refactor load_elf_sections and is_target_elf_binary, imp, 2021/08/26