Commit a8ae7b4e authored by Dmitry Safonov's avatar Dmitry Safonov Committed by Andrei Vagin

signal/x86-32: use packed for compat rt_sigaction

Otherwise compiler nicely align it for us on 24 bytes.
Signed-off-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 3f1ac58c
......@@ -50,7 +50,12 @@ typedef struct {
k_rtsigset_t rt_sa_mask;
} rt_sigaction_t;
typedef struct {
/*
* Note: there is unaligned access on x86_64 and it's fine.
* However, when porting this code -- keep in mind about possible issues
* with unaligned rt_sa_mask.
*/
typedef struct __attribute__((packed)) {
u32 rt_sa_handler;
u32 rt_sa_flags;
u32 rt_sa_restorer;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment