]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
Refactor sigcontextinfo.h
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / sh / sigcontextinfo.h
index d09dbea21209886490f6a4db3434d6a1cf652aef..29d75b0cce5c5831cca095fd6060e9204a26bdb3 100644 (file)
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#define SIGCONTEXT int _a2, int _a3, int _a4, struct sigcontext
+#ifndef _SIGCONTEXTINFO_H
+#define _SIGCONTEXTINFO_H
 
-#define GET_PC(ctx)    ((void *) ctx.sc_pc)
+static inline uintptr_t
+sigcontext_get_pc (const ucontext_t *ctx)
+{
+  return ctx->uc_mcontext.pc;
+}
+
+#endif