Changes between Version 26 and Version 27 of Developer/Projects/SequencedInitialization


Ignore:
Timestamp:
Jun 10, 2010, 7:32:25 PM (10 years ago)
Author:
Wenjie1984
Comment:

/* Open Projects */

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Projects/SequencedInitialization

    v26 v27  
    178178 */
    179179 #define RTEMS_SYSINIT_CLASS_API  0001
    180 
    181180 /**
    182181 *the second domain is order like before,nomal,after
     
    185184 #define ORDER_NOMAL     1
    186185 #define ORDER_AFTER     2
    187 
    188186 /**
    189187 *the third domain is index
     
    205203 #define RTEMS_SYSINIT_MAKE_ORDER(a, b, c) #a#b#c
    206204
    207 Sequenced Initialization API:
     205; The definition of rtems sysinit_core struct and its reference:
     206 The field of struct sysinit_core will be extended in the futurn, now the item status is
     207 just used for filling in the struct.
     208
    208209 /*The type of handler invoked when constructing*/
    209210 typedef void ( *sysinit_handler )( void );
    210 
    211211 /*The core constructe of sysinit*/
    212212 typedef struct sysinit_core {
     
    220220  sysinit_handler handler;
    221221 } sysinit_core;
    222 
    223222 #define RTEMS_SYSINIT(order, handler) \
    224223  sysinit_core rtems_sysinit_ ## handler = { \
     
    226225  handler, \
    227226  };
    228 
    229227 #define RTEMS_SYSINIT_REF(subsystem, index, order, handler) \
    230228  extern sysinit_core rtems_sysinit_ ## handler; \