summaryrefslogtreecommitdiff
path: root/sysdeps/s390/s390-64/__longjmp.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-05-29 11:58:04 -0700
committerUlrich Drepper <drepper@redhat.com>2009-05-29 11:58:04 -0700
commitb8bb339f7d684654295aca2dedb69c2c069a7cab (patch)
tree18c54d5172896c4b72a70160e10bae9b807f85d9 /sysdeps/s390/s390-64/__longjmp.c
parent1de0c16183cf5f485ad44b6e5300844ec961b225 (diff)
Implement longjmp checking for s390.
Diffstat (limited to 'sysdeps/s390/s390-64/__longjmp.c')
-rw-r--r--sysdeps/s390/s390-64/__longjmp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/s390/s390-64/__longjmp.c b/sysdeps/s390/s390-64/__longjmp.c
index 030fb5b515..445bd3baf3 100644
--- a/sysdeps/s390/s390-64/__longjmp.c
+++ b/sysdeps/s390/s390-64/__longjmp.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 2001, 2005, 2009 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
@@ -33,6 +33,11 @@ __longjmp (__jmp_buf env, int val)
#ifdef PTR_DEMANGLE
register uintptr_t r3 __asm ("%r3") = THREAD_GET_POINTER_GUARD ();
register void *r1 __asm ("%r1") = (void *) env;
+# ifdef CHECK_SP
+ CHECK_SP (env, r3);
+# endif
+#elif defined CHECK_SP
+ CHECK_SP (env, 0);
#endif
/* Restore registers and jump back. */
asm volatile ("ld %%f7,104(%1)\n\t"