[rtems commit] powerpc: 64-bit support for CPU_SIZEOF_POINTER

Sebastian Huber sebh at rtems.org
Tue Aug 22 14:52:39 UTC 2017


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Aug 10 11:35:33 2017 +0200

powerpc: 64-bit support for CPU_SIZEOF_POINTER

Update #3082.

---

 cpukit/score/cpu/powerpc/rtems/score/cpu.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
index 28f9a25..fbebbf6 100644
--- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h
+++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
@@ -679,7 +679,11 @@ void _BSP_Fatal_error(unsigned int);
 
 #define CPU_STACK_MINIMUM_SIZE          (1024*8)
 
+#if defined(__powerpc64__)
+#define CPU_SIZEOF_POINTER 8
+#else
 #define CPU_SIZEOF_POINTER 4
+#endif
 
 /*
  *  CPU's worst alignment requirement for data types on a byte boundary.  This




More information about the vc mailing list