Changeset 94218b8 in rtems


Ignore:
Timestamp:
Sep 18, 1996, 8:51:48 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
b1c215e
Parents:
56e0b88
Message:

loop to clear workspace memory changed to use sizeof rather than
hardcoded 4 to be compatible with CPUs with 64-bit ints

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/src/wkspace.c

    r56e0b88 r94218b8  
    4444  if ( _CPU_Table.do_zero_of_workspace ) {
    4545    for( zero_out_array  = (unsigned32 *) starting_address, index = 0 ;
    46          index < size / 4 ;
     46         index < size / sizeof( unsigned32 ) ;
    4747         index++ )
    4848      zero_out_array[ index ] = 0;
  • cpukit/score/src/wkspace.c

    r56e0b88 r94218b8  
    4444  if ( _CPU_Table.do_zero_of_workspace ) {
    4545    for( zero_out_array  = (unsigned32 *) starting_address, index = 0 ;
    46          index < size / 4 ;
     46         index < size / sizeof( unsigned32 ) ;
    4747         index++ )
    4848      zero_out_array[ index ] = 0;
Note: See TracChangeset for help on using the changeset viewer.