Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Oct 2002 23:42:40 -0700 (PDT)
From:      Serguei Tzukanov <tzukanov@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 19125 for review
Message-ID:  <200210120642.g9C6geup077504@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=19125

Change 19125 by tzukanov@tzukanov_antares on 2002/10/11 23:42:19

	Most of userspace changes and support for s390-*-freebsd in gnu/...

Affected files ...

.. //depot/projects/s390/etc/etc.s390/rc.s390#1 add
.. //depot/projects/s390/etc/etc.s390/ttys#1 add
.. //depot/projects/s390/etc/etc.s390x/rc.s390x#1 add
.. //depot/projects/s390/etc/etc.s390x/ttys#1 add
.. //depot/projects/s390/gnu/lib/libgcc/Makefile#3 edit
.. //depot/projects/s390/gnu/usr.bin/binutils/as/s390-freebsd/Makefile#1 add
.. //depot/projects/s390/gnu/usr.bin/binutils/as/s390-freebsd/config.h#1 add
.. //depot/projects/s390/gnu/usr.bin/binutils/as/s390-freebsd/targ-cpu.h#1 add
.. //depot/projects/s390/gnu/usr.bin/binutils/as/s390x-freebsd/Makefile#1 add
.. //depot/projects/s390/gnu/usr.bin/binutils/as/s390x-freebsd/config.h#1 add
.. //depot/projects/s390/gnu/usr.bin/binutils/as/s390x-freebsd/targ-cpu.h#1 add
.. //depot/projects/s390/gnu/usr.bin/binutils/ld/Makefile.s390#1 add
.. //depot/projects/s390/gnu/usr.bin/binutils/ld/Makefile.s390x#1 add
.. //depot/projects/s390/gnu/usr.bin/binutils/libbfd/Makefile#3 edit
.. //depot/projects/s390/gnu/usr.bin/binutils/libbfd/Makefile.s390#1 add
.. //depot/projects/s390/gnu/usr.bin/binutils/libbfd/Makefile.s390x#1 add
.. //depot/projects/s390/gnu/usr.bin/binutils/libbfd/s390/bfd.h#1 add
.. //depot/projects/s390/gnu/usr.bin/binutils/libbfd/s390x/bfd.h#1 add
.. //depot/projects/s390/gnu/usr.bin/binutils/libopcodes/Makefile.s390#1 add
.. //depot/projects/s390/gnu/usr.bin/binutils/libopcodes/Makefile.s390x#1 add
.. //depot/projects/s390/gnu/usr.bin/cc/Makefile.tgt#3 edit
.. //depot/projects/s390/gnu/usr.bin/cc/cc_tools/Makefile#3 edit
.. //depot/projects/s390/gnu/usr.bin/cc/cc_tools/auto-host.h#3 edit
.. //depot/projects/s390/gnu/usr.bin/send-pr/categories#2 edit
.. //depot/projects/s390/lib/csu/s390/Makefile#1 add
.. //depot/projects/s390/lib/csu/s390/crt1.c#1 add
.. //depot/projects/s390/lib/csu/s390/crti.S#1 add
.. //depot/projects/s390/lib/csu/s390/crtn.S#1 add
.. //depot/projects/s390/lib/csu/s390x/Makefile#1 add
.. //depot/projects/s390/lib/csu/s390x/crt1.c#1 add
.. //depot/projects/s390/lib/csu/s390x/crti.S#1 add
.. //depot/projects/s390/lib/csu/s390x/crtn.S#1 add
.. //depot/projects/s390/lib/libc/gmon/gmon.c#3 edit
.. //depot/projects/s390/lib/libc/s390/Makefile.inc#1 add
.. //depot/projects/s390/lib/libc/s390/SYS.h#1 add
.. //depot/projects/s390/lib/libc/s390/gen/Makefile.inc#1 add
.. //depot/projects/s390/lib/libc/s390/gen/_ctx_start.S#1 add
.. //depot/projects/s390/lib/libc/s390/gen/fabs.S#1 add
.. //depot/projects/s390/lib/libc/s390/gen/flt_rounds.S#1 add
.. //depot/projects/s390/lib/libc/s390/gen/frexp.S#1 add
.. //depot/projects/s390/lib/libc/s390/gen/getcontext.S#1 add
.. //depot/projects/s390/lib/libc/s390/gen/infinity.c#1 add
.. //depot/projects/s390/lib/libc/s390/gen/isinf.S#1 add
.. //depot/projects/s390/lib/libc/s390/gen/ldexp.S#1 add
.. //depot/projects/s390/lib/libc/s390/gen/makecontext.c#1 add
.. //depot/projects/s390/lib/libc/s390/gen/modf.S#1 add
.. //depot/projects/s390/lib/libc/s390/gen/setjmp.S#1 add
.. //depot/projects/s390/lib/libc/s390/net/Makefile.inc#1 add
.. //depot/projects/s390/lib/libc/s390/net/htonl.S#1 add
.. //depot/projects/s390/lib/libc/s390/net/htons.S#1 add
.. //depot/projects/s390/lib/libc/s390/net/ntohl.S#1 add
.. //depot/projects/s390/lib/libc/s390/net/ntohs.S#1 add
.. //depot/projects/s390/lib/libc/s390/stdlib/Makefile.inc#1 add
.. //depot/projects/s390/lib/libc/s390/stdlib/abs.S#1 add
.. //depot/projects/s390/lib/libc/s390/stdlib/div.S#1 add
.. //depot/projects/s390/lib/libc/s390/stdlib/labs.S#1 add
.. //depot/projects/s390/lib/libc/s390/stdlib/ldiv.S#1 add
.. //depot/projects/s390/lib/libc/s390/string/Makefile.inc#1 add
.. //depot/projects/s390/lib/libc/s390/string/bcmp.S#1 add
.. //depot/projects/s390/lib/libc/s390/string/bcopy.S#1 add
.. //depot/projects/s390/lib/libc/s390/string/bzero.S#1 add
.. //depot/projects/s390/lib/libc/s390/string/ffs.S#1 add
.. //depot/projects/s390/lib/libc/s390/string/index.S#1 add
.. //depot/projects/s390/lib/libc/s390/string/memchr.S#1 add
.. //depot/projects/s390/lib/libc/s390/string/memcmp.S#1 add
.. //depot/projects/s390/lib/libc/s390/string/memcpy.S#1 add
.. //depot/projects/s390/lib/libc/s390/string/memmove.S#1 add
.. //depot/projects/s390/lib/libc/s390/string/memset.S#1 add
.. //depot/projects/s390/lib/libc/s390/string/strcat.S#1 add
.. //depot/projects/s390/lib/libc/s390/string/strchr.S#1 add
.. //depot/projects/s390/lib/libc/s390/string/strcmp.S#1 add
.. //depot/projects/s390/lib/libc/s390/string/strcpy.S#1 add
.. //depot/projects/s390/lib/libc/s390/string/strlen.S#1 add
.. //depot/projects/s390/lib/libc/s390/sys/Makefile.inc#1 add
.. //depot/projects/s390/lib/libc/s390/sys/brk.S#1 add
.. //depot/projects/s390/lib/libc/s390/sys/cerror.S#1 add
.. //depot/projects/s390/lib/libc/s390/sys/exect.S#1 add
.. //depot/projects/s390/lib/libc/s390/sys/pipe.S#1 add
.. //depot/projects/s390/lib/libc/s390/sys/ptrace.S#1 add
.. //depot/projects/s390/lib/libc/s390/sys/s390_sysinfo.2#1 add
.. //depot/projects/s390/lib/libc/s390/sys/s390_sysinfo.c#1 add
.. //depot/projects/s390/lib/libc/s390/sys/sbrk.S#1 add
.. //depot/projects/s390/lib/libc/s390/sys/setlogin.S#1 add
.. //depot/projects/s390/lib/libc/s390x/Makefile.inc#1 add
.. //depot/projects/s390/lib/libc/s390x/SYS.h#1 add
.. //depot/projects/s390/lib/libc/s390x/gen/Makefile.inc#1 add
.. //depot/projects/s390/lib/libc/s390x/gen/_ctx_start.S#1 add
.. //depot/projects/s390/lib/libc/s390x/gen/fabs.S#1 add
.. //depot/projects/s390/lib/libc/s390x/gen/frexp.S#1 add
.. //depot/projects/s390/lib/libc/s390x/gen/getcontext.S#1 add
.. //depot/projects/s390/lib/libc/s390x/gen/infinity.c#1 add
.. //depot/projects/s390/lib/libc/s390x/gen/isinf.S#1 add
.. //depot/projects/s390/lib/libc/s390x/gen/ldexp.S#1 add
.. //depot/projects/s390/lib/libc/s390x/gen/makecontext.c#1 add
.. //depot/projects/s390/lib/libc/s390x/gen/modf.S#1 add
.. //depot/projects/s390/lib/libc/s390x/gen/setjmp.S#1 add
.. //depot/projects/s390/lib/libc/s390x/net/Makefile.inc#1 add
.. //depot/projects/s390/lib/libc/s390x/net/htonl.S#1 add
.. //depot/projects/s390/lib/libc/s390x/net/htons.S#1 add
.. //depot/projects/s390/lib/libc/s390x/net/ntohl.S#1 add
.. //depot/projects/s390/lib/libc/s390x/net/ntohs.S#1 add
.. //depot/projects/s390/lib/libc/s390x/stdlib/Makefile.inc#1 add
.. //depot/projects/s390/lib/libc/s390x/stdlib/abs.S#1 add
.. //depot/projects/s390/lib/libc/s390x/stdlib/div.S#1 add
.. //depot/projects/s390/lib/libc/s390x/stdlib/labs.S#1 add
.. //depot/projects/s390/lib/libc/s390x/stdlib/ldiv.S#1 add
.. //depot/projects/s390/lib/libc/s390x/string/Makefile.inc#1 add
.. //depot/projects/s390/lib/libc/s390x/string/bcmp.S#1 add
.. //depot/projects/s390/lib/libc/s390x/string/bcopy.S#1 add
.. //depot/projects/s390/lib/libc/s390x/string/bzero.S#1 add
.. //depot/projects/s390/lib/libc/s390x/string/ffs.S#1 add
.. //depot/projects/s390/lib/libc/s390x/string/index.S#1 add
.. //depot/projects/s390/lib/libc/s390x/string/memchr.S#1 add
.. //depot/projects/s390/lib/libc/s390x/string/memcmp.S#1 add
.. //depot/projects/s390/lib/libc/s390x/string/memcpy.S#1 add
.. //depot/projects/s390/lib/libc/s390x/string/memmove.S#1 add
.. //depot/projects/s390/lib/libc/s390x/string/memset.S#1 add
.. //depot/projects/s390/lib/libc/s390x/string/strcat.S#1 add
.. //depot/projects/s390/lib/libc/s390x/string/strchr.S#1 add
.. //depot/projects/s390/lib/libc/s390x/string/strcmp.S#1 add
.. //depot/projects/s390/lib/libc/s390x/string/strcpy.S#1 add
.. //depot/projects/s390/lib/libc/s390x/string/strlen.S#1 add
.. //depot/projects/s390/lib/libc/s390x/sys/Makefile.inc#1 add
.. //depot/projects/s390/lib/libc/s390x/sys/brk.S#1 add
.. //depot/projects/s390/lib/libc/s390x/sys/cerror.S#1 add
.. //depot/projects/s390/lib/libc/s390x/sys/exect.S#1 add
.. //depot/projects/s390/lib/libc/s390x/sys/pipe.S#1 add
.. //depot/projects/s390/lib/libc/s390x/sys/ptrace.S#1 add
.. //depot/projects/s390/lib/libc/s390x/sys/s390_sysinfo.2#1 add
.. //depot/projects/s390/lib/libc/s390x/sys/s390_sysinfo.c#1 add
.. //depot/projects/s390/lib/libc/s390x/sys/sbrk.S#1 add
.. //depot/projects/s390/lib/libc/s390x/sys/setlogin.S#1 add
.. //depot/projects/s390/lib/libc/stdlib/malloc.c#3 edit
.. //depot/projects/s390/lib/libc/stdlib/strtod.c#3 edit
.. //depot/projects/s390/lib/libc/xdr/xdr_float.c#2 edit
.. //depot/projects/s390/lib/libc_r/arch/s390/_atomic_lock.S#1 add
.. //depot/projects/s390/lib/libc_r/arch/s390x/_atomic_lock.S#1 add
.. //depot/projects/s390/lib/libkvm/kvm_s390.c#1 add
.. //depot/projects/s390/lib/libkvm/kvm_s390x.c#1 add
.. //depot/projects/s390/lib/libstand/s390/_setjmp.S#1 add
.. //depot/projects/s390/lib/libstand/zalloc_defs.h#3 edit
.. //depot/projects/s390/lib/msun/Makefile#2 edit
.. //depot/projects/s390/lib/msun/s390/e_fmod.S#1 add
.. //depot/projects/s390/lib/msun/s390/e_fmodf.S#1 add
.. //depot/projects/s390/lib/msun/s390/e_hypot.S#1 add
.. //depot/projects/s390/lib/msun/s390/e_hypotf.S#1 add
.. //depot/projects/s390/lib/msun/s390/e_remainder.S#1 add
.. //depot/projects/s390/lib/msun/s390/e_remainderf.S#1 add
.. //depot/projects/s390/lib/msun/s390/e_sqrt.S#1 add
.. //depot/projects/s390/lib/msun/s390/e_sqrtf.S#1 add
.. //depot/projects/s390/lib/msun/s390/s_ceil.S#1 add
.. //depot/projects/s390/lib/msun/s390/s_ceilf.S#1 add
.. //depot/projects/s390/lib/msun/s390/s_copysign.S#1 add
.. //depot/projects/s390/lib/msun/s390/s_copysignf.S#1 add
.. //depot/projects/s390/lib/msun/s390/s_fabs.S#1 add
.. //depot/projects/s390/lib/msun/s390/s_fabsf.S#1 add
.. //depot/projects/s390/lib/msun/s390/s_finite.S#1 add
.. //depot/projects/s390/lib/msun/s390/s_finitef.S#1 add
.. //depot/projects/s390/lib/msun/s390/s_floor.S#1 add
.. //depot/projects/s390/lib/msun/s390/s_floorf.S#1 add
.. //depot/projects/s390/lib/msun/s390/s_rint.S#1 add
.. //depot/projects/s390/lib/msun/s390/s_rintf.S#1 add
.. //depot/projects/s390/lib/msun/src/math_private.h#2 edit
.. //depot/projects/s390/libexec/rtld-elf/s390/Makefile.inc#1 add
.. //depot/projects/s390/libexec/rtld-elf/s390/lockdflt.c#1 add
.. //depot/projects/s390/libexec/rtld-elf/s390/reloc.c#1 add
.. //depot/projects/s390/libexec/rtld-elf/s390/rtld_machdep.h#1 add
.. //depot/projects/s390/libexec/rtld-elf/s390/rtld_start.S#1 add
.. //depot/projects/s390/libexec/rtld-elf/s390x/Makefile.inc#1 add
.. //depot/projects/s390/libexec/rtld-elf/s390x/lockdflt.c#1 add
.. //depot/projects/s390/libexec/rtld-elf/s390x/rtld_machdep.h#1 add
.. //depot/projects/s390/libexec/rtld-elf/s390x/rtld_start.S#1 add
.. //depot/projects/s390/sbin/dasdcontrol/dasdcontrol.c#1 add
.. //depot/projects/s390/sbin/disklabel/disklabel.c#3 edit
.. //depot/projects/s390/share/man/man4/man4.s390/Makefile#1 add
.. //depot/projects/s390/share/man/man4/man4.s390/ctca.4#1 add
.. //depot/projects/s390/share/man/man4/man4.s390/esd.4#1 add

Differences ...

==== //depot/projects/s390/gnu/lib/libgcc/Makefile#3 (text+ko) ====

@@ -118,6 +118,12 @@
 OBJS+=	dp-bit.o fp-bit.o
 .endif
 
+.if ${TARGET_ARCH} == "s390"
+#	from config/s390/t-linux
+# Compile libgcc2.a with pic.
+TARGET_LIBGCC2_CFLAGS = -fPIC -include $(srcdir)/config/s390/fixdfdi.h
+.endif
+
 .if ${TARGET_ARCH} == "sparc64"
 #	from config/sparc/t-elf
 # We want fine grained libraries, so use the new code to build the

==== //depot/projects/s390/gnu/usr.bin/binutils/libbfd/Makefile#3 (text+ko) ====

@@ -22,6 +22,8 @@
 SELARCH=
 .if ${TARGET_ARCH} == "sparc64"
 SELARCH= &bfd_sparc_arch
+.elif ${TARGET_ARCH} == "s390x"
+SELARCH= &bfd_s390_arch
 .else
 .for _a in ${ARCHS}
 .if ${SELARCH} == ""

==== //depot/projects/s390/gnu/usr.bin/cc/Makefile.tgt#3 (text+ko) ====

@@ -12,6 +12,8 @@
 GCC_CPU=	ia64
 .elif ${TARGET_ARCH} == "powerpc"
 GCC_CPU=	rs6000
+.elif ${TARGET_ARCH} == "s390" || ${TARGET_ARCH} == "s390x"
+GCC_CPU=	s390
 .elif ${TARGET_ARCH} == "sparc64"
 GCC_CPU=	sparc
 TARGET_CPU_DEFAULT= TARGET_CPU_ultrasparc

==== //depot/projects/s390/gnu/usr.bin/cc/cc_tools/Makefile#3 (text+ko) ====

@@ -147,6 +147,9 @@
 	echo '#define TARGET_CPU_DEFAULT (MASK_GNU_AS|MASK_GNU_LD)' >>${.TARGET}
 .endif
 	echo '#include "ansidecl.h"'			>> ${.TARGET}
+.if ${TARGET_ARCH} == "s390x"
+	echo '#include "${GCC_CPU}/s390x.h"'		>> ${.TARGET}
+.endif
 	echo '#include "${GCC_CPU}/${GCC_CPU}.h"'	>> ${.TARGET}
 .if ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "x86_64"
 	echo '#include "${GCC_CPU}/att.h"'		>> ${.TARGET}

==== //depot/projects/s390/gnu/usr.bin/cc/cc_tools/auto-host.h#3 (text+ko) ====

@@ -336,9 +336,11 @@
 
 /* The number of bytes in type long */
 /* #define SIZEOF_LONG 4 */
-#if defined(__i386__) || defined(__powerpc__) || defined(__strongarm__)
+#if defined(__i386__) || defined(__powerpc__) || defined(__strongarm__) || \
+    (defined(__s390__) && !defined(__s390x__))
 #define SIZEOF_LONG SIZEOF_INT
-#elif defined(__alpha__) || defined(__sparc64__) || defined(__ia64__) || defined(__x86_64__)
+#elif defined(__alpha__) || defined(__sparc64__) || defined(__ia64__) || \
+    defined(__x86_64__) || defined(__s390x__)
 #define SIZEOF_LONG SIZEOF_LONG_LONG
 #else
 #error "I don't know what arch this is."

==== //depot/projects/s390/gnu/usr.bin/send-pr/categories#2 (text+ko) ====

@@ -12,6 +12,7 @@
 misc
 ports
 powerpc
+s390
 sparc64
 standards
 www

==== //depot/projects/s390/lib/libc/gmon/gmon.c#3 (text+ko) ====

@@ -53,7 +53,7 @@
 
 #include "libc_private.h"
 
-#if defined(__i386__) || defined(__sparc64__)
+#if defined(__i386__) || defined(__sparc64__) || defined(__s390__)
 extern char *minbrk asm (".minbrk");
 #else
 extern char *minbrk asm ("minbrk");

==== //depot/projects/s390/lib/libc/stdlib/malloc.c#3 (text+ko) ====

@@ -45,7 +45,7 @@
 
 #include "namespace.h"
 #if defined(__FreeBSD__)
-#   if defined(__i386__)
+#   if defined(__i386__) || if defined(__s390__)
 #       define malloc_pageshift		12U
 #       define malloc_minsize		16U
 #   endif

==== //depot/projects/s390/lib/libc/stdlib/strtod.c#3 (text+ko) ====

@@ -120,7 +120,7 @@
  */
 
 #if defined(__i386__) || defined(__ia64__) || defined(__alpha__) || \
-    defined(__sparc64__) || defined(__powerpc__)
+    defined(__sparc64__) || defined(__powerpc__) || defined(__s390__)
 #include <sys/types.h>
 #if BYTE_ORDER == BIG_ENDIAN
 #define IEEE_BIG_ENDIAN

==== //depot/projects/s390/lib/libc/xdr/xdr_float.c#2 (text+ko) ====

@@ -64,7 +64,7 @@
 #if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \
     defined(__mips__) || defined(__ns32k__) || defined(__alpha__) || \
     defined(__arm32__) || defined(__ppc__) || defined(__ia64__) || \
-    defined(__arm26__) || defined(__sparc64__)
+    defined(__arm26__) || defined(__sparc64__) || defined(__s390__)
 #include <machine/endian.h>
 #define IEEEFP
 #endif

==== //depot/projects/s390/lib/libstand/zalloc_defs.h#3 (text+ko) ====

@@ -55,6 +55,14 @@
 typedef unsigned int iaddr_t;	/* unsigned int same size as pointer	*/
 typedef int saddr_t;		/* signed int same size as pointer	*/
 #endif
+#if defined (__s390__) && !defined(__s390x__)
+typedef unsigned int iaddr_t;
+typedef int saddr_t;
+#endif
+#ifdef __s390x__
+typedef unsigned long iaddr_t;
+typedef long saddr_t;
+#endif
 #ifdef __ia64__
 typedef unsigned long iaddr_t;	/* unsigned int same size as pointer	*/
 typedef long saddr_t;		/* signed int same size as pointer	*/

==== //depot/projects/s390/lib/msun/Makefile#2 (text+ko) ====

@@ -57,6 +57,12 @@
 	    e_remainder.S e_scalb.S e_sqrt.S s_atan.S s_ceil.S s_copysign.S \
 	    s_cos.S s_finite.S s_floor.S s_ilogb.S s_logb.S \
 	    s_rint.S s_scalbn.S s_significand.S s_sin.S s_tan.S
+#.elif ${MACHINE_ARCH} == "s390"
+#ARCH=	s390
+#ARCH_SRCS = e_fmodf.S e_fmod.S e_hypotf.S e_hypot.S \
+#	    e_remainderf.S e_remainder.S e_sqrtf.S e_sqrt.S \
+#	    s_ceilf.S s_ceil.S s_copysignf.S s_copysign.S s_fabsf.S s_fabs.S \
+#	    s_finitef.S s_finite.S s_floorf.S s_floor.S s_rintf.S s_rint.S
 .endif
 
 # Broken

==== //depot/projects/s390/lib/msun/src/math_private.h#2 (text+ko) ====

@@ -226,7 +226,7 @@
 int	__kernel_rem_pio2f(float*,float*,int,int,int,const int*);
 
 #if defined(__alpha__) || defined(__ia64__) || defined(__sparc64__) || \
-    defined(__powerpc__)
+    defined(__powerpc__) || defined(__s390__)
 #define __generic___ieee754_acos	__ieee754_acos
 #define __generic___ieee754_asin	__ieee754_asin
 #define __generic___ieee754_atan2	__ieee754_atan2

==== //depot/projects/s390/sbin/disklabel/disklabel.c#3 (text+ko) ====

@@ -109,7 +109,8 @@
 
 #if defined(__i386__) || defined(__ia64__)
 #define	NUMBOOT	2
-#elif defined(__alpha__) || defined(__sparc64__) || defined(__powerpc__)
+#elif defined(__alpha__) || defined(__sparc64__) || defined(__powerpc__) || \
+      defined(__s390__)
 #define	NUMBOOT	1
 #else
 #error	I do not know about this architecture.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




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