Changeset 8b65b574 in rtems for cpukit/score/cpu/mips/include


Ignore:
Timestamp:
Jul 28, 2021, 12:41:32 PM (6 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
2802896
Parents:
f799b452
git-author:
Sebastian Huber <sebastian.huber@…> (07/28/21 12:41:32)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/28/21 19:04:20)
Message:

score: Canonicalize _CPU_Fatal_halt()

Move _CPU_Fatal_halt() declaration to <rtems/score/cpuimpl.h> and make sure it
is a proper declaration of a function which does not return. Fix the type of
the error code. If necessary, add the implementation to cpu.c. Implementing
_CPU_Fatal_halt() as a function makes it possible to wrap this function for
example to fully test _Terminate().

Location:
cpukit/score/cpu/mips/include/rtems/score
Files:
2 edited

Legend:

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

    rf799b452 r8b65b574  
    711711/* end of Context handler macros */
    712712
    713 /* Fatal Error manager macros */
    714 
    715 /*
    716  *  This routine copies _error into a known place -- typically a stack
    717  *  location or a register, optionally disables interrupts, and
    718  *  halts/stops the CPU.
    719  */
    720 
    721 #define _CPU_Fatal_halt( _source, _error ) \
    722   do { \
    723     unsigned int _level; \
    724     _CPU_ISR_Disable(_level); \
    725     (void)_level; \
    726     loop: goto loop; \
    727   } while (0)
    728 
    729 
    730713extern void mips_break( int error );
    731714
  • cpukit/score/cpu/mips/include/rtems/score/cpuimpl.h

    rf799b452 r8b65b574  
    3636#endif
    3737
     38RTEMS_NO_RETURN void _CPU_Fatal_halt( uint32_t source, CPU_Uint32ptr error );
     39
    3840RTEMS_INLINE_ROUTINE void _CPU_Context_volatile_clobber( uintptr_t pattern )
    3941{
Note: See TracChangeset for help on using the changeset viewer.