1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #define _SETJMP_H
- #define _ASM
- #include <bits/setjmp.h>
- #include <clinkage.h>
- .text
- C_ENTRY(setjmp):
- addi r6, r0, 1
- braid C_SYMBOL_NAME(__sigsetjmp)
- nop
- .globl C_SYMBOL_NAME(_setjmp)
- C_SYMBOL_NAME(_setjmp):
- add r6, r0, r0
- .globl C_SYMBOL_NAME(__sigsetjmp)
- C_SYMBOL_NAME(__sigsetjmp):
-
- swi r1, r5, 0
- swi r15, r5, 4
- swi r18, r5, 8
- swi r19, r5, 12
- swi r20, r5, 16
- swi r21, r5, 20
- swi r22, r5, 24
- swi r23, r5, 28
- swi r24, r5, 32
- swi r25, r5, 36
- swi r26, r5, 40
- swi r27, r5, 44
- swi r28, r5, 48
- swi r29, r5, 52
- swi r30, r5, 56
-
- braid C_SYMBOL_NAME(__sigjmp_save)
- nop
- C_END(setjmp)
|