[rtems commit] riscv: Remove x8 initialization

Sebastian Huber sebh at rtems.org
Fri Jun 29 09:59:28 UTC 2018


Module:    rtems
Branch:    master
Commit:    2987c4f27a2005fc8161e41df1c386da68a2afe3
Changeset: http://git.rtems.org/rtems/commit/?id=2987c4f27a2005fc8161e41df1c386da68a2afe3

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Jun 27 08:43:25 2018 +0200

riscv: Remove x8 initialization

The RISC-V psABI

https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md

does not mention that this is a frame pointer.

Update #3433.

---

 cpukit/score/cpu/riscv/riscv-context-initialize.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/cpukit/score/cpu/riscv/riscv-context-initialize.c b/cpukit/score/cpu/riscv/riscv-context-initialize.c
index 609c683..7baf066 100644
--- a/cpukit/score/cpu/riscv/riscv-context-initialize.c
+++ b/cpukit/score/cpu/riscv/riscv-context-initialize.c
@@ -55,8 +55,6 @@ void _CPU_Context_Initialize(
   /* Stack Pointer - sp/x2 */
   context->x[2] = (uintptr_t) stack;
 
-  /* Frame Pointer - fp/x8 */
-  context->x[8] = stack_high;
   /* Return Address - ra/x1 */
   context->x[1] = (uintptr_t) entry_point;
 




More information about the vc mailing list