Skip to content

Commit

Permalink
Correct x86 rt_sigframe definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Keno committed Jul 9, 2022
1 parent 2bac544 commit 562ca4c
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/kernel_abi.h
Original file line number Diff line number Diff line change
Expand Up @@ -2056,7 +2056,7 @@ struct X64Arch : public BaseArch<SupportedArch::x86_64, WordSize64Defs> {
ptr<struct ucontext> uc_link;
stack_t uc_stack;
struct sigcontext uc_mcontext;
kernel_sigset_t uc_sigmask;
kernel_sigset_t uc_sigmask;
};

struct rt_sigframe {
Expand Down Expand Up @@ -2290,17 +2290,20 @@ struct X86Arch : public BaseArch<SupportedArch::x86, WordSize32Defs> {
RR_VERIFY_TYPE_ARCH(SupportedArch::x86, ::sigcontext, sigcontext);

struct ucontext {
unsigned int uc_flags;
unsigned int uc_link;
stack_t uc_stack;
struct sigcontext uc_mcontext;
kernel_sigset_t uc_sigmask;
unsigned_long uc_flags;
ptr<struct ucontext> uc_link;
stack_t uc_stack;
struct sigcontext uc_mcontext;
kernel_sigset_t uc_sigmask;
};

struct rt_sigframe {
ptr<char> pretcode;
struct ucontext uc;
int sig;
uint32_t pinfo;
uint32_t puc;
siginfo_t info;
struct ucontext uc;
// Extended ISA state follows
};

Expand Down

0 comments on commit 562ca4c

Please sign in to comment.