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

Subversion Repositories or1k

[/] [or1k/] [branches/] [oc/] [newlib/] [libgloss/] [m32r/] [trap.S] - Rev 1771

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

        .text
        .global __trap0
__trap0:
        trap    0                # trap 0 returns result in r2, error code in r3
        cmpui   r3,1            # is error code zero?
        bc      .Lret           # yes, skip setting errno
        st      r3,@r0          # no, set errno
.Lret:
        jmp     lr              # return to caller

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

powered by: WebSVN 2.1.0

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