Changeset 065639c0 in rtems


Ignore:
Timestamp:
Jan 29, 2009, 2:32:59 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.8
Children:
c9b28ef
Parents:
ecf19d14
Message:

2009-01-29 Eric Norum <norume@…>

PR 1364/cpukit

  • libcsupport/src/gxx_wrappers.c: Fix compilation problems when diagnostics enabled.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    recf19d14 r065639c0  
     12009-01-29      Eric Norum <norume@aps.anl.gov>
     2
     3        PR 1364/cpukit
     4        * libcsupport/src/gxx_wrappers.c: Fix compilation problems when
     5        diagnostics enabled.
     6
    172009-01-21      Nickolay Kolchin <nbkolchin@gmail.com>
    28                Joel Sherrill <joel.sherrill@oarcorp.com>
  • cpukit/libcsupport/src/gxx_wrappers.c

    recf19d14 r065639c0  
    5353
    5454/* uncomment this if you need to debug this interface */
    55 
    56 /*
    57 #define DEBUG_GXX_WRAPPERS 1
    58 */
     55/*#define DEBUG_GXX_WRAPPERS 1*/
    5956
    6057#ifdef DEBUG_GXX_WRAPPERS
    6158/* local function to return the ID of the calling thread */
    62 static rtems_id get_tid( void )
     59static rtems_id gxx_get_tid( void )
    6360{
    6461   rtems_id id = 0;
     
    161158
    162159#ifdef DEBUG_GXX_WRAPPERS
    163    printk( "gxx_wrappers: getspecific key=%x, ptr=%x, id=%x\n", key, p, get_tid() );
     160   printk( "gxx_wrappers: getspecific key=%x, ptr=%x, id=%x\n", key, p, gxx_get_tid() );
    164161#endif
    165162   return p;
     
    170167{
    171168#ifdef DEBUG_GXX_WRAPPERS
    172   printk( "gxx_wrappers: setspecific key=%x, ptr=%x, id=%x\n", key, ptr, get_tid() );
     169  printk( "gxx_wrappers: setspecific key=%x, ptr=%x, id=%x\n", key, ptr, gxx_get_tid() );
    173170#endif
    174171  /* register with RTEMS the buffer that will hold the key values */
     
    188185void rtems_gxx_mutex_init (__gthread_mutex_t *mutex)
    189186{
     187  rtems_status_code s;
    190188#ifdef DEBUG_GXX_WRAPPERS
    191189  printk( "gxx_wrappers: mutex init =%X\n", *mutex );
    192190#endif
    193   if( rtems_semaphore_create( rtems_build_name ('G', 'C', 'C', '2'),
     191  if( (s = rtems_semaphore_create( rtems_build_name ('G', 'C', 'C', '2'),
    194192                              1,
    195193                             RTEMS_PRIORITY|RTEMS_BINARY_SEMAPHORE
    196194                             |RTEMS_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING|RTEMS_LOCAL,
    197195                             0,
    198                              (rtems_id *)mutex ) != RTEMS_SUCCESSFUL )
    199   {
     196                             (rtems_id *)mutex )) != RTEMS_SUCCESSFUL )
     197  {
     198#ifdef DEBUG_GXX_WRAPPERS
     199      printk( "gxx_wrappers: mutex init failed %s (%d)\n", rtems_status_text(s), s );
     200#endif
    200201      rtems_panic ("rtems_gxx_mutex_init");
    201202  }
Note: See TracChangeset for help on using the changeset viewer.