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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [libc/] [sysdeps/] [linux/] [h8300/] [setjmp.S] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
#ifdef __H8300S__
2
        .h8300s
3
#else
4
        .h8300h
5
#endif
6
        .text
7
 
8
.global __setjmp
9
.global ___sigsetjmp
10
.global ___longjmp
11
 
12
__setjmp:
13
___sigsetjmp:
14
        add.l   #20,er0
15
        mov.l   er6,@er0
16
        mov.l   er5,@-er0
17
        mov.l   er4,@-er0
18
        mov.l   er3,@-er0
19
        mov.l   er2,@-er0
20
        mov.l   er1,@-er0
21
        mov.l   sp,@(24,er0)
22
        mov.l   @sp,er1
23
        mov.l   er1,@(28,er0)
24
        sub.l   er0,er0
25
        rts
26
 
27
___longjmp:
28
        mov.l   er1,er1
29
        bne     1f
30
        sub.l   er1,er1
31
        inc.l   #1,er1
32
1:
33
        adds    #4,er0
34
        adds    #4,er0
35
        mov.l   @er0+,er3
36
        mov.l   @er0+,er4
37
        mov.l   @er0+,er5
38
        mov.l   @er0+,er6
39
        mov.l   @er0+,sp
40
        mov.l   @er0,er2
41
        mov.l   er2,@sp
42
        mov.l   er1,er2
43
        mov.l   er0,er1
44
        mov.l   er2,er0
45
        sub.l   #28,er1
46
        mov.l   @(4,er1),er2
47
        mov.l   @er1,er1
48
        rts
49
 

powered by: WebSVN 2.1.0

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