Changeset 909c6e3 in mainline for arch/mips/src/start.S


Ignore:
Timestamp:
2005-09-07T09:44:30Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d246e7e
Parents:
24bd23a
Message:

MIPS exception now saves all necesssary information only on stack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips/src/start.S

    r24bd23a r909c6e3  
    3232#include <arch/mm/page.h>
    3333#include <arch/asm/boot.h>
    34 #include <arch/context.h>
     34#include <arch/context_offset.h>
    3535       
    3636.text
     
    5656        sw $a2,EOFFSET_A2(\r)
    5757        sw $a3,EOFFSET_A3(\r)
    58         sw $t0,EOFFSET_A4(\r)
     58        sw $t0,EOFFSET_T0(\r)
    5959        sw $t1,EOFFSET_T1(\r)
    6060        sw $t2,EOFFSET_T2(\r)
     
    8787        mfc0 $at, $status
    8888        sw $at,EOFFSET_STATUS(\r)
     89        mfc0 $at, $epc
     90        sw $at,EOFFSET_EPC(\r)
    8991.endm
    9092
     
    9698        lw $a2,EOFFSET_A2(\r)
    9799        lw $a3,EOFFSET_A3(\r)
    98         lw $t0,EOFFSET_A4(\r)
     100        lw $t0,EOFFSET_T0(\r)
    99101        lw $t1,EOFFSET_T1(\r)
    100102        lw $t2,EOFFSET_T2(\r)
     
    125127        lw $at,EOFFSET_STATUS(\r)
    126128        mtc0 $at, $status
     129        lw $at,EOFFSET_EPC(\r)
     130        mtc0 $at, $epc
    127131       
    128132        lw $at,EOFFSET_AT(\r)
     
    192196        add $sp, $k0, 0
    193197
    194         jal exception
     198        add $a0, $sp, 0
     199        jal exception /* exception(register_space) */
    195200        nop
    196201
     
    206211        add $sp, $k0, 0
    207212
    208         jal tlb_refill
     213        add $a0, $sp, 0
     214        jal tlb_refill /* tlb_refill(register_space) */
    209215        nop
    210216
Note: See TracChangeset for help on using the changeset viewer.