~vcs-imports/eglibc/trunk

« back to all changes in this revision

Viewing changes to libc/sysdeps/powerpc/powerpc32/setjmp-common.S

  • Committer: joseph
  • Date: 2014-01-03 17:51:28 UTC
  • Revision ID: svn-v4:7b3dc134-2b1b-0410-93df-9e9f96275f8d:trunk:24942
Merge changes between r24468 and r24941 from /fsf/trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* setjmp for PowerPC.
2
 
   Copyright (C) 1995-2013 Free Software Foundation, Inc.
 
2
   Copyright (C) 1995-2014 Free Software Foundation, Inc.
3
3
   This file is part of the GNU C Library.
4
4
 
5
5
   The GNU C Library is free software; you can redistribute it and/or
17
17
   <http://www.gnu.org/licenses/>.  */
18
18
 
19
19
#include <sysdep.h>
 
20
#include <stap-probe.h>
20
21
#define _ASM
21
22
#ifdef __NO_VMX__
22
23
# include <novmxsetjmp.h>
30
31
# define SAVE_GP(N)     stw r##N,((JB_GPRS+(N)-14)*4)(3)
31
32
#endif
32
33
 
33
 
ENTRY (__sigsetjmp)
 
34
ENTRY (__sigsetjmp_symbol)
34
35
 
35
36
#ifdef PTR_MANGLE
36
37
        mr   r5,r1
40
41
        stw  r1,(JB_GPR1*4)(3)
41
42
#endif
42
43
        mflr r0
 
44
        /* setjmp probe expects longjmp first argument (4@3), second argument
 
45
           (-4@4), and target address (4@0), respectively.  */
 
46
        LIBC_PROBE (setjmp, 3, 4@3, -4@4, 4@0)
43
47
        SAVE_GP (14)
44
48
#ifdef PTR_MANGLE
45
49
        PTR_MANGLE2 (r0, r10)
69
73
        li   r3,0
70
74
        blr
71
75
#else
72
 
        b __sigjmp_save@local
 
76
        b __sigjmp_save_symbol@local
73
77
#endif
74
 
END (__sigsetjmp)
 
78
END (__sigsetjmp_symbol)