]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/unix/sh/sysdep.S
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sysdeps / unix / sh / sysdep.S
index 074b74333c0eca28380503ba8cb2d7b95b1e5019..43a9020beebcccfa7ac4afda867f68dca2a58d0f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1999-2015 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -12,9 +12,8 @@
    Lesser General Public License for more details.
 
    You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
+   License along with the GNU C Library; if not, see
+   <http://www.gnu.org/licenses/>.  */
 
 #include <sysdep.h>
 #define _ERRNO_H
@@ -40,14 +39,23 @@ skip:
 #else
        mov.l   .L3, r1
        sts.l   pr, @-r15
+       cfi_adjust_cfa_offset (4)
+       cfi_rel_offset (pr, 0)
+       mov.l   r0, @-r15
+       cfi_adjust_cfa_offset (4)
        jsr     @r1
-        mov.l  r0, @-r15
+        nop
        mov.l   @r15+, r1
+       cfi_adjust_cfa_offset (-4)
        lds.l   @r15+, pr
+       cfi_adjust_cfa_offset (-4)
+       cfi_restore (pr)
        mov.l   r1, @r0
 #endif
 #else
        mov.l   r12, @-r15
+       cfi_adjust_cfa_offset (4)
+       cfi_rel_offset (r12, 0)
 #ifndef _LIBC_REENTRANT
        mov     r0, r2
         mov.l  0f, r12
@@ -58,7 +66,10 @@ skip:
        mov.l   r2, @r1
 #else
        mov.l   r0, @-r15
+       cfi_adjust_cfa_offset (4)
        sts.l   pr, @-r15
+       cfi_adjust_cfa_offset (4)
+       cfi_rel_offset (pr, 0)
         mov.l  0f, r12
        mova    0f, r0
        add     r0, r12
@@ -68,10 +79,15 @@ skip:
        jsr     @r1
         nop
        lds.l   @r15+, pr
+       cfi_adjust_cfa_offset (-4)
+       cfi_restore (pr)
        mov.l   @r15+, r1
+       cfi_adjust_cfa_offset (-4)
        mov.l   r1, @r0
 #endif
        mov.l   @r15+, r12
+       cfi_adjust_cfa_offset (-4)
+       cfi_restore (r12)
 #endif
        /* And just kick back a -1.  */
        rts
@@ -98,5 +114,3 @@ skip:
 #endif
 #endif
 END(__syscall_error)
-
-weak_alias (__syscall_error, syscall_error)