about summary refs log tree commit diff
path: root/sysdeps/sh/sh3
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@rr.iij4u.or.jp>2009-05-18 15:44:09 -0700
committerUlrich Drepper <drepper@redhat.com>2009-05-18 15:44:09 -0700
commit04733592f8e83acd46a505b81fbfebc3ff70a7bc (patch)
tree5a80fa1fcb134c0a750fa88a6de90e5e0054b20a /sysdeps/sh/sh3
parent5078fff6c4bc1c71c5d558ff7ec4775aa48b0c11 (diff)
downloadglibc-04733592f8e83acd46a505b81fbfebc3ff70a7bc.tar.gz
glibc-04733592f8e83acd46a505b81fbfebc3ff70a7bc.tar.xz
glibc-04733592f8e83acd46a505b81fbfebc3ff70a7bc.zip
Add ____longjmp_chk for SH.
Following the previous changes for x86 and x86-64.
Diffstat (limited to 'sysdeps/sh/sh3')
-rw-r--r--sysdeps/sh/sh3/__longjmp.S9
1 files changed, 8 insertions, 1 deletions
diff --git a/sysdeps/sh/sh3/__longjmp.S b/sysdeps/sh/sh3/__longjmp.S
index c6d8a3214c..8c84aff9b4 100644
--- a/sysdeps/sh/sh3/__longjmp.S
+++ b/sysdeps/sh/sh3/__longjmp.S
@@ -1,5 +1,5 @@
 /* longjmp for SH.
-   Copyright (C) 1999, 2000, 2005, 2006 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000, 2005, 2006, 2009 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
@@ -42,6 +42,9 @@ ENTRY (__longjmp)
 	mov	r2, r14
 	mov.l	@r4+, r2
 	PTR_DEMANGLE2 (r2, r1)
+# ifdef CHECK_SP
+	CHECK_SP (r2)
+# endif
 	mov	r2, r15
 	mov.l	@r4+, r2
 	PTR_DEMANGLE2 (r2, r1)
@@ -49,6 +52,10 @@ ENTRY (__longjmp)
 	mov	#0, r1
 #else
 	mov.l	@r4+, r14
+# ifdef CHECK_SP
+	mov.l	@r4, r2
+	CHECK_SP (r2)
+# endif
 	mov.l	@r4+, r15
 	lds.l	@r4+, pr
 #endif