Changeset 42f2fdfd in rtems


Ignore:
Timestamp:
Jul 20, 2018, 5:56:43 AM (15 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
b74353e
Parents:
248ca7a
git-author:
Sebastian Huber <sebastian.huber@…> (07/20/18 05:56:43)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/20/18 07:11:05)
Message:

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.

Files:
39 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/arm/include/rtems/score/cpu.h

    r248ca7a r42f2fdfd  
    493493  #define _CPU_Start_multitasking _ARMV7M_Start_multitasking
    494494#endif
    495 
    496 void _CPU_Context_volatile_clobber( uintptr_t pattern );
    497 
    498 void _CPU_Context_validate( uintptr_t pattern );
    499495
    500496#ifdef RTEMS_SMP
  • cpukit/score/cpu/arm/include/rtems/score/cpuimpl.h

    r248ca7a r42f2fdfd  
    103103#endif /* ARM_MULTILIB_ARCH_V4 */
    104104
     105void _CPU_Context_volatile_clobber( uintptr_t pattern );
     106
     107void _CPU_Context_validate( uintptr_t pattern );
     108
    105109#ifdef __cplusplus
    106110}
  • cpukit/score/cpu/bfin/include/rtems/score/cpu.h

    r248ca7a r42f2fdfd  
    820820);
    821821
    822 static inline void _CPU_Context_volatile_clobber( uintptr_t pattern )
    823 {
    824   /* TODO */
    825 }
    826 
    827 static inline void _CPU_Context_validate( uintptr_t pattern )
    828 {
    829   while (1) {
    830     /* TODO */
    831   }
    832 }
    833 
    834822/** @} */
    835823
  • cpukit/score/cpu/bfin/include/rtems/score/cpuimpl.h

    r248ca7a r42f2fdfd  
    2626#endif
    2727
     28RTEMS_INLINE_ROUTINE void _CPU_Context_volatile_clobber( uintptr_t pattern )
     29{
     30  /* TODO */
     31}
     32
     33RTEMS_INLINE_ROUTINE void _CPU_Context_validate( uintptr_t pattern )
     34{
     35  while (1) {
     36    /* TODO */
     37  }
     38}
     39
    2840#ifdef __cplusplus
    2941}
  • cpukit/score/cpu/epiphany/include/rtems/score/cpu.h

    r248ca7a r42f2fdfd  
    755755  (((value&0xff) << 8) | ((value >> 8)&0xff))
    756756
    757 static inline void _CPU_Context_volatile_clobber( uintptr_t pattern )
    758 {
    759   /* TODO */
    760 }
    761 
    762 static inline void _CPU_Context_validate( uintptr_t pattern )
    763 {
    764   while (1) {
    765     /* TODO */
    766   }
    767 }
    768 
    769757typedef uint32_t CPU_Counter_ticks;
    770758
  • cpukit/score/cpu/epiphany/include/rtems/score/cpuimpl.h

    r248ca7a r42f2fdfd  
    2626#endif
    2727
     28RTEMS_INLINE_ROUTINE void _CPU_Context_volatile_clobber( uintptr_t pattern )
     29{
     30  /* TODO */
     31}
     32
     33RTEMS_INLINE_ROUTINE void _CPU_Context_validate( uintptr_t pattern )
     34{
     35  while (1) {
     36    /* TODO */
     37  }
     38}
     39
    2840#ifdef __cplusplus
    2941}
  • cpukit/score/cpu/i386/include/rtems/score/cpu.h

    r248ca7a r42f2fdfd  
    675675#endif
    676676
    677 static inline void _CPU_Context_volatile_clobber( uintptr_t pattern )
    678 {
    679   /* TODO */
    680 }
    681 
    682 static inline void _CPU_Context_validate( uintptr_t pattern )
    683 {
    684   while (1) {
    685     /* TODO */
    686   }
    687 }
    688 
    689677void _CPU_Exception_frame_print( const CPU_Exception_frame *frame );
    690678
  • cpukit/score/cpu/i386/include/rtems/score/cpuimpl.h

    r248ca7a r42f2fdfd  
    2626#endif
    2727
     28RTEMS_INLINE_ROUTINE void _CPU_Context_volatile_clobber( uintptr_t pattern )
     29{
     30  /* TODO */
     31}
     32
     33RTEMS_INLINE_ROUTINE void _CPU_Context_validate( uintptr_t pattern )
     34{
     35  while (1) {
     36    /* TODO */
     37  }
     38}
     39
    2840#ifdef __cplusplus
    2941}
  • cpukit/score/cpu/lm32/include/rtems/score/cpu.h

    r248ca7a r42f2fdfd  
    855855);
    856856
    857 static inline void _CPU_Context_volatile_clobber( uintptr_t pattern )
    858 {
    859   /* TODO */
    860 }
    861 
    862 static inline void _CPU_Context_validate( uintptr_t pattern )
    863 {
    864   while (1) {
    865     /* TODO */
    866   }
    867 }
    868 
    869857/** @} */
    870858
  • cpukit/score/cpu/lm32/include/rtems/score/cpuimpl.h

    r248ca7a r42f2fdfd  
    2626#endif
    2727
     28RTEMS_INLINE_ROUTINE void _CPU_Context_volatile_clobber( uintptr_t pattern )
     29{
     30  /* TODO */
     31}
     32
     33RTEMS_INLINE_ROUTINE void _CPU_Context_validate( uintptr_t pattern )
     34{
     35  while (1) {
     36    /* TODO */
     37  }
     38}
     39
    2840#ifdef __cplusplus
    2941}
  • cpukit/score/cpu/m32c/include/rtems/score/cpu.h

    r248ca7a r42f2fdfd  
    804804) RTEMS_NO_RETURN;
    805805
    806 static inline void _CPU_Context_volatile_clobber( uintptr_t pattern )
    807 {
    808   /* TODO */
    809 }
    810 
    811 static inline void _CPU_Context_validate( uintptr_t pattern )
    812 {
    813   while (1) {
    814     /* TODO */
    815   }
    816 }
    817 
    818806/* FIXME */
    819807typedef CPU_Interrupt_frame CPU_Exception_frame;
  • cpukit/score/cpu/m32c/include/rtems/score/cpuimpl.h

    r248ca7a r42f2fdfd  
    2626#endif
    2727
     28RTEMS_INLINE_ROUTINE void _CPU_Context_volatile_clobber( uintptr_t pattern )
     29{
     30  /* TODO */
     31}
     32
     33RTEMS_INLINE_ROUTINE void _CPU_Context_validate( uintptr_t pattern )
     34{
     35  while (1) {
     36    /* TODO */
     37  }
     38}
     39
    2840#ifdef __cplusplus
    2941}
  • cpukit/score/cpu/m68k/include/rtems/score/cpu.h

    r248ca7a r42f2fdfd  
    636636);
    637637
    638 static inline void _CPU_Context_volatile_clobber( uintptr_t pattern )
    639 {
    640   /* TODO */
    641 }
    642 
    643 static inline void _CPU_Context_validate( uintptr_t pattern )
    644 {
    645   while (1) {
    646     /* TODO */
    647   }
    648 }
    649 
    650638/**
    651639 *  This method prints the CPU exception frame.
  • cpukit/score/cpu/m68k/include/rtems/score/cpuimpl.h

    r248ca7a r42f2fdfd  
    2626#endif
    2727
     28RTEMS_INLINE_ROUTINE void _CPU_Context_volatile_clobber( uintptr_t pattern )
     29{
     30  /* TODO */
     31}
     32
     33RTEMS_INLINE_ROUTINE void _CPU_Context_validate( uintptr_t pattern )
     34{
     35  while (1) {
     36    /* TODO */
     37  }
     38}
     39
    2840#ifdef __cplusplus
    2941}
  • cpukit/score/cpu/mips/include/rtems/score/cpu.h

    r248ca7a r42f2fdfd  
    872872);
    873873
    874 static inline void _CPU_Context_volatile_clobber( uintptr_t pattern )
    875 {
    876   /* TODO */
    877 }
    878 
    879 static inline void _CPU_Context_validate( uintptr_t pattern )
    880 {
    881   while (1) {
    882     /* TODO */
    883   }
    884 }
    885 
    886874void _CPU_Exception_frame_print( const CPU_Exception_frame *frame );
    887875
  • cpukit/score/cpu/mips/include/rtems/score/cpuimpl.h

    r248ca7a r42f2fdfd  
    2626#endif
    2727
     28RTEMS_INLINE_ROUTINE void _CPU_Context_volatile_clobber( uintptr_t pattern )
     29{
     30  /* TODO */
     31}
     32
     33RTEMS_INLINE_ROUTINE void _CPU_Context_validate( uintptr_t pattern )
     34{
     35  while (1) {
     36    /* TODO */
     37  }
     38}
     39
    2840#ifdef __cplusplus
    2941}
  • cpukit/score/cpu/moxie/include/rtems/score/cpu.h

    r248ca7a r42f2fdfd  
    686686);
    687687
    688 static inline void _CPU_Context_volatile_clobber( uintptr_t pattern )
    689 {
    690   /* TODO */
    691 }
    692 
    693 static inline void _CPU_Context_validate( uintptr_t pattern )
    694 {
    695   while (1) {
    696     /* TODO */
    697   }
    698 }
    699 
    700688/**
    701689 * @brief The set of registers that specifies the complete processor state.
  • cpukit/score/cpu/moxie/include/rtems/score/cpuimpl.h

    r248ca7a r42f2fdfd  
    2626#endif
    2727
     28RTEMS_INLINE_ROUTINE void _CPU_Context_volatile_clobber( uintptr_t pattern )
     29{
     30  /* TODO */
     31}
     32
     33RTEMS_INLINE_ROUTINE void _CPU_Context_validate( uintptr_t pattern )
     34{
     35  while (1) {
     36    /* TODO */
     37  }
     38}
     39
    2840#ifdef __cplusplus
    2941}
  • cpukit/score/cpu/nios2/include/rtems/score/cpu.h

    r248ca7a r42f2fdfd  
    325325) RTEMS_NO_RETURN;
    326326
    327 void _CPU_Context_volatile_clobber( uintptr_t pattern );
    328 
    329 void _CPU_Context_validate( uintptr_t pattern );
    330 
    331327void _CPU_Exception_frame_print( const CPU_Exception_frame *frame );
    332328
  • cpukit/score/cpu/nios2/include/rtems/score/cpuimpl.h

    r248ca7a r42f2fdfd  
    2626#endif
    2727
     28void _CPU_Context_volatile_clobber( uintptr_t pattern );
     29
     30void _CPU_Context_validate( uintptr_t pattern );
     31
    2832#ifdef __cplusplus
    2933}
  • cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h

    r248ca7a r42f2fdfd  
    11461146
    11471147/**
    1148  * @ingroup CPUContext
    1149  *
    1150  * @brief Clobbers all volatile registers with values derived from the pattern
    1151  * parameter.
    1152  *
    1153  * This function is used only in test sptests/spcontext01.
    1154  *
    1155  * @param[in] pattern Pattern used to generate distinct register values.
    1156  *
    1157  * @see _CPU_Context_validate().
    1158  */
    1159 void _CPU_Context_volatile_clobber( uintptr_t pattern );
    1160 
    1161 /**
    1162  * @ingroup CPUContext
    1163  *
    1164  * @brief Initializes and validates the CPU context with values derived from
    1165  * the pattern parameter.
    1166  *
    1167  * This function will not return if the CPU context remains consistent.  In
    1168  * case this function returns the CPU port is broken.
    1169  *
    1170  * This function is used only in test sptests/spcontext01.
    1171  *
    1172  * @param[in] pattern Pattern used to generate distinct register values.
    1173  *
    1174  * @see _CPU_Context_volatile_clobber().
    1175  */
    1176 void _CPU_Context_validate( uintptr_t pattern );
    1177 
    1178 /**
    11791148 * @brief The set of registers that specifies the complete processor state.
    11801149 *
  • cpukit/score/cpu/no_cpu/include/rtems/score/cpuimpl.h

    r248ca7a r42f2fdfd  
    7474#define _CPU_Get_thread_executing() ( _CPU_Per_CPU_current->executing )
    7575
     76/**
     77 * @ingroup CPUContext
     78 *
     79 * @brief Clobbers all volatile registers with values derived from the pattern
     80 * parameter.
     81 *
     82 * This function is used only in test sptests/spcontext01.
     83 *
     84 * @param[in] pattern Pattern used to generate distinct register values.
     85 *
     86 * @see _CPU_Context_validate().
     87 */
     88void _CPU_Context_volatile_clobber( uintptr_t pattern );
     89
     90/**
     91 * @ingroup CPUContext
     92 *
     93 * @brief Initializes and validates the CPU context with values derived from
     94 * the pattern parameter.
     95 *
     96 * This function will not return if the CPU context remains consistent.  In
     97 * case this function returns the CPU port is broken.
     98 *
     99 * This function is used only in test sptests/spcontext01.
     100 *
     101 * @param[in] pattern Pattern used to generate distinct register values.
     102 *
     103 * @see _CPU_Context_volatile_clobber().
     104 */
     105void _CPU_Context_validate( uintptr_t pattern );
     106
    76107#ifdef __cplusplus
    77108}
  • cpukit/score/cpu/or1k/include/rtems/score/cpu.h

    r248ca7a r42f2fdfd  
    745745 */
    746746
    747 void _CPU_Context_volatile_clobber( uintptr_t pattern );
    748 
    749 void _CPU_Context_validate( uintptr_t pattern );
    750 
    751747static inline unsigned int CPU_swap_u32(
    752748  unsigned int value
  • cpukit/score/cpu/or1k/include/rtems/score/cpuimpl.h

    r248ca7a r42f2fdfd  
    2626#endif
    2727
     28void _CPU_Context_volatile_clobber( uintptr_t pattern );
     29
     30void _CPU_Context_validate( uintptr_t pattern );
     31
    2832#ifdef __cplusplus
    2933}
  • cpukit/score/cpu/powerpc/include/rtems/score/cpu.h

    r248ca7a r42f2fdfd  
    997997);
    998998
    999 void _CPU_Context_volatile_clobber( uintptr_t pattern );
    1000 
    1001 void _CPU_Context_validate( uintptr_t pattern );
    1002 
    1003999#ifdef RTEMS_SMP
    10041000  uint32_t _CPU_SMP_Initialize( void );
  • cpukit/score/cpu/powerpc/include/rtems/score/cpuimpl.h

    r248ca7a r42f2fdfd  
    239239#endif /* RTEMS_SMP */
    240240
     241void _CPU_Context_volatile_clobber( uintptr_t pattern );
     242
     243void _CPU_Context_validate( uintptr_t pattern );
     244
    241245#ifdef __cplusplus
    242246}
  • cpukit/score/cpu/riscv/include/rtems/score/cpu.h

    r248ca7a r42f2fdfd  
    359359  (((value&0xff) << 8) | ((value >> 8)&0xff))
    360360
    361 void _CPU_Context_volatile_clobber( uintptr_t pattern );
    362 
    363 void _CPU_Context_validate( uintptr_t pattern );
    364 
    365361typedef uint32_t CPU_Counter_ticks;
    366362
  • cpukit/score/cpu/riscv/include/rtems/score/cpuimpl.h

    r248ca7a r42f2fdfd  
    322322#endif /* RTEMS_SMP */
    323323
     324void _CPU_Context_volatile_clobber( uintptr_t pattern );
     325
     326void _CPU_Context_validate( uintptr_t pattern );
     327
    324328#ifdef __cplusplus
    325329}
  • cpukit/score/cpu/sh/include/rtems/score/cpu.h

    r248ca7a r42f2fdfd  
    662662);
    663663
    664 static inline void _CPU_Context_volatile_clobber( uintptr_t pattern )
    665 {
    666   /* TODO */
    667 }
    668 
    669 static inline void _CPU_Context_validate( uintptr_t pattern )
    670 {
    671   while (1) {
    672     /* TODO */
    673   }
    674 }
    675 
    676664/* FIXME */
    677665typedef CPU_Interrupt_frame CPU_Exception_frame;
  • cpukit/score/cpu/sh/include/rtems/score/cpuimpl.h

    r248ca7a r42f2fdfd  
    2626#endif
    2727
     28RTEMS_INLINE_ROUTINE void _CPU_Context_volatile_clobber( uintptr_t pattern )
     29{
     30  /* TODO */
     31}
     32
     33RTEMS_INLINE_ROUTINE void _CPU_Context_validate( uintptr_t pattern )
     34{
     35  while (1) {
     36    /* TODO */
     37  }
     38}
     39
    2840#ifdef __cplusplus
    2941}
  • cpukit/score/cpu/sparc/include/rtems/score/cpu.h

    r248ca7a r42f2fdfd  
    10691069#endif
    10701070
    1071 void _CPU_Context_volatile_clobber( uintptr_t pattern );
    1072 
    1073 void _CPU_Context_validate( uintptr_t pattern );
    1074 
    10751071typedef struct {
    10761072  uint32_t trap;
  • cpukit/score/cpu/sparc/include/rtems/score/cpuimpl.h

    r248ca7a r42f2fdfd  
    147147#define _CPU_Get_thread_executing() ( _SPARC_Per_CPU_current->executing )
    148148
     149void _CPU_Context_volatile_clobber( uintptr_t pattern );
     150
     151void _CPU_Context_validate( uintptr_t pattern );
     152
    149153#ifdef __cplusplus
    150154}
  • cpukit/score/cpu/sparc64/include/rtems/score/cpu.h

    r248ca7a r42f2fdfd  
    947947);
    948948
    949 static inline void _CPU_Context_volatile_clobber( uintptr_t pattern )
    950 {
    951   /* TODO */
    952 }
    953 
    954 static inline void _CPU_Context_validate( uintptr_t pattern )
    955 {
    956   while (1) {
    957     /* TODO */
    958   }
    959 }
    960 
    961949/* FIXME */
    962950typedef CPU_Interrupt_frame CPU_Exception_frame;
  • cpukit/score/cpu/sparc64/include/rtems/score/cpuimpl.h

    r248ca7a r42f2fdfd  
    2626#endif
    2727
     28RTEMS_INLINE_ROUTINE void _CPU_Context_volatile_clobber( uintptr_t pattern )
     29{
     30  /* TODO */
     31}
     32
     33RTEMS_INLINE_ROUTINE void _CPU_Context_validate( uintptr_t pattern )
     34{
     35  while (1) {
     36    /* TODO */
     37  }
     38}
     39
    2840#ifdef __cplusplus
    2941}
  • cpukit/score/cpu/v850/include/rtems/score/cpu.h

    r248ca7a r42f2fdfd  
    760760#endif
    761761
    762 static inline void _CPU_Context_volatile_clobber( uintptr_t pattern )
    763 {
    764   /* TODO */
    765 }
    766 
    767 static inline void _CPU_Context_validate( uintptr_t pattern )
    768 {
    769   while (1) {
    770     /* TODO */
    771   }
    772 }
    773 
    774762/** @} */
    775763
  • cpukit/score/cpu/v850/include/rtems/score/cpuimpl.h

    r248ca7a r42f2fdfd  
    2626#endif
    2727
     28RTEMS_INLINE_ROUTINE void _CPU_Context_volatile_clobber( uintptr_t pattern )
     29{
     30  /* TODO */
     31}
     32
     33RTEMS_INLINE_ROUTINE void _CPU_Context_validate( uintptr_t pattern )
     34{
     35  while (1) {
     36    /* TODO */
     37  }
     38}
     39
    2840#ifdef __cplusplus
    2941}
  • cpukit/score/cpu/x86_64/include/rtems/score/cpu.h

    r248ca7a r42f2fdfd  
    250250);
    251251
    252 static inline void _CPU_Context_volatile_clobber( uintptr_t pattern );
    253 
    254 static inline void _CPU_Context_validate( uintptr_t pattern );
    255 
    256 static inline void _CPU_Context_volatile_clobber( uintptr_t pattern )
    257 {
    258   /* TODO */
    259 }
    260 
    261 static inline void _CPU_Context_validate( uintptr_t pattern )
    262 {
    263   while (1) {
    264     /* TODO */
    265   }
    266 }
    267 
    268252typedef struct {
    269253  uint32_t processor_state_register;
  • cpukit/score/cpu/x86_64/include/rtems/score/cpuimpl.h

    r248ca7a r42f2fdfd  
    4343}
    4444
     45RTEMS_INLINE_ROUTINE void _CPU_Context_volatile_clobber( uintptr_t pattern )
     46{
     47  /* TODO */
     48}
     49
     50RTEMS_INLINE_ROUTINE void _CPU_Context_validate( uintptr_t pattern )
     51{
     52  while (1) {
     53    /* TODO */
     54  }
     55}
     56
    4557#ifdef __cplusplus
    4658}
  • testsuites/sptests/spcontext01/init.c

    r248ca7a r42f2fdfd  
    1717#endif
    1818
    19 #include "tmacros.h"
     19#include <rtems/score/cpuimpl.h>
     20
     21#include <tmacros.h>
    2022
    2123const char rtems_test_name[] = "SPCONTEXT 1";
Note: See TracChangeset for help on using the changeset viewer.