lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <e5292e02c8bc713e2ec0e41103d16e660f411d30.1410502415.git.gxt@mprc.pku.edu.cn>
Date:	Fri, 12 Sep 2014 14:41:45 +0800
From:	gxt@...c.pku.edu.cn
To:	linux-kernel@...r.kernel.org
Cc:	gxt@....edu.cn, linux@...ck-us.net, gang.chen.5i5j@...il.com,
	Guan Xuetao <gxt@...c.pku.edu.cn>, Qin Rui <qinrui@....edu.cn>
Subject: [PATCH 3/4] unicore32-oldabi: add sigcontext.h support for UNICORE32_OLDABI

From: Guan Xuetao <gxt@...c.pku.edu.cn>

Signed-off-by: Guan Xuetao <gxt@...c.pku.edu.cn>
Signed-off-by: Qin Rui <qinrui@....edu.cn>
---
 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
-- 
2.0.0.GIT

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ