Changeset ba2adf5 in rtems for cpukit/score/cpu/sparc/cpu_asm.S


Ignore:
Timestamp:
Jan 19, 1999, 8:09:33 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
1924610
Parents:
b33d8a2
Message:

Patch from Jiri Gaisler <jgais@…>:

getting the spurious trap handling to work required a couple more
fixes - I have attached a patch against rtems-4.0.0 with the
necessary changes. I also added functionality so that the
address of the trapped instruction is reported and in case of
a data access error, the data address is also reported.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/sparc/cpu_asm.S

    rb33d8a2 rba2adf5  
    337337        be,a    win_ovflow            ! No, then skip the adjustment
    338338        nop                           ! DELAY
     339        mov     %l1, %l6              ! save trapped pc for debug info
    339340        mov     %l2, %l1              ! do not return to the instruction
    340341        add     %l2, 4, %l2           ! indicated
     
    442443        rd      %y, %g1
    443444        st      %g1, [%sp + ISF_Y_OFFSET]      ! save y
     445        st      %l6, [%sp + ISF_TPC_OFFSET]    ! save real trapped pc
    444446
    445447        mov     %sp, %o1                       ! 2nd arg to ISR Handler
Note: See TracChangeset for help on using the changeset viewer.