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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [machine/] [necv70/] [setjmp.s] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1008 ivang
        .globl  _setjmp
2
_setjmp:
3
        mov.w   [ap],r0
4
        mov.d   r15,[r0+]
5
        mov.d   r17,[r0+]
6
        mov.d   r19,[r0+]
7
        mov.d   r21,[r0+]
8
        mov.d   r23,[r0+]
9
        mov.w   -0x4[ap],[r0+]
10
        mov.w   fp,[r0+]
11
        mov.w   ap,[r0+]
12
        mov.w   -0x8[ap],[r0]
13
        xor.w   r0,r0
14
        ret     #0x0
15
 
16
        .globl  _longjmp
17
_longjmp:
18
         mov.w    0x4[ap],r0
19
         mov.w    [ap],r1
20
         mov.d    [r1+],r15
21
         mov.d    [r1+],r17
22
         mov.d    [r1+],r19
23
         mov.d    [r1+],r21
24
         mov.d    [r1+],r23
25
         mov.d    [r1+],ap
26
         mov.w    [r1+],sp
27
         test.w   r0
28
         jne      noz
29
         mov.w    #0x1,r0
30
noz:     jmp      [0x0[r1]]
31
 
32
 
33
 

powered by: WebSVN 2.1.0

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