sh: add freestanding bits

master
Ariadne Conill 2020-12-12 06:02:47 +00:00
parent 8d58adb3ba
commit 5c3ca5a7e1
1 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
#ifndef LIBUCONTEXT_BITS_H
#define LIBUCONTEXT_BITS_H
typedef unsigned long libucontext_greg_t, libucontext_gregset_t[16];
typedef unsigned long libucontext_freg_t, libucontext_fpregset_t[16];
typedef struct sigcontext {
unsigned long oldmask;
unsigned long gregs[16];
unsigned long pc, pr, sr;
unsigned long gbr, mach, macl;
unsigned long fpregs[16];
unsigned long xfpregs[16];
unsigned int fpscr, fpul, ownedfp;
} libucontext_mcontext_t;
typedef struct {
void *ss_sp;
int ss_flags;
size_t ss_size;
} libucontext_stack_t;
typedef struct libucontext_ucontext {
unsigned long uc_flags;
struct libucontext_ucontext *uc_link;
libucontext_stack_t uc_stack;
libucontext_mcontext_t uc_mcontext;
} libucontext_ucontext_t;
#endif