You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/03/18 02:50:45 UTC
[incubator-nuttx] branch master updated: arch:rv64:keep the stack
to be 16bytes aligned.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new f16a0a7 arch:rv64:keep the stack to be 16bytes aligned.
f16a0a7 is described below
commit f16a0a7380d64a01dc9cf4839f5b2d5e611f1f99
Author: hotislandn <ho...@hotmail.com>
AuthorDate: Wed Mar 17 22:42:55 2021 +0800
arch:rv64:keep the stack to be 16bytes aligned.
Signed-off-by: hotislandn <ho...@hotmail.com>
---
arch/risc-v/src/rv64gc/riscv_signal_handler.S | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/risc-v/src/rv64gc/riscv_signal_handler.S b/arch/risc-v/src/rv64gc/riscv_signal_handler.S
index 5317523..ac6ecd5 100644
--- a/arch/risc-v/src/rv64gc/riscv_signal_handler.S
+++ b/arch/risc-v/src/rv64gc/riscv_signal_handler.S
@@ -69,8 +69,8 @@ up_signal_handler:
/* Save ra on the stack */
- addi sp, sp, -8
- sd ra, (sp)
+ addi sp, sp, -16
+ sd ra, 8(sp)
/* Call the signal handler */
@@ -82,8 +82,8 @@ up_signal_handler:
/* Restore the register */
- ld ra, (sp) /* Restore ra in sp */
- addi sp, sp, 8
+ ld ra, 8(sp) /* Restore ra in sp */
+ addi sp, sp, 16
/* Execute the SYS_signal_handler_return SVCall (will not return) */