Changeset 6953e68e in rtems for c/src/lib/libbsp/mips/shared


Ignore:
Timestamp:
02/08/02 23:27:26 (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
afb802cd
Parents:
63bce63
Message:

2002-02-08 Joel Sherrill <joel@…>

  • mips-stub.c (handle_exception): Prototype changed to be an RTEMS entry point. Added comments about possible need to flush cache. (mips_gdb_stub_install): New routine.
Location:
c/src/lib/libbsp/mips/shared/gdbstub
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/mips/shared/gdbstub/ChangeLog

    r63bce63 r6953e68e  
     12002-02-08      Joel Sherrill <joel@OARcorp.com>
     2
     3        * mips-stub.c (handle_exception): Prototype changed to be an RTEMS
     4        entry point.  Added comments about possible need to flush cache.
     5        (mips_gdb_stub_install): New routine.
     6
    172002-02-08      Joel Sherrill <joel@OARcorp.com>
    28
  • c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c

    r63bce63 r6953e68e  
    787787 * reacts to gdb's requests.
    788788 */
    789 void
    790 handle_exception (CPU_Interrupt_frame *frame)
     789void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
    791790{
    792791  int host_has_detached = 0;
     
    914913      putpacket (outBuffer);
    915914    }
     915
     916   /*
     917    *  The original code did this in the assembly wrapper.  We should consider
     918    *  doing it here before we return.
     919    *
     920    *  On exit from the exception handler invalidate each line in the I-cache
     921    *  and write back each dirty line in the D-cache.  This needs to be done
     922    *  before the target program is resumed in order to ensure that software
     923    *  breakpoints and downloaded code will actually take effect.
     924    */
     925
    916926  return;
    917927}
     928
     929void mips_gdb_stub_install(void)
     930{
     931  rtems_isr_entry old;
     932
     933  rtems_interrupt_catch( (rtems_isr_entry) handle_exception, MIPS_EXCEPTION_SYSCALL, &old );
     934  /* rtems_interrupt_catch( handle_exception, MIPS_EXCEPTION_BREAK, &old ); */
     935
     936  /* get the attention of gdb */
     937  mips_break();
     938}
Note: See TracChangeset for help on using the changeset viewer.