From c693a3a5061b67ad63faf7ae76be98ea7eb5cda8 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 11 Aug 2017 10:44:04 +0200 Subject: 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. --- cpukit/score/cpu/powerpc/rtems/asm.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cpukit/score/cpu/powerpc') 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 -- cgit v1.2.3