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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [orpmon/] [reset.S] - Diff between revs 820 and 822

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

Rev 820 Rev 822
Line 18... Line 18...
 
 
        .global _lolev_ie
        .global _lolev_ie
        .global _lolev_idis
        .global _lolev_idis
        .global _align
        .global _align
        .global _calc_mycrc32
        .global _calc_mycrc32
 
        .global _mycrc32
 
        .global _mysize
 
 
        .section .stack, "aw", @nobits
        .section .stack, "aw", @nobits
.space  STACK_SIZE
.space  STACK_SIZE
_stack:
_stack:
                                .section .crc
                                .section .crc
Line 35... Line 37...
        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)
        l.ori   r5,r5,lo(_mysize)
        l.ori   r5,r5,lo(_mysize)
        l.lwz   r5,0(r5)
        l.lwz   r5,0(r5)
 
        l.addi  r1,r1,-4
 
                                l.sw    0(r1),r9
 
 
        /* unsigned long crc32 (unsigned long crc, const unsigned char *buf, unsigned long len); */
        /* unsigned long crc32 (unsigned long crc, const unsigned char *buf, unsigned long len); */
                                l.jal           _crc32
                                l.jal           _crc32
                                l.nop
                                l.nop
 
 
                                l.movhi r3,hi(_mycrc32)
                                l.movhi r3,hi(_mycrc32)
        l.ori   r3,r3,lo(_mycrc32)
        l.ori   r3,r3,lo(_mycrc32)
        l.lwz   r3,0(r3)
        l.lwz   r3,0(r3)
 
 
        l.jr            r9
 
                                l.xor     r11,r3,r11
                                l.xor     r11,r3,r11
 
        l.lwz   r9,0(r1)
 
        l.jr    r9
 
        l.addi  r1,r1,4
 
 
                                .org 0x100
                                .org 0x100
 
 
.if IN_FLASH
.if IN_FLASH
        .section .reset, "ax"
        .section .reset, "ax"
.else
.else
Line 80... Line 87...
 
 
        l.j     _int_wrapper
        l.j     _int_wrapper
        l.nop
        l.nop
 
 
        .section .text
        .section .text
 
        l.nop
_start:
_start:
.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-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.