Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2014 10:07:49 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r261829 - in projects/arm64/lib: libc/arm64/gen libstand
Message-ID:  <201402131007.s1DA7n5t097756@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Thu Feb 13 10:07:49 2014
New Revision: 261829
URL: http://svnweb.freebsd.org/changeset/base/261829

Log:
  Add an empty _setjmp and _longjmp for libstand.

Added:
  projects/arm64/lib/libc/arm64/gen/
  projects/arm64/lib/libc/arm64/gen/_setjmp.S   (contents, props changed)
Modified:
  projects/arm64/lib/libstand/Makefile

Added: projects/arm64/lib/libc/arm64/gen/_setjmp.S
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ projects/arm64/lib/libc/arm64/gen/_setjmp.S	Thu Feb 13 10:07:49 2014	(r261829)
@@ -0,0 +1,37 @@
+/*-
+ * Copyright (c) 2014 Andrew Turner
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ */
+
+	.globl _setjmp
+_setjmp:
+	b _setjmp
+	ret
+
+	.globl _longjmp
+_longjmp:
+	b _longjmp
+	ret
+

Modified: projects/arm64/lib/libstand/Makefile
==============================================================================
--- projects/arm64/lib/libstand/Makefile	Thu Feb 13 09:24:46 2014	(r261828)
+++ projects/arm64/lib/libstand/Makefile	Thu Feb 13 10:07:49 2014	(r261829)
@@ -80,8 +80,12 @@ SRCS+=	udivmoddi4.c udivmodsi4.c udivdi3
 SRCS+=	aeabi_idivmod.S aeabi_ldivmod.S aeabi_uidivmod.S aeabi_uldivmod.S
 SRCS+=	aeabi_memcmp.S aeabi_memcpy.S aeabi_memmove.S aeabi_memset.S
 .endif
+.endif
 
+.if ${MACHINE_CPUARCH} == "arm64"
+.PATH: ${.CURDIR}/../libc/arm64/gen
 .endif
+
 .if ${MACHINE_CPUARCH} == "ia64"
 .PATH: ${.CURDIR}/../libc/ia64/string
 SRCS+=	bcmp.c bcopy.S bzero.S ffs.S memccpy.c memchr.c memcmp.c memcpy.S \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402131007.s1DA7n5t097756>