diff options
Diffstat (limited to 'sys/riscv')
| -rw-r--r-- | sys/riscv/include/param.h | 1 | ||||
| -rw-r--r-- | sys/riscv/riscv/exec_machdep.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/sys/riscv/include/param.h b/sys/riscv/include/param.h index 471d8b354b82..e1cf50df7d14 100644 --- a/sys/riscv/include/param.h +++ b/sys/riscv/include/param.h @@ -37,7 +37,6 @@ #include <sys/_align.h> #define STACKALIGNBYTES (16 - 1) -#define STACKALIGN(p) ((uint64_t)(p) & ~STACKALIGNBYTES) #ifndef MACHINE #define MACHINE "riscv" diff --git a/sys/riscv/riscv/exec_machdep.c b/sys/riscv/riscv/exec_machdep.c index b1f96b1426a7..4e0d1f2a7e5c 100644 --- a/sys/riscv/riscv/exec_machdep.c +++ b/sys/riscv/riscv/exec_machdep.c @@ -370,7 +370,7 @@ sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask) /* Make room, keeping the stack aligned */ fp--; - fp = (struct sigframe *)STACKALIGN(fp); + fp = STACKALIGN(fp); /* Fill in the frame to copy out */ bzero(&frame, sizeof(frame)); |
