]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/metag/bits/sigcontextinfo.h
update
[l4.git] / l4 / pkg / uclibc / lib / contrib / uclibc / libc / sysdeps / linux / metag / bits / sigcontextinfo.h
1 /*
2  * Copyright (C) 2013, Imagination Technologies Ltd.
3  *
4  * Licensed under LGPL v2.1 or later, see the file COPYING.LIB in this tarball.
5  *
6  */
7
8 #define SIGCONTEXT struct sigcontext
9 #define SIGCONTEXT_EXTRA_ARGS
10 #define GET_PC(ctx)     ((void *) ctx.cbuf.ctx.CurrPC)
11 #define GET_FRAME(ctx)  ((void *) ctx.cbuf.ctx.AX[1].U0)
12 #define GET_STACK(ctx)  ((void *) ctx.cbuf.ctx.AX[0].U0)
13 #define CALL_SIGHANDLER(handler, signo, ctx) \
14   (handler)((signo), SIGCONTEXT_EXTRA_ARGS (ctx))