/* * Copyright (c) 2012 embedded brains GmbH. All rights reserved. * * embedded brains GmbH * Obere Lagerstr. 30 * 82178 Puchheim * Germany * * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rtems.com/license/LICENSE. */ #if HAVE_CONFIG_H #include "config.h" #endif #include static const char *const internal_error_desc [] = { "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", "INTERNAL_ERROR_CPU_ISR_INSTALL_VECTOR" }; const char *rtems_internal_error_description( rtems_fatal_code error ) { size_t i = error; const char *desc = "?"; if ( i < RTEMS_ARRAY_SIZE( internal_error_desc ) ) { desc = internal_error_desc [i]; } return desc; }