Changeset 0ab87349 in rtems


Ignore:
Timestamp:
Feb 5, 2002, 9:06:13 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
4b3af7a4
Parents:
a37b8f95
Message:

2001-02-05 Joel Sherrill <joel@…>

  • isr_entries.S: Removed comment incorrectly indicating this file was cpu_asm.S.
  • vectorexceptions.c (mips_dump_exception_frame): New routine broken out from default exception handler.
Location:
c/src/lib/libcpu/mips
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/mips/ChangeLog

    ra37b8f95 r0ab87349  
     12001-02-05      Joel Sherrill <joel@OARcorp.com>
     2
     3        * isr_entries.S: Removed comment incorrectly indicating this
     4        file was cpu_asm.S.
     5        * vectorexceptions.c (mips_dump_exception_frame): New routine
     6        broken out from default exception handler.
     7
    182001-02-01      Greg Menke <gregory.menke@gsfc.nasa.gov>
    29
  • c/src/lib/libcpu/mips/shared/interrupts/isr_entries.S

    ra37b8f95 r0ab87349  
    1111 *  $Id$
    1212 */
    13 /* @(#)cpu_asm.S       08/20/96     1.15 */
    1413
    1514#include <asm.h>
  • c/src/lib/libcpu/mips/shared/interrupts/vectorexceptions.c

    ra37b8f95 r0ab87349  
    6666};
    6767
     68void mips_dump_exception_frame( CPU_Interrupt_frame *frame )
     69{
     70  unsigned int *frame_u32;
     71  int   i, j;
     72
     73  frame_u32 = (unsigned32 *)frame;
     74  for(i=0; dumpregs[i].offset > -1; i++)
     75  {
     76     printk("   %s", dumpregs[i].name);
     77     for(j=0; j< 7-strlen(dumpregs[i].name); j++) printk(" ");
     78     printk("  %08X%c", frame_u32[dumpregs[i].offset], (i%3) ? '\t' : '\n' );
     79  }
     80  printk( "\n" );
     81}
    6882
    6983void mips_default_exception_code_handler( int exc, CPU_Interrupt_frame *frame )
     
    7185  unsigned int sr;
    7286  unsigned int cause;
    73   int   i, j;
    7487
    7588  mips_get_sr( sr );
     
    7992  printk( "sr: 0x%08x  cause: 0x%08x --> %s\n", sr, cause,
    8093     cause_strings[(cause >> 2) &0x1f] );
    81 
    82   for(i=0; dumpregs[i].offset > -1; i++)
    83   {
    84      printk("   %s", dumpregs[i].name);
    85      for(j=0; j< 7-strlen(dumpregs[i].name); j++) printk(" ");
    86      printk("  %08X\n", frame->regs[dumpregs[i].offset] );
    87   }
     94  mips_dump_exception_frame( frame );
    8895
    8996  rtems_fatal_error_occurred(1);
    9097}
    91 
    92 
    93 
    9498
    9599#define CALL_EXC(_vector,_frame) \
     
    100104             mips_default_exception_code_handler( _vector, _frame ); \
    101105   } while(0)
    102 
    103 
    104 
    105106
    106107/*
Note: See TracChangeset for help on using the changeset viewer.