mirror of https://gitee.com/openkylin/qemu.git
linux-user: arm: fix coding style for some linux-user signal functions
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
eab713941a
commit
a0e1e6d705
|
@ -1570,8 +1570,9 @@ get_sigframe(struct target_sigaction *ka, CPUARMState *regs, int framesize)
|
|||
/*
|
||||
* This is the X/Open sanctioned signal stack switching.
|
||||
*/
|
||||
if ((ka->sa_flags & TARGET_SA_ONSTACK) && !sas_ss_flags(sp))
|
||||
if ((ka->sa_flags & TARGET_SA_ONSTACK) && !sas_ss_flags(sp)) {
|
||||
sp = target_sigaltstack_used.ss_sp + target_sigaltstack_used.ss_size;
|
||||
}
|
||||
/*
|
||||
* ATPCS B01 mandates 8-byte alignment
|
||||
*/
|
||||
|
@ -1599,8 +1600,9 @@ setup_return(CPUARMState *env, struct target_sigaction *ka,
|
|||
} else {
|
||||
unsigned int idx = thumb;
|
||||
|
||||
if (ka->sa_flags & TARGET_SA_SIGINFO)
|
||||
if (ka->sa_flags & TARGET_SA_SIGINFO) {
|
||||
idx += 2;
|
||||
}
|
||||
|
||||
__put_user(retcodes[idx], rc);
|
||||
|
||||
|
|
Loading…
Reference in New Issue