diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-08-11 10:44:04 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-08-22 16:27:03 +0200 |
commit | c693a3a5061b67ad63faf7ae76be98ea7eb5cda8 (patch) | |
tree | 8a5313689f94b37c1604b15c61ddb0b0083e0c8a /cpukit/score/cpu/powerpc | |
parent | bsp/qoriq: 64-bit MMU support (diff) | |
download | rtems-c693a3a5061b67ad63faf7ae76be98ea7eb5cda8.tar.bz2 |
powerpc: PPC64_NOP_FOR_LINKER_TOC_POINTER_RESTORE
In 64-bit mode, the linker must have the ability to restore the TOC
pointer after an external function call.
Update #3082.
Diffstat (limited to 'cpukit/score/cpu/powerpc')
-rw-r--r-- | cpukit/score/cpu/powerpc/rtems/asm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/score/cpu/powerpc/rtems/asm.h b/cpukit/score/cpu/powerpc/rtems/asm.h index 192a00687d..2fddf56e6d 100644 --- a/cpukit/score/cpu/powerpc/rtems/asm.h +++ b/cpukit/score/cpu/powerpc/rtems/asm.h @@ -301,5 +301,10 @@ SYM (x):; \ #error "PPC_ASM_TYPE is not properly defined" #endif +#if defined(__powerpc64__) +#define PPC64_NOP_FOR_LINKER_TOC_POINTER_RESTORE nop +#else +#define PPC64_NOP_FOR_LINKER_TOC_POINTER_RESTORE +#endif #endif |