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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [orpmon/] [reset.S] - Diff between revs 828 and 829

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

Rev 828 Rev 829
Line 30... Line 30...
_mycrc32:
_mycrc32:
        .word   0xcccccccc
        .word   0xcccccccc
_mysize:
_mysize:
        .word 0xdddddddd
        .word 0xdddddddd
 
 
 
.if SELF_CHECK
_calc_mycrc32:
_calc_mycrc32:
        l.addi  r3,r0,0
        l.addi  r3,r0,0
        l.movhi r4,hi(_calc_mycrc32)
        l.movhi r4,hi(_calc_mycrc32)
        l.ori   r4,r4,lo(_calc_mycrc32)
        l.ori   r4,r4,lo(_calc_mycrc32)
        l.movhi r5,hi(_mysize)
        l.movhi r5,hi(_mysize)
Line 52... Line 53...
 
 
        l.xor     r11,r3,r11
        l.xor     r11,r3,r11
        l.lwz   r9,0(r1)
        l.lwz   r9,0(r1)
        l.jr    r9
        l.jr    r9
        l.addi  r1,r1,4
        l.addi  r1,r1,4
 
.endif
 
 
        .org 0x100
        .org 0x100
.if IN_FLASH
.if IN_FLASH
        .section .reset, "ax"
        .section .reset, "ax"
.else
.else
Line 69... Line 71...
        l.addi  r5,r0,0x00
        l.addi  r5,r0,0x00
        l.sw    0(r3),r5
        l.sw    0(r3),r5
.endif
.endif
        l.movhi r3,hi(_start1)
        l.movhi r3,hi(_start1)
        l.ori   r3,r3,lo(_start1)
        l.ori   r3,r3,lo(_start1)
#        l.jr    r3
        l.jr    r3
        l.j _start1
        l.nop
 
 
.if IN_FLASH
.if IN_FLASH
        .section .vectors, "ax"
        .section .vectors, "ax"
        .org 0x600
        .org 0x600
.else
.else
Line 92... Line 94...
 
 
        l.j     _int_wrapper
        l.j     _int_wrapper
        l.nop
        l.nop
 
 
        .section .text
        .section .text
_start1:
 
        l.nop
        l.nop
 
_start1:
        l.jal   _putc
        l.jal   _putc
.if IN_FLASH
.if IN_FLASH
        l.jal   _init_mc
        l.jal   _init_mc
        l.nop
        l.nop
 
 

powered by: WebSVN 2.1.0

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