Changes between Version 52 and Version 53 of Developer/Projects/SequencedInitialization


Ignore:
Timestamp:
Jun 15, 2010, 4:43:02 PM (10 years ago)
Author:
Sh
Comment:

added entry with index macro

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Projects/SequencedInitialization

    v52 v53  
    229229   extern const Sysinit_Entry SYSINIT_ENTRY_NAME(handler)
    230230 
    231  #define SYSINIT_ENTRY(handler, group) \
     231 #define SYSINIT_ENTRY_WITH_INDEX(handler, group, index) \
    232232   SYSINIT_DECLARE_ENTRY(handler); \
    233233   const Sysinit_Entry SYSINIT_ENTRY_NAME(handler) \
    234    __attribute__((section(".score.sysinit." SYSINIT_MAKE_ORDER(group, SYSINIT_INDEX_MIDDLE)))) \
     234   __attribute__((section(".score.sysinit." SYSINIT_MAKE_ORDER(group, index)))) \
    235235   = { handler }
     236 
     237 #define SYSINIT_ENTRY(handler, group) \
     238   SYSINIT_ENTRY_WITH_INDEX(handler, group, SYSINIT_INDEX_MIDDLE)
    236239 
    237240 #define SYSINIT_REFERENCE(handler) \