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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [libgloss/] [m32r/] [trap.S] - Blame information for rev 1767

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
        .text
2
        .global __trap0
3
__trap0:
4
        trap    0                # trap 0 returns result in r2, error code in r3
5
        cmpui   r3,1            # is error code zero?
6
        bc      .Lret           # yes, skip setting errno
7
        st      r3,@r0          # no, set errno
8
.Lret:
9
        jmp     lr              # return to caller

powered by: WebSVN 2.1.0

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