Changeset af2b90d in rtems


Ignore:
Timestamp:
May 5, 2009, 2:19:58 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
b513fa6
Parents:
a4e752c
Message:

2009-05-05 Michael Walle <michael@…>

  • cpu_asm.S, irq.c, rtems/score/cpu.h: Add lm32 gdb stub support.
Location:
cpukit/score/cpu/lm32
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/lm32/ChangeLog

    ra4e752c raf2b90d  
     12009-05-05      Michael Walle <michael@walle.cc>
     2
     3        * cpu_asm.S, irq.c, rtems/score/cpu.h: Add lm32 gdb stub support.
     4
    152009-04-14      Michael Walle <michael@walle.cc>
    26
  • cpukit/score/cpu/lm32/cpu_asm.S

    ra4e752c raf2b90d  
    5555    rcsr    r3, IE
    5656    sw      (r1+76), r3
     57    .extern _exception_stack_frame
     58    mvhi    r3, hi(_exception_stack_frame)
     59    ori     r3, r3, lo(_exception_stack_frame)
     60    lw      r4, (r3+0)
     61    be      r4, r0, 2f
     621:
     63    lw      r5, (r4+44)
     64    sw      (r3+0), r0
     65    bi      3f
     662:
     67    mvhi    r5, hi(_Thread_Dispatch)
     68    ori     r5, r5, lo(_Thread_Dispatch)
     693:
     70    sw      (r1+80), r5
     71
    5772_CPU_Context_switch_restore:
    5873    lw      r11, (r2+0)   /* r2 is the second argument */
  • cpukit/score/cpu/lm32/irq.c

    ra4e752c raf2b90d  
    2929#endif
    3030
     31unsigned long *_exception_stack_frame;
     32
    3133register unsigned long  *stack_ptr asm("sp");
    3234
     
    3436{
    3537  register uint32_t   level;
     38  _exception_stack_frame = NULL;
    3639
    3740  /* Interrupts are disabled upon entry to this Handler */
     
    7881  if ( _Context_Switch_necessary || _ISR_Signals_to_thread_executing ) {
    7982    _ISR_Signals_to_thread_executing = FALSE;
     83
     84    /* save off our stack frame so the context switcher can get to it */
     85    _exception_stack_frame = ifr;
     86
    8087    _Thread_Dispatch();
     88
     89    /* and make sure its clear in case we didn't dispatch. if we did, its
     90     * already cleared */
     91    _exception_stack_frame = NULL;
    8192  }
    8293}
  • cpukit/score/cpu/lm32/rtems/score/cpu.h

    ra4e752c raf2b90d  
    483483  uint32_t ra;
    484484  uint32_t ie;
     485  uint32_t epc;
    485486} Context_Control;
    486487
Note: See TracChangeset for help on using the changeset viewer.