Changeset 23a368d in rtems


Ignore:
Timestamp:
Jan 23, 2008, 10:57:54 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
f3a5a20c
Parents:
ce19f1fa
Message:

2008-01-23 Joel Sherrill <joel.sherrill@…>

  • sp34/changepri.c, sp35/priinv.c: Convert the Objects_Name type from a simple type to a union of an unsigned 32 bit integer and a pointer. This should help eliminate weird casts between u32 and pointers in various places. The APIs now have to explicitly call _u32 or _string versions of helper routines. This should also simplify things and eliminate the need for ugly casts in some cases.
Location:
testsuites/sptests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    rce19f1fa r23a368d  
     12008-01-23      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * sp34/changepri.c, sp35/priinv.c: Convert the Objects_Name type from a
     4        simple type to a union of an unsigned 32 bit integer and a pointer.
     5        This should help eliminate weird casts between u32 and pointers in
     6        various places. The APIs now have to explicitly call _u32 or _string
     7        versions of helper routines. This should also simplify things and
     8        eliminate the need for ugly casts in some cases.
     9
    1102008-01-23      Jennifer Averett <jennifer.averett@OARcorp.com>
    211
  • testsuites/sptests/sp34/changepri.c

    rce19f1fa r23a368d  
    1111/********************************************************************/
    1212/* define this to use the RTEMS 4.5 scheme for object names */
    13 #define TEST_ON_RTEMS_45
     13/* #define TEST_ON_RTEMS_45 */
    1414
    1515/* define this to print the Id of the calling task */
     
    4444    TempName.u = *(uint32_t *)_Thread_Executing->Object.name;
    4545  #else
    46     TempName.u = _Thread_Executing->Object.name;
     46    TempName.u = _Thread_Executing->Object.name.name_u32;
    4747  #endif
    4848  sprintf( buffer, "%c%c%c%c -- %d",
  • testsuites/sptests/sp35/priinv.c

    rce19f1fa r23a368d  
    8585    TempName.u = *(uint32_t *)_Thread_Executing->Object.name;
    8686  #else
    87     TempName.u = (uint32_t) _Thread_Executing->Object.name;
     87    TempName.u = (uint32_t) _Thread_Executing->Object.name.name_u32;
    8888  #endif
    8989  sprintf( buffer, "%c%c%c%c -- %d",
Note: See TracChangeset for help on using the changeset viewer.