Changeset ee13a74 in rtems


Ignore:
Timestamp:
Jul 1, 2002, 10:18:13 PM (17 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
63977bb4
Parents:
8d3b3be
Message:

2002-07-01 Joel Sherrill <joel@…>

  • stackchk/check.c: Corrected use of _Objects_Information_table now that it is a two dimensional array based upon API and class.
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/libmisc/ChangeLog

    r8d3b3be ree13a74  
     12002-07-01      Joel Sherrill <joel@OARcorp.com>
     2
     3        * stackchk/check.c: Corrected use of
     4        _Objects_Information_table now that it is a two dimensional
     5        array based upon API and class.
     6
    172002-06-25      Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
    28
  • c/src/libmisc/stackchk/check.c

    r8d3b3be ree13a74  
    151151#if 0
    152152  unsigned32           i;
    153   unsigned32           class_index;
     153  unsigned32           api_index;
    154154  Thread_Control      *the_thread;
    155155  Objects_Information *information;
     
    205205
    206206#if 0
    207   for ( class_index = OBJECTS_CLASSES_FIRST ;
    208         class_index <= OBJECTS_CLASSES_LAST ;
    209         class_index++ ) {
    210     information = _Objects_Information_table[ class_index ];
    211     if ( information && information->is_thread ) {
     207  for ( api_index = 1;
     208        api_index <= OBJECTS_APIS_LAST ;
     209        api_index++ ) {
     210    if ( !_Objects_Information_table[ api_index ] )
     211      continue;
     212    information = _Objects_Information_table[ api_index ][ 1 ];
     213    if ( information ) {
    212214      for ( i=1 ; i <= information->maximum ; i++ ) {
    213215        the_thread = (Thread_Control *)information->local_table[ i ];
     
    496498{
    497499  unsigned32           i;
    498   unsigned32           class_index;
     500  unsigned32           api_index;
    499501  Thread_Control      *the_thread;
    500502  unsigned32           hit_running = 0;
     
    509511  );
    510512
    511   for ( class_index = OBJECTS_CLASSES_FIRST ;
    512         class_index <= OBJECTS_CLASSES_LAST ;
    513         class_index++ ) {
    514     information = _Objects_Information_table[ class_index ];
    515     if ( information && information->is_thread ) {
     513  for ( api_index = 1 ;
     514        api_index <= OBJECTS_APIS_LAST ;
     515        api_index++ ) {
     516    if ( !_Objects_Information_table[ api_index ] )
     517      continue;
     518    information = _Objects_Information_table[ api_index ][ 1 ];
     519    if ( information ) {
    516520      for ( i=1 ; i <= information->maximum ; i++ ) {
    517521        the_thread = (Thread_Control *)information->local_table[ i ];
  • cpukit/libmisc/ChangeLog

    r8d3b3be ree13a74  
     12002-07-01      Joel Sherrill <joel@OARcorp.com>
     2
     3        * stackchk/check.c: Corrected use of
     4        _Objects_Information_table now that it is a two dimensional
     5        array based upon API and class.
     6
    172002-06-25      Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
    28
  • cpukit/libmisc/stackchk/check.c

    r8d3b3be ree13a74  
    151151#if 0
    152152  unsigned32           i;
    153   unsigned32           class_index;
     153  unsigned32           api_index;
    154154  Thread_Control      *the_thread;
    155155  Objects_Information *information;
     
    205205
    206206#if 0
    207   for ( class_index = OBJECTS_CLASSES_FIRST ;
    208         class_index <= OBJECTS_CLASSES_LAST ;
    209         class_index++ ) {
    210     information = _Objects_Information_table[ class_index ];
    211     if ( information && information->is_thread ) {
     207  for ( api_index = 1;
     208        api_index <= OBJECTS_APIS_LAST ;
     209        api_index++ ) {
     210    if ( !_Objects_Information_table[ api_index ] )
     211      continue;
     212    information = _Objects_Information_table[ api_index ][ 1 ];
     213    if ( information ) {
    212214      for ( i=1 ; i <= information->maximum ; i++ ) {
    213215        the_thread = (Thread_Control *)information->local_table[ i ];
     
    496498{
    497499  unsigned32           i;
    498   unsigned32           class_index;
     500  unsigned32           api_index;
    499501  Thread_Control      *the_thread;
    500502  unsigned32           hit_running = 0;
     
    509511  );
    510512
    511   for ( class_index = OBJECTS_CLASSES_FIRST ;
    512         class_index <= OBJECTS_CLASSES_LAST ;
    513         class_index++ ) {
    514     information = _Objects_Information_table[ class_index ];
    515     if ( information && information->is_thread ) {
     513  for ( api_index = 1 ;
     514        api_index <= OBJECTS_APIS_LAST ;
     515        api_index++ ) {
     516    if ( !_Objects_Information_table[ api_index ] )
     517      continue;
     518    information = _Objects_Information_table[ api_index ][ 1 ];
     519    if ( information ) {
    516520      for ( i=1 ; i <= information->maximum ; i++ ) {
    517521        the_thread = (Thread_Control *)information->local_table[ i ];
Note: See TracChangeset for help on using the changeset viewer.