Ignore:
Timestamp:
Sep 18, 1996, 9:07:14 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
7abd27b
Parents:
4a5e651
Message:

address arithmetic changed to be more portable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/stackchk/blow.c

    r4a5e651 rc3e3d07  
    2222{
    2323  volatile unsigned32 *low, *high;
     24  unsigned char *area;
    2425
    2526b();
     
    2930   */
    3031
    31  low  =  _Thread_Executing->Start.Initial_stack.area + HEAP_OVERHEAD;
    32  high =  _Thread_Executing->Start.Initial_stack.area +
    33          _Thread_Executing->Start.Initial_stack.size - 16;
     32 area = (unsigned char *)_Thread_Executing->Start.Initial_stack.area;
     33
     34 low  = (volatile unsigned32 *) (area + HEAP_OVERHEAD);
     35 high = (volatile unsigned32 *)
     36            (area + _Thread_Executing->Start.Initial_stack.size - 16);
     37
    3438
    3539 low[0] = 0x11111111;
Note: See TracChangeset for help on using the changeset viewer.