diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-20 07:56:43 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-20 09:11:05 +0200 |
commit | 42f2fdfd4e18a783e8be4f26f83ce86c7a1fedb0 (patch) | |
tree | 7712dfa1591715b0bff54b06e949512b8c636d68 /cpukit/score/cpu/riscv | |
parent | score: Remove obsolete CPU port defines (diff) | |
download | rtems-42f2fdfd4e18a783e8be4f26f83ce86c7a1fedb0.tar.bz2 |
score: Move context validation declarations
The context validation support functions _CPU_Context_validate() and
_CPU_Context_volatile_clobber() are used only by one test program
(spcontext01). Move the function declarations to the CPU port
implementation header file.
Diffstat (limited to 'cpukit/score/cpu/riscv')
-rw-r--r-- | cpukit/score/cpu/riscv/include/rtems/score/cpu.h | 4 | ||||
-rw-r--r-- | cpukit/score/cpu/riscv/include/rtems/score/cpuimpl.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/score/cpu/riscv/include/rtems/score/cpu.h b/cpukit/score/cpu/riscv/include/rtems/score/cpu.h index ab13cb679b..28760f33f6 100644 --- a/cpukit/score/cpu/riscv/include/rtems/score/cpu.h +++ b/cpukit/score/cpu/riscv/include/rtems/score/cpu.h @@ -358,10 +358,6 @@ static inline uint32_t CPU_swap_u32( #define CPU_swap_u16( value ) \ (((value&0xff) << 8) | ((value >> 8)&0xff)) -void _CPU_Context_volatile_clobber( uintptr_t pattern ); - -void _CPU_Context_validate( uintptr_t pattern ); - typedef uint32_t CPU_Counter_ticks; uint32_t _CPU_Counter_frequency( void ); diff --git a/cpukit/score/cpu/riscv/include/rtems/score/cpuimpl.h b/cpukit/score/cpu/riscv/include/rtems/score/cpuimpl.h index 54c5cf1b79..3c2e0d9c12 100644 --- a/cpukit/score/cpu/riscv/include/rtems/score/cpuimpl.h +++ b/cpukit/score/cpu/riscv/include/rtems/score/cpuimpl.h @@ -321,6 +321,10 @@ static inline struct Per_CPU_Control *_RISCV_Get_current_per_CPU_control( void ) #endif /* RTEMS_SMP */ +void _CPU_Context_volatile_clobber( uintptr_t pattern ); + +void _CPU_Context_validate( uintptr_t pattern ); + #ifdef __cplusplus } #endif |