Changeset ef99210e in rtems


Ignore:
Timestamp:
Jun 29, 2000, 4:27:47 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
847ed4bd
Parents:
9b6d173
Message:

Patch from Eric Valette to do some cleanup.

Location:
c/src/lib/libbsp/powerpc/shared
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/shared/bootloader/ppcboot.lds

    r9b6d173 ref99210e  
    11OUTPUT_ARCH(powerpc)
    2 OUTPUT_FORMAT(ppcboot)
     2/* OUTPUT_FORMAT(ppcboot) */
    33/* Do we need any of these for elf?
    44   __DYNAMIC = 0;    */
  • c/src/lib/libbsp/powerpc/shared/startup/bspstart.c

    r9b6d173 ref99210e  
    7878void BSP_panic(char *s)
    7979{
    80   printk("RTEMS 4.x PANIC %s\n", s);
    81   _return_to_ppcbug();
     80  printk("%s PANIC %s\n",_RTEMS_version, s);
     81  __asm__ __volatile ("sc");
    8282}
    8383
    8484void _BSP_Fatal_error(unsigned int v)
    8585{
    86   printk("RTEMS 4.x PANIC ERROR %x\n", v);
    87   _return_to_ppcbug();
     86  printk("%s PANIC ERROR %x\n",_RTEMS_version, v);
     87  __asm__ __volatile ("sc");
    8888}
    8989 
  • c/src/lib/libbsp/powerpc/shared/vectors/vectors_init.c

    r9b6d173 ref99210e  
    6666  printk("\t LR = %x\n", excPtr->EXC_LR);
    6767  printk("\t MSR = %x\n", excPtr->EXC_MSR);
    68   if ( (excPtr->_EXC_number == ASM_DEC_VECTOR) ||
    69        (excPtr->_EXC_number == ASM_SYS_VECTOR)
    70      )
     68  if (excPtr->_EXC_number == ASM_DEC_VECTOR)
    7169       recoverable = 1;
    72   if (!recoverable) BSP_panic("unrecoverable exception!!! Push reset button\n");
     70  if (excPtr->_EXC_number == ASM_SYS_VECTOR)
     71#ifdef TEST_RAW_EXCEPTION_CODE     
     72    recoverable = 1;
     73#else
     74    recoverable = 0;
     75#endif
     76    if (!recoverable) {
     77      printk("unrecoverable exception!!! Push reset button\n");
     78      while(1);
     79    }
    7380}
    7481
Note: See TracChangeset for help on using the changeset viewer.