Add support for IDE controllers with identity crisis
[yaboot.git] / second / setjmp.S
1         .globl  __sigsetjmp
2 __sigsetjmp:
3         mflr    0
4         stw     1,0(3)
5         stw     2,4(3)
6         stw     0,8(3)
7         stw     14,12(3)
8         stw     15,16(3)
9         stw     16,20(3)
10         stw     17,24(3)
11         stw     18,28(3)
12         stw     19,32(3)
13         stw     20,36(3)
14         stw     21,40(3)
15         stw     22,44(3)
16         stw     23,48(3)
17         stw     24,52(3)
18         stw     25,56(3)
19         stw     26,60(3)
20         stw     27,64(3)
21         stw     28,68(3)
22         stw     29,72(3)
23         stw     30,76(3)
24         stw     31,80(3)
25         li      3,0
26         blr
27
28         .globl  longjmp
29 longjmp:
30         cmpwi   0,4,0
31         bne     1f
32         li      4,1
33 1:      lwz     1,0(3)
34         lwz     2,4(3)
35         lwz     0,8(3)
36         lwz     14,12(3)
37         lwz     15,16(3)
38         lwz     16,20(3)
39         lwz     17,24(3)
40         lwz     18,28(3)
41         lwz     19,32(3)
42         lwz     20,36(3)
43         lwz     21,40(3)
44         lwz     22,44(3)
45         lwz     23,48(3)
46         lwz     24,52(3)
47         lwz     25,56(3)
48         lwz     26,60(3)
49         lwz     27,64(3)
50         lwz     28,68(3)
51         lwz     29,72(3)
52         lwz     30,76(3)
53         lwz     31,80(3)
54         mtlr    0
55         mr      3,4
56         blr