|
|
8ae002 |
commit cfa4df95003c963c16d2102aef9c806f8175f373
|
|
|
8ae002 |
Author: Marcus Shawcroft <marcus.shawcroft@linaro.org>
|
|
|
8ae002 |
Date: Tue Sep 24 12:59:06 2013 +0100
|
|
|
8ae002 |
|
|
|
8ae002 |
[AArch64] Adding sigcontextinfo.h
|
|
|
8ae002 |
|
|
|
8ae002 |
diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h b/ports/sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h
|
|
|
8ae002 |
new file mode 100644
|
|
|
8ae002 |
index 0000000..42ff38e
|
|
|
8ae002 |
--- /dev/null
|
|
|
8ae002 |
+++ b/ports/sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h
|
|
|
8ae002 |
@@ -0,0 +1,35 @@
|
|
|
8ae002 |
+/* AArch64 definitions for signal handling calling conventions.
|
|
|
8ae002 |
+ Copyright (C) 1996-2013 Free Software Foundation, Inc.
|
|
|
8ae002 |
+ This file is part of the GNU C Library.
|
|
|
8ae002 |
+
|
|
|
8ae002 |
+ The GNU C Library is free software; you can redistribute it and/or
|
|
|
8ae002 |
+ modify it under the terms of the GNU Lesser General Public
|
|
|
8ae002 |
+ License as published by the Free Software Foundation; either
|
|
|
8ae002 |
+ version 2.1 of the License, or (at your option) any later version.
|
|
|
8ae002 |
+
|
|
|
8ae002 |
+ The GNU C Library is distributed in the hope that it will be useful,
|
|
|
8ae002 |
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
8ae002 |
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
8ae002 |
+ Lesser General Public License for more details.
|
|
|
8ae002 |
+
|
|
|
8ae002 |
+ You should have received a copy of the GNU Lesser General Public
|
|
|
8ae002 |
+ License along with the GNU C Library; if not, see
|
|
|
8ae002 |
+ <http://www.gnu.org/licenses/>. */
|
|
|
8ae002 |
+
|
|
|
8ae002 |
+#include <sys/ucontext.h>
|
|
|
8ae002 |
+#include "kernel-features.h"
|
|
|
8ae002 |
+
|
|
|
8ae002 |
+#define SIGCONTEXT siginfo_t *_si, struct ucontext *
|
|
|
8ae002 |
+#define GET_PC(ctx) ((void *) (ctx)->uc_mcontext.pc)
|
|
|
8ae002 |
+
|
|
|
8ae002 |
+/* There is no reliable way to get the sigcontext unless we use a
|
|
|
8ae002 |
+ three-argument signal handler. */
|
|
|
8ae002 |
+#define __sigaction(sig, act, oact) ({ \
|
|
|
8ae002 |
+ (act)->sa_flags |= SA_SIGINFO; \
|
|
|
8ae002 |
+ (__sigaction) (sig, act, oact); \
|
|
|
8ae002 |
+})
|
|
|
8ae002 |
+
|
|
|
8ae002 |
+#define sigaction(sig, act, oact) ({ \
|
|
|
8ae002 |
+ (act)->sa_flags |= SA_SIGINFO; \
|
|
|
8ae002 |
+ (sigaction) (sig, act, oact); \
|
|
|
8ae002 |
+})
|