Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1492604 > unrolled thread
| Started by | "Xuetao Guan" <gxt@mprc.pku.edu.cn> |
|---|---|
| First post | 2016-09-28 15:40 +0200 |
| Last post | 2016-09-28 15:40 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCHv2 3/4] unicore32-oldabi: add sigcontext.h support for UNICORE32_OLDABI "Xuetao Guan" <gxt@mprc.pku.edu.cn> - 2016-09-28 15:40 +0200
| From | "Xuetao Guan" <gxt@mprc.pku.edu.cn> |
|---|---|
| Date | 2016-09-28 15:40 +0200 |
| Subject | [PATCHv2 3/4] unicore32-oldabi: add sigcontext.h support for UNICORE32_OLDABI |
| Message-ID | <smnfz-7mO-13@gated-at.bofh.it> |
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
Signed-off-by: Qin Rui <qinrui@pku.edu.cn>
Tested-by: Guenter Roeck <linux@roeck-us.net>
---
arch/unicore32/include/uapi/asm/sigcontext.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/unicore32/include/uapi/asm/sigcontext.h
b/arch/unicore32/include/uapi/asm/sigcontext.h
index 6a2d767..cbc3446 100644
--- a/arch/unicore32/include/uapi/asm/sigcontext.h
+++ b/arch/unicore32/include/uapi/asm/sigcontext.h
@@ -18,6 +18,7 @@
* before the signal handler was invoked. Note: only add new entries *
to the end of the structure.
*/
+#ifndef CONFIG_UNICORE32_OLDABI
struct sigcontext {
unsigned long trap_no;
unsigned long error_code;
@@ -25,5 +26,18 @@ struct sigcontext {
unsigned long fault_address;
struct pt_regs regs;
};
+#else
+struct pt_regs_sigcontext {
+ unsigned long uregs[33];
+};
+
+struct sigcontext {
+ unsigned long trap_no;
+ unsigned long error_code;
+ unsigned long oldmask;
+ struct pt_regs_sigcontext regs;
+ unsigned long fault_address;
+};
+#endif /* CONFIG_UNICORE32_OLDABI */
#endif
--
1.9.1
Back to top | Article view | linux.kernel
csiph-web