Changeset 0b86fd8 in rtems


Ignore:
Timestamp:
Jul 7, 2010, 2:08:04 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
4479b373
Parents:
0f3ab7d
Message:

2010-07-07 Joel Sherrill <joel.sherrill@…>

PR 1606/cpukit

  • shared/startup/panic.c: Remove INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS since it is not generated.
Location:
c/src/lib/libbsp/powerpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/ChangeLog

    r0f3ab7d r0b86fd8  
     12010-07-07      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        PR 1606/cpukit
     4        * shared/startup/panic.c: Remove
     5        INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS since it is not generated.
     6
    172010-06-21      Peter Dufault <dufault@hda.com>
    28
  • c/src/lib/libbsp/powerpc/shared/startup/panic.c

    r0f3ab7d r0b86fd8  
     1/*
     2 *  $Id$
     3 */
     4
    15#include <rtems.h>
    26#include <bsp.h>
     
    1014rebootQuestion(void)
    1115{
    12         printk("Press a key to reboot\n");
    13         BSP_poll_char_via_serial();
    14         bsp_reset();
     16  printk("Press a key to reboot\n");
     17  BSP_poll_char_via_serial();
     18  bsp_reset();
    1519}
    1620
     
    2731char *score_status_text(rtems_status_code sc)
    2832{
    29         switch (sc) {
    30         case INTERNAL_ERROR_NO_CONFIGURATION_TABLE:
    31                 return "INTERNAL_ERROR_NO_CONFIGURATION_TABLE";
    32         case INTERNAL_ERROR_NO_CPU_TABLE:
    33                 return "INTERNAL_ERROR_NO_CPU_TABLE";
    34         case INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS:
    35                 return "INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS";
    36         case INTERNAL_ERROR_TOO_LITTLE_WORKSPACE:
    37                 return "INTERNAL_ERROR_TOO_LITTLE_WORKSPACE";
    38         case INTERNAL_ERROR_WORKSPACE_ALLOCATION:
    39                 return "INTERNAL_ERROR_WORKSPACE_ALLOCATION";
    40         case INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL:
    41                 return "INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL";
    42         case INTERNAL_ERROR_THREAD_EXITTED:
    43                 return "INTERNAL_ERROR_THREAD_EXITTED";
    44         case INTERNAL_ERROR_INCONSISTENT_MP_INFORMATION:
    45                 return "INTERNAL_ERROR_INCONSISTENT_MP_INFORMATION";
    46         case INTERNAL_ERROR_INVALID_NODE:
    47                 return "INTERNAL_ERROR_INVALID_NODE";
    48         case INTERNAL_ERROR_NO_MPCI:
    49                 return "INTERNAL_ERROR_NO_MPCI";
    50         case INTERNAL_ERROR_BAD_PACKET:
    51                 return "INTERNAL_ERROR_BAD_PACKET";
    52         case INTERNAL_ERROR_OUT_OF_PACKETS:
    53                 return "INTERNAL_ERROR_OUT_OF_PACKETS";
    54         case INTERNAL_ERROR_OUT_OF_GLOBAL_OBJECTS:
    55                 return "INTERNAL_ERROR_OUT_OF_GLOBAL_OBJECTS";
    56         case INTERNAL_ERROR_OUT_OF_PROXIES:
    57                 return "INTERNAL_ERROR_OUT_OF_PROXIES";
    58         case INTERNAL_ERROR_INVALID_GLOBAL_ID:
    59                 return "INTERNAL_ERROR_INVALID_GLOBAL_ID";
    60         case INTERNAL_ERROR_BAD_STACK_HOOK:
    61                 return "INTERNAL_ERROR_BAD_STACK_HOOK";
    62         case INTERNAL_ERROR_BAD_ATTRIBUTES:
    63                 return "INTERNAL_ERROR_BAD_ATTRIBUTES";
    64         case 18: /* not in header (yet) :-( */
    65                 return "INTERNAL_ERROR_CALLED_FROM_WRONG_ENVIRONMENT";
    66         default:
    67                         break;
    68         }
    69         return 0;
     33  switch (sc) {
     34    case INTERNAL_ERROR_NO_CONFIGURATION_TABLE:
     35      return "INTERNAL_ERROR_NO_CONFIGURATION_TABLE";
     36    case INTERNAL_ERROR_NO_CPU_TABLE:
     37      return "INTERNAL_ERROR_NO_CPU_TABLE";
     38    case INTERNAL_ERROR_TOO_LITTLE_WORKSPACE:
     39      return "INTERNAL_ERROR_TOO_LITTLE_WORKSPACE";
     40    case INTERNAL_ERROR_WORKSPACE_ALLOCATION:
     41      return "INTERNAL_ERROR_WORKSPACE_ALLOCATION";
     42    case INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL:
     43      return "INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL";
     44    case INTERNAL_ERROR_THREAD_EXITTED:
     45      return "INTERNAL_ERROR_THREAD_EXITTED";
     46    case INTERNAL_ERROR_INCONSISTENT_MP_INFORMATION:
     47      return "INTERNAL_ERROR_INCONSISTENT_MP_INFORMATION";
     48    case INTERNAL_ERROR_INVALID_NODE:
     49      return "INTERNAL_ERROR_INVALID_NODE";
     50    case INTERNAL_ERROR_NO_MPCI:
     51      return "INTERNAL_ERROR_NO_MPCI";
     52    case INTERNAL_ERROR_BAD_PACKET:
     53      return "INTERNAL_ERROR_BAD_PACKET";
     54    case INTERNAL_ERROR_OUT_OF_PACKETS:
     55      return "INTERNAL_ERROR_OUT_OF_PACKETS";
     56    case INTERNAL_ERROR_OUT_OF_GLOBAL_OBJECTS:
     57      return "INTERNAL_ERROR_OUT_OF_GLOBAL_OBJECTS";
     58    case INTERNAL_ERROR_OUT_OF_PROXIES:
     59      return "INTERNAL_ERROR_OUT_OF_PROXIES";
     60    case INTERNAL_ERROR_INVALID_GLOBAL_ID:
     61      return "INTERNAL_ERROR_INVALID_GLOBAL_ID";
     62    case INTERNAL_ERROR_BAD_STACK_HOOK:
     63      return "INTERNAL_ERROR_BAD_STACK_HOOK";
     64    case INTERNAL_ERROR_BAD_ATTRIBUTES:
     65      return "INTERNAL_ERROR_BAD_ATTRIBUTES";
     66    case 18: /* not in header (yet) :-( */
     67      return "INTERNAL_ERROR_CALLED_FROM_WRONG_ENVIRONMENT";
     68    default:
     69      break;
     70  }
     71  return 0;
    7072}
    7173
    7274void _BSP_Fatal_error(unsigned int v)
    7375{
    74 unsigned long flags;
    75 const char *err = 0;
     76  unsigned long flags;
     77  const char *err = 0;
    7678
    7779  rtems_interrupt_disable(flags);
     
    8183  printk("Environment:");
    8284  switch (THESRC) {
    83         case INTERNAL_ERROR_CORE:
    84                 printk(" RTEMS Core\n");
    85                 err = score_status_text(THEERR);
    86         break;
     85    case INTERNAL_ERROR_CORE:
     86      printk(" RTEMS Core\n");
     87      err = score_status_text(THEERR);
     88    break;
    8789
    88         case INTERNAL_ERROR_RTEMS_API:
    89                 printk(" RTEMS API\n");
    90                 err = rtems_status_text(THEERR);
    91         break;
     90      case INTERNAL_ERROR_RTEMS_API:
     91      printk(" RTEMS API\n");
     92      err = rtems_status_text(THEERR);
     93    break;
    9294
    93         case INTERNAL_ERROR_POSIX_API:
    94                 printk(" POSIX API (errno)\n");
    95                 /* could use strerror but I'd rather avoid using this here */
    96         break;
     95      case INTERNAL_ERROR_POSIX_API:
     96      printk(" POSIX API (errno)\n");
     97      /* could use strerror but I'd rather avoid using this here */
     98    break;
    9799
    98         default:
    99                 printk("  UNKNOWN (0x%x)\n",THESRC);
    100         break;
     100    default:
     101      printk("  UNKNOWN (0x%x)\n",THESRC);
     102  break;
    101103  }
    102104  if ( _Thread_Dispatch_disable_level )
    103                 printk("  Error occurred in a Thread Dispatching DISABLED context (level %i)\n",
    104                         _Thread_Dispatch_disable_level);
    105         else
    106                 printk("enabled\n");
    107   if ( _ISR_Nest_level )
    108         printk("  Error occurred from ISR context (ISR nest level %i)\n", _ISR_Nest_level);
     105    printk(
     106      "  Error occurred in a Thread Dispatching DISABLED context (level %i)\n",
     107      _Thread_Dispatch_disable_level);
     108  else
     109    printk("enabled\n");
     110
     111  if ( _ISR_Nest_level ) {
     112    printk(
     113      "  Error occurred from ISR context (ISR nest level %i)\n",
     114      _ISR_Nest_level
     115    );
     116  }
    109117
    110118  printk("Error %d",THEERR);
    111119  if (err) {
    112         printk(": %s",err);
     120    printk(": %s",err);
    113121  }
    114122  printk("\n");
Note: See TracChangeset for help on using the changeset viewer.