diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-20 08:06:46 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-20 09:11:05 +0200 |
commit | b74353ef9cadda401f7637beeb56f7f8a2092a43 (patch) | |
tree | 788976e302cbeb4774faa0fd819352bd18c56fdc /cpukit/score/cpu/no_cpu/include | |
parent | score: Move context validation declarations (diff) | |
download | rtems-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/no_cpu/include')
-rw-r--r-- | cpukit/score/cpu/no_cpu/include/rtems/score/cpuimpl.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpukit/score/cpu/no_cpu/include/rtems/score/cpuimpl.h b/cpukit/score/cpu/no_cpu/include/rtems/score/cpuimpl.h index 1e970cb11d..c13180a06d 100644 --- a/cpukit/score/cpu/no_cpu/include/rtems/score/cpuimpl.h +++ b/cpukit/score/cpu/no_cpu/include/rtems/score/cpuimpl.h @@ -104,6 +104,16 @@ void _CPU_Context_volatile_clobber( uintptr_t pattern ); */ void _CPU_Context_validate( uintptr_t pattern ); +/** + * @brief Emits a no operation instruction (nop). + * + * This function is used only in test sptests/spcache01. + */ +RTEMS_INLINE_ROUTINE void _CPU_Instruction_no_operation( void ) +{ + __asm__ volatile ( "nop" ); +} + #ifdef __cplusplus } #endif |