aboutsummaryrefslogtreecommitdiff
path: root/linux-user/riscv/signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux-user/riscv/signal.c')
-rw-r--r--linux-user/riscv/signal.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/linux-user/riscv/signal.c b/linux-user/riscv/signal.c
index 296e39fbf0..eaa168199a 100644
--- a/linux-user/riscv/signal.c
+++ b/linux-user/riscv/signal.c
@@ -64,9 +64,7 @@ static abi_ulong get_sigframe(struct target_sigaction *ka,
/* This is the X/Open sanctioned signal stack switching. */
sp = target_sigsp(sp, ka) - framesize;
-
- /* XXX: kernel aligns with 0xf ? */
- sp &= ~3UL; /* align sp on 4-byte boundary */
+ sp &= ~0xf;
return sp;
}