From 562ca4cafd0bb4cfcad3e86adcd301ff14c56299 Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Sat, 9 Jul 2022 09:22:15 +0000 Subject: [PATCH] Correct x86 rt_sigframe definition --- src/kernel_abi.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/kernel_abi.h b/src/kernel_abi.h index 3aa3180c5ac..5df30a875f3 100644 --- a/src/kernel_abi.h +++ b/src/kernel_abi.h @@ -2056,7 +2056,7 @@ struct X64Arch : public BaseArch { ptr uc_link; stack_t uc_stack; struct sigcontext uc_mcontext; - kernel_sigset_t uc_sigmask; + kernel_sigset_t uc_sigmask; }; struct rt_sigframe { @@ -2290,17 +2290,20 @@ struct X86Arch : public BaseArch { 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 uc_link; + stack_t uc_stack; + struct sigcontext uc_mcontext; + kernel_sigset_t uc_sigmask; }; struct rt_sigframe { ptr pretcode; - struct ucontext uc; + int sig; + uint32_t pinfo; + uint32_t puc; siginfo_t info; + struct ucontext uc; // Extended ISA state follows };