about summary refs log tree commit diff
path: root/src/setjmp/ppc/setjmp.S
blob: 7d0b9ac5b322c4982ea4ba354106a3cbe87d953f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <bits/asm.h>
        .global __setjmp
        .global _setjmp
        .global setjmp
        .type   __setjmp,@function
        .type   _setjmp,@function
        .type   setjmp,@function
__setjmp:
_setjmp:
setjmp:
        mflr    r11
        mfcr    r12
        mr      r10, r1
        mr      r9, r2
        stmw    r8, 0(r3)               // save r8-r31
        li      r3,0
        blr