Changeset 0451b44 in rtems for cpukit/score/inline


Ignore:
Timestamp:
Apr 15, 1998, 12:02:10 AM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
9b64c2d5
Parents:
7780978
Message:

Per suggestion from Eric Norum, went from one initial extension set
to multiple. This lets the stack check extension be installed
at system initialization time and avoids the BSP having to
even know about its existence.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/inline/rtems/score/userext.inl

    r7780978 r0451b44  
    1818#define __USER_EXTENSIONS_inl
    1919
     20#include <rtems/score/wkspace.h>
     21
    2022/*PAGE
    2123 *
     
    2830
    2931RTEMS_INLINE_ROUTINE void _User_extensions_Handler_initialization (
     32    unsigned32              number_of_extensions,
    3033    User_extensions_Table  *initial_extensions
    3134)
    3235{
     36  User_extensions_Control *extension;
     37  unsigned32               i;
     38
    3339  _Chain_Initialize_empty( &_User_extensions_List );
    3440
    3541  if ( initial_extensions ) {
    36     _User_extensions_Initial.Callouts = *initial_extensions;
    37     _Chain_Append( &_User_extensions_List, &_User_extensions_Initial.Node );
     42    for (i=0 ; i<number_of_extensions ; i++ ) {
     43      extension =
     44         _Workspace_Allocate_or_fatal_error( sizeof(User_extensions_Control) );
     45
     46      extension->Callouts = initial_extensions[i];
     47      _Chain_Append( &_User_extensions_List, &extension->Node );
     48    }
    3849  }
    3950}
Note: See TracChangeset for help on using the changeset viewer.