Ticket #1671: gxx_wrappers.patch

File gxx_wrappers.patch, 2.0 KB (added by Sebastian Huber, on 08/16/10 at 06:26:06)

Proposal.

  • libcsupport/src/gxx_wrappers.c

    RCS file: /usr1/CVS/rtems/cpukit/libcsupport/src/gxx_wrappers.c,v
    retrieving revision 1.21
    diff -u -r1.21 gxx_wrappers.c
     
    2626#endif
    2727
    2828#include <stdlib.h>
    29 #include <stdio.h>
    3029
    3130#include <rtems.h>
    32 #include <rtems/system.h>
    33 #include <rtems/error.h>
    34 #include <rtems/rtems/tasks.h>
    3531
    3632/* uncomment this if you need to debug this interface */
    3733/*#define DEBUG_GXX_WRAPPERS 1*/
     
    145141     */
    146142    status = rtems_task_variable_add( RTEMS_SELF, (void **)key, key->dtor );
    147143    if ( status != RTEMS_SUCCESSFUL ) {
    148        rtems_panic ("rtems_gxx_getspecific");
     144      _Internal_error_Occurred(
     145        INTERNAL_ERROR_CORE,
     146        true,
     147        INTERNAL_ERROR_GXX_KEY_ADD_FAILED
     148      );
    149149    }
    150150    key->val = (void *)0;
    151151  }
     
    212212        status
    213213      );
    214214    #endif
    215     rtems_panic ("rtems_gxx_mutex_init");
     215    _Internal_error_Occurred(
     216      INTERNAL_ERROR_CORE,
     217      true,
     218      INTERNAL_ERROR_GXX_MUTEX_INIT_FAILED
     219    );
    216220  }
    217221  #ifdef DEBUG_GXX_WRAPPERS
    218222    printk( "gxx_wrappers: mutex init complete =%X\n", *mutex );
  • score/include/rtems/score/interr.h

    RCS file: /usr1/CVS/rtems/cpukit/score/include/rtems/score/interr.h,v
    retrieving revision 1.32
    diff -u -r1.32 interr.h
     
    7070  INTERNAL_ERROR_IMPLEMENTATION_BLOCKING_OPERATION_CANCEL,
    7171  INTERNAL_ERROR_MUTEX_OBTAIN_FROM_BAD_STATE,
    7272  INTERNAL_ERROR_UNLIMITED_AND_MAXIMUM_IS_0,
    73   INTERNAL_ERROR_SHUTDOWN_WHEN_NOT_UP
     73  INTERNAL_ERROR_SHUTDOWN_WHEN_NOT_UP,
     74  INTERNAL_ERROR_GXX_KEY_ADD_FAILED,
     75  INTERNAL_ERROR_GXX_MUTEX_INIT_FAILED
    7476} Internal_errors_Core_list;
    7577
    7678typedef uint32_t Internal_errors_t;