summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/x86_64
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-20 07:56:43 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-20 09:11:05 +0200
commit42f2fdfd4e18a783e8be4f26f83ce86c7a1fedb0 (patch)
tree7712dfa1591715b0bff54b06e949512b8c636d68 /cpukit/score/cpu/x86_64
parentscore: Remove obsolete CPU port defines (diff)
downloadrtems-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/x86_64')
-rw-r--r--cpukit/score/cpu/x86_64/include/rtems/score/cpu.h16
-rw-r--r--cpukit/score/cpu/x86_64/include/rtems/score/cpuimpl.h12
2 files changed, 12 insertions, 16 deletions
diff --git a/cpukit/score/cpu/x86_64/include/rtems/score/cpu.h b/cpukit/score/cpu/x86_64/include/rtems/score/cpu.h
index 012ef5069b..a0f690fc47 100644
--- a/cpukit/score/cpu/x86_64/include/rtems/score/cpu.h
+++ b/cpukit/score/cpu/x86_64/include/rtems/score/cpu.h
@@ -249,22 +249,6 @@ void _CPU_Context_restore_fp(
Context_Control_fp **fp_context_ptr
);
-static inline void _CPU_Context_volatile_clobber( uintptr_t pattern );
-
-static inline void _CPU_Context_validate( uintptr_t pattern );
-
-static inline void _CPU_Context_volatile_clobber( uintptr_t pattern )
-{
- /* TODO */
-}
-
-static inline void _CPU_Context_validate( uintptr_t pattern )
-{
- while (1) {
- /* TODO */
- }
-}
-
typedef struct {
uint32_t processor_state_register;
uint32_t integer_registers [1];
diff --git a/cpukit/score/cpu/x86_64/include/rtems/score/cpuimpl.h b/cpukit/score/cpu/x86_64/include/rtems/score/cpuimpl.h
index 67fe712a32..a16a3d040b 100644
--- a/cpukit/score/cpu/x86_64/include/rtems/score/cpuimpl.h
+++ b/cpukit/score/cpu/x86_64/include/rtems/score/cpuimpl.h
@@ -42,6 +42,18 @@ static inline void outport_byte(uint16_t port, uint8_t val)
__asm__ volatile ( "outb %0, %1" : : "a" (val), "Nd" (port) );
}
+RTEMS_INLINE_ROUTINE void _CPU_Context_volatile_clobber( uintptr_t pattern )
+{
+ /* TODO */
+}
+
+RTEMS_INLINE_ROUTINE void _CPU_Context_validate( uintptr_t pattern )
+{
+ while (1) {
+ /* TODO */
+ }
+}
+
#ifdef __cplusplus
}
#endif