Forward MUIM_Notify, MUIM_KillNotify and MUIM_KillNotifyObj from a listview
[AROS.git] / arch / ppc-all / posixc / sigsetjmp.s
blobed0428de506cc3cd9404e3d82df6503e8d31749e
1 /*
2 Copyright © 2015, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: ANSI C function sigsetjmp()
6 Lang: english
7 */
9 /******************************************************************************
11 NAME
12 #include <setjmp.h>
14 int sigsetjmp (jmp_buf env);
16 FUNCTION
17 Save the current context so that you can return to it later.
19 INPUTS
20 env - The context/environment is saved here for later restoring
22 RESULT
23 0 if it returns from sigsetjmp() and 1 when it returns from longjmp().
25 NOTES
27 EXAMPLE
28 jmp_buf env;
30 ... some code ...
32 if (!sigsetjmp (env))
34 ... this code is executed after sigsetjmp() returns ...
36 // This is no good example on how to use this function
37 // You should not do that
38 if (error)
39 longjmp (env, 5);
41 ... some code ...
43 else
45 ... this code is executed if you call longjmp(env) ...
48 BUGS
50 SEE ALSO
51 longjmp()
53 INTERNALS
55 HISTORY
56 12.10.1999 Code rewritten according to glibc
57 ******************************************************************************/
59 #include "aros/ppc/asm.h"
61 .text
62 _ALIGNMENT
63 .global AROS_CDEFNAME(sigsetjmp)
64 _FUNCTION(AROS_CDEFNAME(sigsetjmp))
66 AROS_CDEFNAME(sigsetjmp):
67 stw %r1, 4(3)
68 mflr %r0
69 stw %r2, 8(3)
70 stw %r14, 16(3)
71 stfd %f14, 88(3)
72 stw %r0, 0(3)
73 stw %r15, 20(3)
74 stfd %f15, 96(3)
75 mfcr %r0
76 stw %r16, 24(3)
77 stfd %f16,104(3)
78 stw %r0, 12(3)
79 stw %r17, 28(3)
80 stfd %f17,112(3)
81 stw %r18, 32(3)
82 stfd %f18,120(3)
83 stw %r19, 36(3)
84 stfd %f19,128(3)
85 stw %r20, 40(3)
86 stfd %f20,136(3)
87 stw %r21, 44(3)
88 stfd %f21,144(3)
89 stw %r22, 48(3)
90 stfd %f22,152(3)
91 stw %r23, 52(3)
92 stfd %f23,160(3)
93 stw %r24, 56(3)
94 stfd %f24,168(3)
95 stw %r25, 60(3)
96 stfd %f25,176(3)
97 stw %r26, 64(3)
98 stfd %f26,184(3)
99 stw %r27, 68(3)
100 stfd %f27,192(3)
101 stw %r28, 72(3)
102 stfd %f28,200(3)
103 stw %r29, 76(3)
104 stfd %f29,208(3)
105 stw %r30, 80(3)
106 stfd %f30,216(3)
107 stw %r31, 84(3)
108 stfd %f31,224(3)
109 li %r3,0