Changeset ce5b291f in rtems


Ignore:
Timestamp:
Jun 12, 2000, 6:45:54 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
f481c39c
Parents:
e275cab
Message:

Works on Solaris and Linux.

Files:
2 edited

Legend:

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

    re275cab rce5b291f  
    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
  • cpukit/score/cpu/unix/cpu.c

    re275cab rce5b291f  
    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.