Changeset bc6ffc3 in rtems


Ignore:
Timestamp:
Feb 24, 2021, 12:25:46 PM (3 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
7480c34
Parents:
fb17af2
git-author:
Sebastian Huber <sebastian.huber@…> (02/24/21 12:25:46)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/26/21 08:10:09)
Message:

Add system initialization step for target hash

Update #4267.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/sysinit.h

    rfb17af2 rbc6ffc3  
    4040#define RTEMS_SYSINIT_BSP_START                  000300
    4141#define RTEMS_SYSINIT_CPU_COUNTER                000400
     42#define RTEMS_SYSINIT_TARGET_HASH                000480
    4243#define RTEMS_SYSINIT_INITIAL_EXTENSIONS         000500
    4344#define RTEMS_SYSINIT_MP_EARLY                   000600
  • cpukit/sapi/src/sysinitverbose.c

    rfb17af2 rbc6ffc3  
    6767SYSINIT_VERBOSE( BSP_START );
    6868SYSINIT_VERBOSE( CPU_COUNTER );
     69SYSINIT_VERBOSE( TARGET_HASH );
    6970SYSINIT_VERBOSE( INITIAL_EXTENSIONS );
    7071SYSINIT_VERBOSE( MP_EARLY );
     
    273274}
    274275
     276static void _Sysinit_Verbose_TARGET_HASH( void )
     277{
     278  if ( !SYSINIT_IS_ADJACENT( CPU_COUNTER, TARGET_HASH ) ) {
     279    printk( "sysinit: TARGET_HASH: done\n" );
     280  }
     281}
     282
    275283static void _Sysinit_Verbose_INITIAL_EXTENSIONS( void )
    276284{
    277   if ( !SYSINIT_IS_ADJACENT( CPU_COUNTER, INITIAL_EXTENSIONS ) ) {
     285  if ( !SYSINIT_IS_ADJACENT( TARGET_HASH, INITIAL_EXTENSIONS ) ) {
    278286    printk( "sysinit: INITIAL_EXTENSIONS: done\n" );
    279287  }
  • testsuites/sptests/spsysinit01/init.c

    rfb17af2 rbc6ffc3  
    7878  CPU_COUNTER_PRE,
    7979  CPU_COUNTER_POST,
     80  TARGET_HASH_PRE,
     81  TARGET_HASH_POST,
    8082  INITIAL_EXTENSIONS_PRE,
    8183  INITIAL_EXTENSIONS_POST,
     
    258260}
    259261
     262FIRST(RTEMS_SYSINIT_TARGET_HASH)
     263{
     264  /*
     265   * Since the work performed here is BSP-specific, there is no way to test pre
     266   * and post conditions.
     267   */
     268  next_step(TARGET_HASH_PRE);
     269}
     270
     271LAST(RTEMS_SYSINIT_TARGET_HASH)
     272{
     273  next_step(TARGET_HASH_POST);
     274}
     275
    260276FIRST(RTEMS_SYSINIT_INITIAL_EXTENSIONS)
    261277{
Note: See TracChangeset for help on using the changeset viewer.