OpenCores
URL https://opencores.org/ocsvn/minsoc/minsoc/trunk

Subversion Repositories minsoc

[/] [minsoc/] [trunk/] [sw/] [support/] [except.S] - Diff between revs 2 and 36

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 2 Rev 36
Line 62... Line 62...
    l.jal   store_regs                  //save registers r3-r31 (except r9) to stack (r9 is changed here)
    l.jal   store_regs                  //save registers r3-r31 (except r9) to stack (r9 is changed here)
    l.nop
    l.nop
 
 
    l.movhi r9,hi(end_except)           //set return addr to end_except instruction
    l.movhi r9,hi(end_except)           //set return addr to end_except instruction
    l.ori   r9,r9,lo(end_except)        //set return addr to end_except instruction
    l.ori   r9,r9,lo(end_except)        //set return addr to end_except instruction
        l.j     _lpint_except
        l.j     _tick_except
        l.nop
        l.nop
 
 
.org 0x400
.org 0x400
 
 
_except_600:
_except_600:
Line 104... Line 104...
    l.jal   store_regs                  //save registers r3-r31 (except r9) to stack (r9 is changed here)
    l.jal   store_regs                  //save registers r3-r31 (except r9) to stack (r9 is changed here)
    l.nop
    l.nop
 
 
    l.movhi r9,hi(end_except)           //set return addr to end_except instruction
    l.movhi r9,hi(end_except)           //set return addr to end_except instruction
    l.ori   r9,r9,lo(end_except)        //set return addr to end_except instruction
    l.ori   r9,r9,lo(end_except)        //set return addr to end_except instruction
    l.j _hpint_except                   //jmp to C interrupt handler (returns later to end_except)
    l.j _ext_except                         //jmp to C interrupt handler (returns later to end_except)
    l.nop
    l.nop
 
 
 
 
.org 0x700
.org 0x700
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.