arch:rv64:keep the stack to be 16bytes aligned.

Signed-off-by: hotislandn <hotislandn@hotmail.com>
This commit is contained in:
hotislandn 2021-03-17 22:42:55 +08:00 committed by Xiang Xiao
parent 27d5c9340a
commit f16a0a7380

View File

@ -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) */