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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [bootloaders/] [orpmon/] [reset.S] - Diff between revs 375 and 406

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

Rev 375 Rev 406
Line 4... Line 4...
 
 
        .extern _src_beg
        .extern _src_beg
        .extern _dst_beg
        .extern _dst_beg
        .extern _dst_end
        .extern _dst_end
        .extern int_main
        .extern int_main
 
        .extern int_error
        .extern tick_interrupt
        .extern tick_interrupt
        .extern _crc32
        .extern _crc32
 
 
        .global _align
        .global _align
        .global _calc_mycrc32
        .global _calc_mycrc32
Line 84... Line 85...
_buserr:
_buserr:
.if 0
.if 0
        /* Just trap */
        /* Just trap */
        l.trap 0
        l.trap 0
.endif
.endif
 
.if 0
        l.nop 0x1
        l.nop 0x1
        l.j 0
        l.j 0
        l.nop
        l.nop
 
.endif
 
        l.j _int_error
 
        l.ori r3, r0, 0x2
 
 
.if IN_FLASH
.if IN_FLASH
        .section .vectors, "ax"
        .section .vectors, "ax"
        .org 0x500
        .org 0x500
.else
.else
Line 125... Line 129...
.endif
.endif
_alignerr:
_alignerr:
.if 0
.if 0
        l.trap 0
        l.trap 0
.endif
.endif
 
.if 0
        l.nop 0x1
        l.nop 0x1
        l.j 0
        l.j 0
        l.nop
        l.nop
 
.endif
 
        l.j _int_error
 
        l.ori r3, r0, 0x6
 
 
.if IN_FLASH
.if IN_FLASH
        .org 0x700
        .org 0x700
.else
.else
        .org (0x700 - 0x100 + _reset)
        .org (0x700 - 0x100 + _reset)
Line 139... Line 147...
_illinsn:
_illinsn:
.if 0
.if 0
        /* Just trap */
        /* Just trap */
        l.trap 0
        l.trap 0
.endif
.endif
 
.if 0
        l.nop 0x1
        l.nop 0x1
        l.j 0
        l.j 0
        l.nop
        l.nop
 
.endif
 
        l.j _int_error
 
        l.ori r3, r0, 0x7
 
 
.if IN_FLASH
.if IN_FLASH
        .org 0x800
        .org 0x800
.else
.else
        .org (0x800 - 0x100 + _reset)
        .org (0x800 - 0x100 + _reset)
Line 604... Line 615...
        l.lwz   r30,0x78(r1)
        l.lwz   r30,0x78(r1)
        l.mfspr r31,r0,0x40
        l.mfspr r31,r0,0x40
        l.lwz   r31,0x7c(r1)
        l.lwz   r31,0x7c(r1)
        l.addi  r1,r1,128
        l.addi  r1,r1,128
        l.rfe
        l.rfe
 
 
 
 
 
        /* Jump to error function. Clobber r2 */
 
_int_error:
 
        l.movhi r2,hi(int_error)
 
        l.ori   r2,r2,lo(int_error)
 
        l.jr  r2
 
        l.nop

powered by: WebSVN 2.1.0

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