[rtems commit] score/aarch64: Size saved SP register for ABI

Joel Sherrill joel at rtems.org
Fri Nov 13 18:31:49 UTC 2020


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

Author:    Kinsey Moore <kinsey.moore at oarcorp.com>
Date:      Thu Oct 22 12:58:44 2020 -0500

score/aarch64: Size saved SP register for ABI

This ensures that the saved SP register is sized appropriately depending
on the chosen ABI and prevents a warning in the libmisc stack checker.

---

 cpukit/score/cpu/aarch64/include/rtems/score/cpu.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/cpukit/score/cpu/aarch64/include/rtems/score/cpu.h b/cpukit/score/cpu/aarch64/include/rtems/score/cpu.h
index dc94e59..d86543b 100644
--- a/cpukit/score/cpu/aarch64/include/rtems/score/cpu.h
+++ b/cpukit/score/cpu/aarch64/include/rtems/score/cpu.h
@@ -488,7 +488,10 @@ typedef struct {
 #ifdef AARCH64_MULTILIB_ARCH_V8_ILP32
   uint32_t _register_lr_top;
 #endif
-  uint64_t register_sp;
+  uintptr_t register_sp;
+#ifdef AARCH64_MULTILIB_ARCH_V8_ILP32
+  uint32_t _register_sp_top;
+#endif
   void *register_pc;
 #ifdef AARCH64_MULTILIB_ARCH_V8_ILP32
   uint32_t _register_pc_top;



More information about the vc mailing list