summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/powerpc
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-08-10 11:35:33 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-08-22 14:19:00 +0200
commit5a9372ff7ead4a8d91d5acb7cb6f04df0cc41814 (patch)
treeac18c05cc565c96841a4ad99f4d99efb30af3a5f /cpukit/score/cpu/powerpc
parentpowerpc: ppc_interrupt_get_disable_mask() (diff)
downloadrtems-5a9372ff7ead4a8d91d5acb7cb6f04df0cc41814.tar.bz2
powerpc: 64-bit support for CPU_SIZEOF_POINTER
Update #3082.
Diffstat (limited to 'cpukit/score/cpu/powerpc')
-rw-r--r--cpukit/score/cpu/powerpc/rtems/score/cpu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
index 28f9a25eba..fbebbf643e 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