From dc6e830c108996c43e9267f05a51b7299dd3e6f9 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 13 Nov 2012 17:40:33 +0100 Subject: sapi: Add and use rtems_internal_error_description --- testsuites/psxtests/psxfatal_support/init.c | 32 +---------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) (limited to 'testsuites/psxtests/psxfatal_support/init.c') diff --git a/testsuites/psxtests/psxfatal_support/init.c b/testsuites/psxtests/psxfatal_support/init.c index e2ab2415fa..abd9a00ded 100644 --- a/testsuites/psxtests/psxfatal_support/init.c +++ b/testsuites/psxtests/psxfatal_support/init.c @@ -68,40 +68,10 @@ char *Errors_Rtems[] = { "RTEMS_NOT_IMPLEMENTED" /* directive not implemented */ }; -char *Errors_Core[] = { - "INTERNAL_ERROR_NO_CONFIGURATION_TABLE", - "INTERNAL_ERROR_NO_CPU_TABLE", - "INTERNAL_ERROR_TOO_LITTLE_WORKSPACE", - "INTERNAL_ERROR_WORKSPACE_ALLOCATION", - "INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL", - "INTERNAL_ERROR_THREAD_EXITTED", - "INTERNAL_ERROR_INCONSISTENT_MP_INFORMATION", - "INTERNAL_ERROR_INVALID_NODE", - "INTERNAL_ERROR_NO_MPCI", - "INTERNAL_ERROR_BAD_PACKET", - "INTERNAL_ERROR_OUT_OF_PACKETS", - "INTERNAL_ERROR_OUT_OF_GLOBAL_OBJECTS", - "INTERNAL_ERROR_OUT_OF_PROXIES", - "INTERNAL_ERROR_INVALID_GLOBAL_ID", - "INTERNAL_ERROR_BAD_STACK_HOOK", - "INTERNAL_ERROR_BAD_ATTRIBUTES", - "INTERNAL_ERROR_IMPLEMENTATION_KEY_CREATE_INCONSISTENCY", - "INTERNAL_ERROR_IMPLEMENTATION_BLOCKING_OPERATION_CANCEL", - "INTERNAL_ERROR_MUTEX_OBTAIN_FROM_BAD_STATE", - "INTERNAL_ERROR_UNLIMITED_AND_MAXIMUM_IS_0", - "INTERNAL_ERROR_SHUTDOWN_WHEN_NOT_UP", - "INTERNAL_ERROR_GXX_KEY_ADD_FAILED", - "INTERNAL_ERROR_GXX_MUTEX_INIT_FAILED", - "INTERNAL_ERROR_NO_MEMORY_FOR_HEAP" -}; - void Put_Error( uint32_t source, uint32_t error ) { if ( source == INTERNAL_ERROR_CORE ) { - if ( error > INTERNAL_ERROR_NO_MEMORY_FOR_HEAP ) - printk("Unknown Internal Core Error (%d)", error); - else - printk( Errors_Core[ error ] ); + printk( rtems_internal_error_description( error ) ); } else if (source == INTERNAL_ERROR_RTEMS_API ){ if (error > RTEMS_NOT_IMPLEMENTED ) -- cgit v1.2.3