From 3a659b04818c61d9fa99edcfdff4786adb71cd3f Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 9 Dec 2016 07:19:22 +0100 Subject: score: Introduce _Internal_error() --- cpukit/libcsupport/src/gxx_wrappers.c | 4 ++-- cpukit/libcsupport/src/malloc_initialize.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/libcsupport') diff --git a/cpukit/libcsupport/src/gxx_wrappers.c b/cpukit/libcsupport/src/gxx_wrappers.c index 545c3af523..d30b57037e 100644 --- a/cpukit/libcsupport/src/gxx_wrappers.c +++ b/cpukit/libcsupport/src/gxx_wrappers.c @@ -137,7 +137,7 @@ int rtems_gxx_setspecific(__gthread_key_t key, const void *ptr) #endif if ( eno != 0 ) { - _Terminate( INTERNAL_ERROR_CORE, INTERNAL_ERROR_GXX_KEY_ADD_FAILED ); + _Internal_error( INTERNAL_ERROR_GXX_KEY_ADD_FAILED ); } return 0; @@ -171,7 +171,7 @@ void rtems_gxx_mutex_init (__gthread_mutex_t *mutex) status ); #endif - _Terminate( INTERNAL_ERROR_CORE, INTERNAL_ERROR_GXX_MUTEX_INIT_FAILED ); + _Internal_error( INTERNAL_ERROR_GXX_MUTEX_INIT_FAILED ); } #ifdef DEBUG_GXX_WRAPPERS printk( "gxx_wrappers: mutex init complete =%X\n", *mutex ); diff --git a/cpukit/libcsupport/src/malloc_initialize.c b/cpukit/libcsupport/src/malloc_initialize.c index e262c0ff06..dc94b489ff 100644 --- a/cpukit/libcsupport/src/malloc_initialize.c +++ b/cpukit/libcsupport/src/malloc_initialize.c @@ -50,7 +50,7 @@ void RTEMS_Malloc_Initialize( } if ( init_or_extend == _Heap_Initialize ) { - _Terminate( INTERNAL_ERROR_CORE, INTERNAL_ERROR_NO_MEMORY_FOR_HEAP ); + _Internal_error( INTERNAL_ERROR_NO_MEMORY_FOR_HEAP ); } } } -- cgit v1.2.3