Changeset 380b2231 in rtems


Ignore:
Timestamp:
06/12/00 18:46:11 (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
b96734c
Parents:
c243c49
Message:

Works on Solaris and Linux.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/cpu/unix/cpu.c

    rc243c49 r380b2231  
    5151
    5252static sigset_t _CPU_Signal_mask;
    53 static Context_Control_overlay
    54           _CPU_Context_Default_with_ISRs_enabled CPU_STRUCTURE_ALIGNMENT;
    55 static Context_Control_overlay
    56           _CPU_Context_Default_with_ISRs_disabled CPU_STRUCTURE_ALIGNMENT;
     53static Context_Control_overlay _CPU_Context_Default_with_ISRs_enabled;
     54static Context_Control_overlay _CPU_Context_Default_with_ISRs_disabled;
    5755
    5856/*
     
    201199   */
    202200
    203   if ( sizeof(Context_Control_overlay) < sizeof(Context_Control) )
    204     _CPU_Fatal_halt( 0xdeadfood );
     201  if ( sizeof(Context_Control_overlay) > sizeof(Context_Control) )
     202    _CPU_Fatal_halt( 0xdeadf00d );
    205203 
    206204  (void) memset(
    207205    &_CPU_Context_Default_with_ISRs_enabled,
    208206    0,
    209     sizeof(Context_Control)
     207    sizeof(Context_Control_overlay)
    210208  );
    211209  (void) memset(
    212210    &_CPU_Context_Default_with_ISRs_disabled,
    213211    0,
    214     sizeof(Context_Control)
     212    sizeof(Context_Control_overlay)
    215213  );
    216214
Note: See TracChangeset for help on using the changeset viewer.