summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/mips
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-20 08:06:46 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-20 09:11:05 +0200
commitb74353ef9cadda401f7637beeb56f7f8a2092a43 (patch)
tree788976e302cbeb4774faa0fd819352bd18c56fdc /cpukit/score/cpu/mips
parent42f2fdfd4e18a783e8be4f26f83ce86c7a1fedb0 (diff)
downloadrtems-b74353ef9cadda401f7637beeb56f7f8a2092a43.tar.bz2
score: Add _CPU_Instruction_no_operation()
This helps to reduce the use of architecture-specific defines throughout the code base.
Diffstat (limited to 'cpukit/score/cpu/mips')
-rw-r--r--cpukit/score/cpu/mips/include/rtems/score/cpuimpl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/score/cpu/mips/include/rtems/score/cpuimpl.h b/cpukit/score/cpu/mips/include/rtems/score/cpuimpl.h
index ee188bebce..5d8bd77161 100644
--- a/cpukit/score/cpu/mips/include/rtems/score/cpuimpl.h
+++ b/cpukit/score/cpu/mips/include/rtems/score/cpuimpl.h
@@ -37,6 +37,11 @@ RTEMS_INLINE_ROUTINE void _CPU_Context_validate( uintptr_t pattern )
}
}
+RTEMS_INLINE_ROUTINE void _CPU_Instruction_no_operation( void )
+{
+ __asm__ volatile ( "nop" );
+}
+
#ifdef __cplusplus
}
#endif