x86: ia32_signal: remove unnecessary padding
Impact: reduce structure padding Remove unnecessary paddings, this saves 4 bytes. Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
4a61204856
commit
9cc3c49ed1
@@ -427,12 +427,10 @@ int ia32_setup_frame(int sig, struct k_sigaction *ka,
|
|||||||
u16 poplmovl;
|
u16 poplmovl;
|
||||||
u32 val;
|
u32 val;
|
||||||
u16 int80;
|
u16 int80;
|
||||||
u16 pad;
|
|
||||||
} __attribute__((packed)) code = {
|
} __attribute__((packed)) code = {
|
||||||
0xb858, /* popl %eax ; movl $...,%eax */
|
0xb858, /* popl %eax ; movl $...,%eax */
|
||||||
__NR_ia32_sigreturn,
|
__NR_ia32_sigreturn,
|
||||||
0x80cd, /* int $0x80 */
|
0x80cd, /* int $0x80 */
|
||||||
0,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
frame = get_sigframe(ka, regs, sizeof(*frame), &fpstate);
|
frame = get_sigframe(ka, regs, sizeof(*frame), &fpstate);
|
||||||
@@ -508,8 +506,7 @@ int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
|
|||||||
u8 movl;
|
u8 movl;
|
||||||
u32 val;
|
u32 val;
|
||||||
u16 int80;
|
u16 int80;
|
||||||
u16 pad;
|
u8 pad;
|
||||||
u8 pad2;
|
|
||||||
} __attribute__((packed)) code = {
|
} __attribute__((packed)) code = {
|
||||||
0xb8,
|
0xb8,
|
||||||
__NR_ia32_rt_sigreturn,
|
__NR_ia32_rt_sigreturn,
|
||||||
|
Reference in New Issue
Block a user