[rtems commit] powerpc: Fix _CPU_Instruction_illegal()

Sebastian Huber sebh at rtems.org
Wed Jul 25 08:09:08 UTC 2018


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Jul 25 09:54:56 2018 +0200

powerpc: Fix _CPU_Instruction_illegal()

Apparently the .word assembler directive is not the right thing on this
target.

---

 cpukit/score/cpu/powerpc/include/rtems/score/cpuimpl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/score/cpu/powerpc/include/rtems/score/cpuimpl.h b/cpukit/score/cpu/powerpc/include/rtems/score/cpuimpl.h
index e46d9bf..4a2f5ad 100644
--- a/cpukit/score/cpu/powerpc/include/rtems/score/cpuimpl.h
+++ b/cpukit/score/cpu/powerpc/include/rtems/score/cpuimpl.h
@@ -244,7 +244,7 @@ void _CPU_Context_validate( uintptr_t pattern );
 
 RTEMS_INLINE_ROUTINE void _CPU_Instruction_illegal( void )
 {
-  __asm__ volatile ( ".word 0" );
+  __asm__ volatile ( ".long 0" );
 }
 
 RTEMS_INLINE_ROUTINE void _CPU_Instruction_no_operation( void )




More information about the vc mailing list