|
Packit |
6c4009 |
#include <inttypes.h>
|
|
Packit |
6c4009 |
#include <signal.h>
|
|
Packit |
6c4009 |
#include <stddef.h>
|
|
Packit |
6c4009 |
#include <sys/ucontext.h>
|
|
Packit |
6c4009 |
#include <asm/sigcontext.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include "kernel_rt_sigframe.h"
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
SIG_BLOCK
|
|
Packit |
6c4009 |
SIG_SETMASK
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
_NSIG8 (_NSIG / 8)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
-- Offsets of the fields in the kernel rt_sigframe_t structure.
|
|
Packit |
6c4009 |
#define rt_sigframe(member) offsetof (struct kernel_rt_sigframe, member)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
RT_SIGFRAME_UCONTEXT rt_sigframe (uc)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
RT_SIGFRAME_SIZE sizeof (struct kernel_rt_sigframe)
|
|
Packit |
6c4009 |
FPSIMD_CONTEXT_SIZE sizeof (struct fpsimd_context)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#define ucontext(member) offsetof (ucontext_t, member)
|
|
Packit |
6c4009 |
#define stack(member) ucontext (uc_stack.member)
|
|
Packit |
6c4009 |
#define mcontext(member) ucontext (uc_mcontext.member)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
UCONTEXT_FLAGS ucontext (uc_flags)
|
|
Packit |
6c4009 |
UCONTEXT_LINK ucontext (uc_link)
|
|
Packit |
6c4009 |
UCONTEXT_STACK ucontext (uc_stack)
|
|
Packit |
6c4009 |
UCONTEXT_MCONTEXT ucontext (uc_mcontext)
|
|
Packit |
6c4009 |
UCONTEXT_SIGMASK ucontext (uc_sigmask)
|
|
Packit |
6c4009 |
UCONTEXT_SIZE sizeof (ucontext_t)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
STACK_SP stack (ss_sp)
|
|
Packit |
6c4009 |
STACK_SIZE stack (ss_size)
|
|
Packit |
6c4009 |
STACK_FLAGS stack (ss_flags)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
oX0 mcontext (regs)
|
|
Packit |
6c4009 |
oSP mcontext (sp)
|
|
Packit |
6c4009 |
oPC mcontext (pc)
|
|
Packit |
6c4009 |
oPSTATE mcontext (pstate)
|
|
Packit |
6c4009 |
oEXTENSION mcontext (__reserved)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#define fpsimd_context(member) offsetof (struct fpsimd_context, member)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
oHEAD fpsimd_context (head)
|
|
Packit |
6c4009 |
oV0 fpsimd_context (vregs)
|
|
Packit |
6c4009 |
oFPSR fpsimd_context (fpsr)
|
|
Packit |
6c4009 |
oFPCR fpsimd_context (fpcr)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#define aarch64_ctx(member) offsetof (struct _aarch64_ctx, member)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
oMAGIC aarch64_ctx (magic)
|
|
Packit |
6c4009 |
oSIZE aarch64_ctx (size)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
FPSIMD_MAGIC
|