CVS commit: src/sys/net
Module Name:src Committed By: yamaguchi Date: Mon Apr 26 02:36:46 UTC 2021 Modified Files: src/sys/net: if_spppsubr.c Log Message: Fix locking order since IFNET_LOCK must be held before acquiring SPPP_LOCK To generate a diff of this commit: cvs rdiff -u -r1.220 -r1.221 src/sys/net/if_spppsubr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/net
Module Name:src Committed By: yamaguchi Date: Mon Apr 26 02:36:46 UTC 2021 Modified Files: src/sys/net: if_spppsubr.c Log Message: Fix locking order since IFNET_LOCK must be held before acquiring SPPP_LOCK To generate a diff of this commit: cvs rdiff -u -r1.220 -r1.221 src/sys/net/if_spppsubr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/net/if_spppsubr.c diff -u src/sys/net/if_spppsubr.c:1.220 src/sys/net/if_spppsubr.c:1.221 --- src/sys/net/if_spppsubr.c:1.220 Fri Apr 23 03:36:13 2021 +++ src/sys/net/if_spppsubr.c Mon Apr 26 02:36:45 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: if_spppsubr.c,v 1.220 2021/04/23 03:36:13 yamaguchi Exp $ */ +/* $NetBSD: if_spppsubr.c,v 1.221 2021/04/26 02:36:45 yamaguchi Exp $ */ /* * Synchronous PPP/Cisco link level subroutines. @@ -41,7 +41,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.220 2021/04/23 03:36:13 yamaguchi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.221 2021/04/26 02:36:45 yamaguchi Exp $"); #if defined(_KERNEL_OPT) #include "opt_inet.h" @@ -5542,7 +5542,10 @@ sppp_set_ip_addrs(struct sppp *sp) uint32_t myaddr = 0, hisaddr = 0; int s; + KASSERT(SPPP_WLOCKED(sp)); + SPPP_UNLOCK(sp); IFNET_LOCK(ifp); + SPPP_LOCK(sp, RW_WRITER); /* * Pick the first AF_INET address from the list, @@ -5614,7 +5617,10 @@ sppp_clear_ip_addrs(struct sppp *sp) struct sockaddr_in *si, *dest; int s; + KASSERT(SPPP_WLOCKED(sp)); + SPPP_UNLOCK(sp); IFNET_LOCK(ifp); + SPPP_LOCK(sp, RW_WRITER); /* * Pick the first AF_INET address from the list, @@ -5740,7 +5746,10 @@ sppp_set_ip6_addr(struct sppp *sp, const int s; struct psref psref; + KASSERT(SPPP_WLOCKED(sp)); + SPPP_UNLOCK(sp); IFNET_LOCK(ifp); + SPPP_LOCK(sp, RW_WRITER); /* * Pick the first link-local AF_INET6 address from the list,
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Mon Apr 26 00:38:23 UTC 2021 Modified Files: src/share/mk: bsd.sys.mk Log Message: Revert the AFLAGS change since it affects kernels. To generate a diff of this commit: cvs rdiff -u -r1.305 -r1.306 src/share/mk/bsd.sys.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Mon Apr 26 00:38:23 UTC 2021 Modified Files: src/share/mk: bsd.sys.mk Log Message: Revert the AFLAGS change since it affects kernels. To generate a diff of this commit: cvs rdiff -u -r1.305 -r1.306 src/share/mk/bsd.sys.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.sys.mk diff -u src/share/mk/bsd.sys.mk:1.305 src/share/mk/bsd.sys.mk:1.306 --- src/share/mk/bsd.sys.mk:1.305 Sun Apr 25 10:32:20 2021 +++ src/share/mk/bsd.sys.mk Sun Apr 25 20:38:23 2021 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.sys.mk,v 1.305 2021/04/25 14:32:20 christos Exp $ +# $NetBSD: bsd.sys.mk,v 1.306 2021/04/26 00:38:23 christos Exp $ # # Build definitions used for NetBSD source tree builds. @@ -197,12 +197,10 @@ COPTS+= ${${ACTIVE_CC} == "gcc":? --para .if ${MACHINE_CPU} != "sh3" COPTS+= ${${ACTIVE_CC} == "gcc":? -msoft-float :} FOPTS+= -msoft-float -AFLAGS+= -msoft-float .endif .elif ${MACHINE_ARCH} == "coldfire" COPTS+= -mhard-float FOPTS+= -mhard-float -AFLAGS+= -mhard-float .endif #.if !empty(MACHINE_ARCH:Mearmv7*)
CVS commit: src/sys/arch/mips/conf
Module Name:src Committed By: christos Date: Mon Apr 26 00:28:01 UTC 2021 Modified Files: src/sys/arch/mips/conf: Makefile.mips Log Message: Produce elf32 images for mipsn64eb too To generate a diff of this commit: cvs rdiff -u -r1.71 -r1.72 src/sys/arch/mips/conf/Makefile.mips Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/mips/conf
Module Name:src Committed By: christos Date: Mon Apr 26 00:28:01 UTC 2021 Modified Files: src/sys/arch/mips/conf: Makefile.mips Log Message: Produce elf32 images for mipsn64eb too To generate a diff of this commit: cvs rdiff -u -r1.71 -r1.72 src/sys/arch/mips/conf/Makefile.mips Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/mips/conf/Makefile.mips diff -u src/sys/arch/mips/conf/Makefile.mips:1.71 src/sys/arch/mips/conf/Makefile.mips:1.72 --- src/sys/arch/mips/conf/Makefile.mips:1.71 Sun Apr 25 19:24:00 2021 +++ src/sys/arch/mips/conf/Makefile.mips Sun Apr 25 20:28:01 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.mips,v 1.71 2021/04/25 23:24:00 christos Exp $ +# $NetBSD: Makefile.mips,v 1.72 2021/04/26 00:28:01 christos Exp $ # Makefile for NetBSD # @@ -58,7 +58,7 @@ CFLAGS+= ${GP} -mno-abicalls -msoft-floa CFLAGS+= -msym32 -mabi=64 AFLAGS+= -msym32 -mabi=64 .endif -.if ${MACHINE_ARCH} == "mips64eb" +.if !empty(MACHINE_ARCH:Mmips*64eb) LDFLAGS+= -Wl,-m,elf64btsmip LINKFORMAT+= -m elf64btsmip SYSTEM_LD_TAIL_EXTRA+= \
CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el
Module Name:src Committed By: christos Date: Sun Apr 25 23:58:23 UTC 2021 Added Files: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el: Makefile.inc config.h config.m4 gmp-mparam.h gmp.h srcs.mk Log Message: Copied from mips64el To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/Makefile.inc \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.m4 \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/gmp-mparam.h \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/gmp.h \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/srcs.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el
Module Name:src Committed By: christos Date: Sun Apr 25 23:58:23 UTC 2021 Added Files: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el: Makefile.inc config.h config.m4 gmp-mparam.h gmp.h srcs.mk Log Message: Copied from mips64el To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/Makefile.inc \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.m4 \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/gmp-mparam.h \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/gmp.h \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/srcs.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Added files: Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/Makefile.inc diff -u /dev/null src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/Makefile.inc:1.1 --- /dev/null Sun Apr 25 19:58:23 2021 +++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/Makefile.inc Sun Apr 25 19:58:23 2021 @@ -0,0 +1,7 @@ +# $NetBSD: Makefile.inc,v 1.1 2021/04/25 23:58:23 christos Exp $ + +COPTS+= -Wno-error + +GMP_LIMB_BITS=64 + +.include "srcs.mk" Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h diff -u /dev/null src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h:1.1 --- /dev/null Sun Apr 25 19:58:23 2021 +++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h Sun Apr 25 19:58:23 2021 @@ -0,0 +1,668 @@ +/* config.h. Generated from config.in by configure. */ +/* config.in. Generated from configure.ac by autoheader. */ + +/* + +Copyright 1996-2020 Free Software Foundation, Inc. + +This file is part of the GNU MP Library. + +The GNU MP Library is free software; you can redistribute it and/or modify +it under the terms of either: + + * the GNU Lesser General Public License as published by the Free +Software Foundation; either version 3 of the License, or (at your +option) any later version. + +or + + * the GNU General Public License as published by the Free Software +Foundation; either version 2 of the License, or (at your option) any +later version. + +or both in parallel, as here. + +The GNU MP Library is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received copies of the GNU General Public License and the +GNU Lesser General Public License along with the GNU MP Library. If not, +see https://www.gnu.org/licenses/. +*/ + +/* Define if building universal (internal helper macro) */ +/* #undef AC_APPLE_UNIVERSAL_BUILD */ + +/* The gmp-mparam.h file (a string) the tune program should suggest updating. + */ +#define GMP_MPARAM_H_SUGGEST "./mpn/mips64/gmp-mparam.h" + +/* Define to 1 if you have the `alarm' function. */ +#define HAVE_ALARM 1 + +/* Define to 1 if alloca() works (via gmp-impl.h). */ +#define HAVE_ALLOCA 1 + +/* Define to 1 if you have and it should be used (not on Ultrix). + */ +/* #undef HAVE_ALLOCA_H */ + +/* Define to 1 if the compiler accepts gcc style __attribute__ ((const)) */ +#define HAVE_ATTRIBUTE_CONST 1 + +/* Define to 1 if the compiler accepts gcc style __attribute__ ((malloc)) */ +#define HAVE_ATTRIBUTE_MALLOC 1 + +/* Define to 1 if the compiler accepts gcc style __attribute__ ((mode (XX))) + */ +#define HAVE_ATTRIBUTE_MODE 1 + +/* Define to 1 if the compiler accepts gcc style __attribute__ ((noreturn)) */ +#define HAVE_ATTRIBUTE_NORETURN 1 + +/* Define to 1 if you have the `attr_get' function. */ +/* #undef HAVE_ATTR_GET */ + +/* Define to 1 if tests/libtests has calling conventions checking for the CPU + */ +/* #undef HAVE_CALLING_CONVENTIONS */ + +/* Define to 1 if you have the `clock' function. */ +#define HAVE_CLOCK 1 + +/* Define to 1 if you have the `clock_gettime' function */ +#define HAVE_CLOCK_GETTIME 1 + +/* Define to 1 if you have the `cputime' function. */ +/* #undef HAVE_CPUTIME */ + +/* Define to 1 if you have the declaration of `fgetc', and to 0 if you don't. + */ +#define HAVE_DECL_FGETC 1 + +/* Define to 1 if you have the declaration of `fscanf', and to 0 if you don't. + */ +#define HAVE_DECL_FSCANF 1 + +/* Define to 1 if you have the declaration of `optarg', and to 0 if you don't. + */ +#define HAVE_DECL_OPTARG 1 + +/* Define to 1 if you have the declaration of `sys_errlist', and to 0 if you + don't. */ +#define HAVE_DECL_SYS_ERRLIST 1 + +/* Define to 1 if you have the declaration of `sys_nerr', and to 0 if you + don't. */ +#define HAVE_DECL_SYS_NERR 1 + +/* Define to 1 if you have the declaration of `ungetc', and to 0 if you don't. + */ +#define HAVE_DECL_UNGETC 1 + +/* Define to 1 if you have the declaration of `vfprintf', and to 0 if you + don't. */ +#define HAVE_DECL_VFPRINTF 1 + +/* Define to
CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb
Module Name:src Committed By: christos Date: Sun Apr 25 23:57:47 UTC 2021 Added Files: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb: Makefile.inc config.h config.m4 gmp-mparam.h gmp.h srcs.mk Log Message: copied from mips64eb To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/Makefile.inc \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4 \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp-mparam.h \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/srcs.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Added files: Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/Makefile.inc diff -u /dev/null src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/Makefile.inc:1.1 --- /dev/null Sun Apr 25 19:57:48 2021 +++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/Makefile.inc Sun Apr 25 19:57:47 2021 @@ -0,0 +1,7 @@ +# $NetBSD: Makefile.inc,v 1.1 2021/04/25 23:57:47 christos Exp $ + +COPTS+= -Wno-error + +GMP_LIMB_BITS=64 + +.include "srcs.mk" Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h diff -u /dev/null src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h:1.1 --- /dev/null Sun Apr 25 19:57:48 2021 +++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h Sun Apr 25 19:57:47 2021 @@ -0,0 +1,668 @@ +/* config.h. Generated from config.in by configure. */ +/* config.in. Generated from configure.ac by autoheader. */ + +/* + +Copyright 1996-2020 Free Software Foundation, Inc. + +This file is part of the GNU MP Library. + +The GNU MP Library is free software; you can redistribute it and/or modify +it under the terms of either: + + * the GNU Lesser General Public License as published by the Free +Software Foundation; either version 3 of the License, or (at your +option) any later version. + +or + + * the GNU General Public License as published by the Free Software +Foundation; either version 2 of the License, or (at your option) any +later version. + +or both in parallel, as here. + +The GNU MP Library is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received copies of the GNU General Public License and the +GNU Lesser General Public License along with the GNU MP Library. If not, +see https://www.gnu.org/licenses/. +*/ + +/* Define if building universal (internal helper macro) */ +/* #undef AC_APPLE_UNIVERSAL_BUILD */ + +/* The gmp-mparam.h file (a string) the tune program should suggest updating. + */ +#define GMP_MPARAM_H_SUGGEST "./mpn/mips64/gmp-mparam.h" + +/* Define to 1 if you have the `alarm' function. */ +#define HAVE_ALARM 1 + +/* Define to 1 if alloca() works (via gmp-impl.h). */ +#define HAVE_ALLOCA 1 + +/* Define to 1 if you have and it should be used (not on Ultrix). + */ +/* #undef HAVE_ALLOCA_H */ + +/* Define to 1 if the compiler accepts gcc style __attribute__ ((const)) */ +#define HAVE_ATTRIBUTE_CONST 1 + +/* Define to 1 if the compiler accepts gcc style __attribute__ ((malloc)) */ +#define HAVE_ATTRIBUTE_MALLOC 1 + +/* Define to 1 if the compiler accepts gcc style __attribute__ ((mode (XX))) + */ +#define HAVE_ATTRIBUTE_MODE 1 + +/* Define to 1 if the compiler accepts gcc style __attribute__ ((noreturn)) */ +#define HAVE_ATTRIBUTE_NORETURN 1 + +/* Define to 1 if you have the `attr_get' function. */ +/* #undef HAVE_ATTR_GET */ + +/* Define to 1 if tests/libtests has calling conventions checking for the CPU + */ +/* #undef HAVE_CALLING_CONVENTIONS */ + +/* Define to 1 if you have the `clock' function. */ +#define HAVE_CLOCK 1 + +/* Define to 1 if you have the `clock_gettime' function */ +#define HAVE_CLOCK_GETTIME 1 + +/* Define to 1 if you have the `cputime' function. */ +/* #undef HAVE_CPUTIME */ + +/* Define to 1 if you have the declaration of `fgetc', and to 0 if you don't. + */ +#define HAVE_DECL_FGETC 1 + +/* Define to 1 if you have the declaration of `fscanf', and to 0 if you don't. + */ +#define HAVE_DECL_FSCANF 1 + +/* Define to 1 if you have the declaration of `optarg', and to 0 if you don't. + */ +#define HAVE_DECL_OPTARG 1 + +/* Define to 1 if you have the declaration of `sys_errlist', and to 0 if you + don't. */ +#define HAVE_DECL_SYS_ERRLIST 1 + +/* Define to 1 if you have the declaration of `sys_nerr', and to 0 if you + don't. */ +#define HAVE_DECL_SYS_NERR 1 + +/* Define to 1 if you have the declaration of `ungetc', and to 0 if you don't. + */ +#define HAVE_DECL_UNGETC 1 + +/* Define to 1 if you have the declaration of `vfprintf', and to 0 if you + don't. */ +#define HAVE_DECL_VFPRINTF 1 + +/* Define to
CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb
Module Name:src Committed By: christos Date: Sun Apr 25 23:57:47 UTC 2021 Added Files: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb: Makefile.inc config.h config.m4 gmp-mparam.h gmp.h srcs.mk Log Message: copied from mips64eb To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/Makefile.inc \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4 \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp-mparam.h \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/srcs.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/lgpl3/mpfr/lib/libmpfr
Module Name:src Committed By: christos Date: Sun Apr 25 23:55:55 UTC 2021 Modified Files: src/external/lgpl3/mpfr/lib/libmpfr: Makefile Log Message: Handle mipsn64 To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/external/lgpl3/mpfr/lib/libmpfr/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/lgpl3/mpfr/lib/libmpfr/Makefile diff -u src/external/lgpl3/mpfr/lib/libmpfr/Makefile:1.21 src/external/lgpl3/mpfr/lib/libmpfr/Makefile:1.22 --- src/external/lgpl3/mpfr/lib/libmpfr/Makefile:1.21 Sat Sep 26 03:50:41 2020 +++ src/external/lgpl3/mpfr/lib/libmpfr/Makefile Sun Apr 25 19:55:55 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.21 2020/09/26 07:50:41 mrg Exp $ +# $NetBSD: Makefile,v 1.22 2021/04/25 23:55:55 christos Exp $ .include @@ -297,14 +297,14 @@ CPPFLAGS+= -I${MPFRDIST}/src CPPFLAGS+= -DHAVE_LDOUBLE_IEEE_EXT_LITTLE=1 .endif -.if ${MACHINE_ARCH} == "mips64el" +.if !empty(MACHINE_ARCH:Mmips*64el) CPPFLAGS+= -DHAVE_LDOUBLE_IEEE_QUAD_LITTLE=1 .endif .if ${MACHINE_ARCH} == "sparc64" || \ ${MACHINE_ARCH} == "powerpc" || \ ${MACHINE_ARCH} == "powerpc64" || \ -${MACHINE_ARCH} == "mips64eb" +!empty(MACHINE_ARCH:Mmips*64eb) CPPFLAGS+= -DHAVE_LDOUBLE_IEEE_QUAD_BIG=1 .endif
CVS commit: src/external/lgpl3/mpfr/lib/libmpfr
Module Name:src Committed By: christos Date: Sun Apr 25 23:55:55 UTC 2021 Modified Files: src/external/lgpl3/mpfr/lib/libmpfr: Makefile Log Message: Handle mipsn64 To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/external/lgpl3/mpfr/lib/libmpfr/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/ldd
Module Name:src Committed By: christos Date: Sun Apr 25 23:52:59 UTC 2021 Modified Files: src/usr.bin/ldd: Makefile.inc src/usr.bin/ldd/build: Makefile src/usr.bin/ldd/elf64: Makefile Log Message: Handle mipsn64 To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/usr.bin/ldd/Makefile.inc cvs rdiff -u -r1.6 -r1.7 src/usr.bin/ldd/build/Makefile cvs rdiff -u -r1.12 -r1.13 src/usr.bin/ldd/elf64/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/ldd/Makefile.inc diff -u src/usr.bin/ldd/Makefile.inc:1.7 src/usr.bin/ldd/Makefile.inc:1.8 --- src/usr.bin/ldd/Makefile.inc:1.7 Sat Jan 23 16:22:49 2016 +++ src/usr.bin/ldd/Makefile.inc Sun Apr 25 19:52:59 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.7 2016/01/23 21:22:49 christos Exp $ +# $NetBSD: Makefile.inc,v 1.8 2021/04/25 23:52:59 christos Exp $ WARNS?= 3 # XXX: -Wsign-compare issues ld.elf_so source @@ -16,12 +16,19 @@ MLIBDIR= i386 MLIBDIR= powerpc .endif +.if !empty(MACHINE_ARCH:Mmips64*) # For now make "elf32" look for native (n32) -.if (${MACHINE_ARCH} == "mips64eb") || (${MACHINE_ARCH} == "mips64el") MLIBDIR= 64 COMPAT_MLIBDIR= o32 CPPFLAGS+= -DLDD_ELF64 -DMIPS_N32 .endif + +.if !empty(MACHINE_ARCH:Mmipsn64*) +MLIBDIR= n32 +COMPAT_MLIBDIR= o32 +CPPFLAGS+= -DMIPS_N32 +.endif + CPPFLAGS+= -D_KERNTYPES .endif # MKCOMPAT Index: src/usr.bin/ldd/build/Makefile diff -u src/usr.bin/ldd/build/Makefile:1.6 src/usr.bin/ldd/build/Makefile:1.7 --- src/usr.bin/ldd/build/Makefile:1.6 Sun Feb 3 19:05:20 2019 +++ src/usr.bin/ldd/build/Makefile Sun Apr 25 19:52:59 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2019/02/04 00:05:20 mrg Exp $ +# $NetBSD: Makefile,v 1.7 2021/04/25 23:52:59 christos Exp $ NOSANITIZER= # defined @@ -18,7 +18,7 @@ CPPFLAGS.ldd.c+= -DELF64_ONLY .endif .if ${MKCOMPAT} != "no" -. if (${MACHINE_ARCH} == "mips64el") || (${MACHINE_ARCH} == "mips64eb") +. if ${MACHINE_MIPS64} LIB_ELF32COMPATDIR!= cd ${.CURDIR}/../elf32_compat && ${PRINTOBJDIR} EXTRA_LIBS+= ${LIB_ELF32COMPATDIR}/libldd_elf32_compat.a . endif Index: src/usr.bin/ldd/elf64/Makefile diff -u src/usr.bin/ldd/elf64/Makefile:1.12 src/usr.bin/ldd/elf64/Makefile:1.13 --- src/usr.bin/ldd/elf64/Makefile:1.12 Sun Feb 3 19:05:20 2019 +++ src/usr.bin/ldd/elf64/Makefile Sun Apr 25 19:52:59 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2019/02/04 00:05:20 mrg Exp $ +# $NetBSD: Makefile,v 1.13 2021/04/25 23:52:59 christos Exp $ NOSANITIZER= # defined @@ -41,7 +41,7 @@ CPPFLAGS+= -D${_d}=_elf64_${_d} .endfor .if ${MKCOMPAT} != "no" -. if (${MACHINE_ARCH} == "mips64el") || (${MACHINE_ARCH} == "mips64eb") +. if ${MACHINE_MIPS64} CPPFLAGS+= -DRTLD_ARCH_SUBDIR=\"${MLIBDIR}\" . endif .endif
CVS commit: src/usr.bin/ldd
Module Name:src Committed By: christos Date: Sun Apr 25 23:52:59 UTC 2021 Modified Files: src/usr.bin/ldd: Makefile.inc src/usr.bin/ldd/build: Makefile src/usr.bin/ldd/elf64: Makefile Log Message: Handle mipsn64 To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/usr.bin/ldd/Makefile.inc cvs rdiff -u -r1.6 -r1.7 src/usr.bin/ldd/build/Makefile cvs rdiff -u -r1.12 -r1.13 src/usr.bin/ldd/elf64/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc/arch/mips
Module Name:src Committed By: christos Date: Sun Apr 25 23:45:58 UTC 2021 Modified Files: src/lib/libc/arch/mips: Makefile.inc src/lib/libc/arch/mips/gdtoa: Makefile.inc Log Message: Use ${MACHINE_MIPS64} To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/lib/libc/arch/mips/Makefile.inc cvs rdiff -u -r1.4 -r1.5 src/lib/libc/arch/mips/gdtoa/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/arch/mips/Makefile.inc diff -u src/lib/libc/arch/mips/Makefile.inc:1.14 src/lib/libc/arch/mips/Makefile.inc:1.15 --- src/lib/libc/arch/mips/Makefile.inc:1.14 Sun Jan 24 10:55:34 2016 +++ src/lib/libc/arch/mips/Makefile.inc Sun Apr 25 19:45:58 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.14 2016/01/24 15:55:34 christos Exp $ +# $NetBSD: Makefile.inc,v 1.15 2021/04/25 23:45:58 christos Exp $ .include @@ -14,13 +14,11 @@ CPPFLAGS+= -DSOFTFLOAT SRCS+= fixunsgen_ieee754.c SRCS+= fixunsgen64_ieee754.c #fixunssfdi.c fixunsdfdi.c -.if (${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el") \ -&& (!defined(CPUFLAGS) || empty(CPUFLAGS:M-mabi=32)) +.if ${MACHINE_MIPS64} && (!defined(CPUFLAGS) || empty(CPUFLAGS:M-mabi=32)) SRCS+= fixunstfsi_ieee754.c fixunstfdi_ieee754.c .endif .endif -.if (${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el") \ -&& (!defined(CPUFLAGS) || empty(CPUFLAGS:M-mabi=32)) +.if ${MACHINE_MIPS64} && (!defined(CPUFLAGS) || empty(CPUFLAGS:M-mabi=32)) SRCS+= floatunditf_ieee754.c .endif Index: src/lib/libc/arch/mips/gdtoa/Makefile.inc diff -u src/lib/libc/arch/mips/gdtoa/Makefile.inc:1.4 src/lib/libc/arch/mips/gdtoa/Makefile.inc:1.5 --- src/lib/libc/arch/mips/gdtoa/Makefile.inc:1.4 Thu Jan 20 13:41:39 2011 +++ src/lib/libc/arch/mips/gdtoa/Makefile.inc Sun Apr 25 19:45:58 2021 @@ -1,7 +1,7 @@ -# $NetBSD: Makefile.inc,v 1.4 2011/01/20 18:41:39 matt Exp $ +# $NetBSD: Makefile.inc,v 1.5 2021/04/25 23:45:58 christos Exp $ SRCS+= strtof.c -.if (${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el") +.if ${MACHINE_MIPS64} .if !defined(CPUFLAGS) || empty(CPUFLAGS:M-mabi=32) SRCS+= strtold_pQ.c SRCS+= strtopQ.c
CVS commit: src/lib/libc/arch/mips
Module Name:src Committed By: christos Date: Sun Apr 25 23:45:58 UTC 2021 Modified Files: src/lib/libc/arch/mips: Makefile.inc src/lib/libc/arch/mips/gdtoa: Makefile.inc Log Message: Use ${MACHINE_MIPS64} To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/lib/libc/arch/mips/Makefile.inc cvs rdiff -u -r1.4 -r1.5 src/lib/libc/arch/mips/gdtoa/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib
Module Name:src Committed By: christos Date: Sun Apr 25 23:43:48 UTC 2021 Modified Files: src/lib: Makefile Log Message: Use ${MACHINE_MIPS64} To generate a diff of this commit: cvs rdiff -u -r1.291 -r1.292 src/lib/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/Makefile diff -u src/lib/Makefile:1.291 src/lib/Makefile:1.292 --- src/lib/Makefile:1.291 Fri Apr 9 16:49:05 2021 +++ src/lib/Makefile Sun Apr 25 19:43:48 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.291 2021/04/09 20:49:05 jkoshy Exp $ +# $NetBSD: Makefile,v 1.292 2021/04/25 23:43:48 christos Exp $ # from: @(#)Makefile 5.25.1.1 (Berkeley) 5/7/91 .include @@ -40,7 +40,7 @@ LIBC_MACHINE_CPU?=${MACHINE_CPU} SUBDIR+= libc_vfp .endif .endif -.if ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb" +.if ${MACHINE_MIPS64} SUBDIR+= libc_fp .endif .if (${MKRUMP} != "no")
CVS commit: src/lib
Module Name:src Committed By: christos Date: Sun Apr 25 23:43:48 UTC 2021 Modified Files: src/lib: Makefile Log Message: Use ${MACHINE_MIPS64} To generate a diff of this commit: cvs rdiff -u -r1.291 -r1.292 src/lib/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libm
Module Name:src Committed By: christos Date: Sun Apr 25 23:43:20 UTC 2021 Modified Files: src/lib/libm: Makefile Log Message: Use ${MACHINE_MIPS64} To generate a diff of this commit: cvs rdiff -u -r1.212 -r1.213 src/lib/libm/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libm/Makefile diff -u src/lib/libm/Makefile:1.212 src/lib/libm/Makefile:1.213 --- src/lib/libm/Makefile:1.212 Mon Nov 11 17:45:27 2019 +++ src/lib/libm/Makefile Sun Apr 25 19:43:20 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.212 2019/11/11 22:45:27 joerg Exp $ +# $NetBSD: Makefile,v 1.213 2021/04/25 23:43:20 christos Exp $ # # @(#)Makefile 5.1beta 93/09/24 # @@ -200,8 +200,7 @@ COMMON_SRCS += fenv.c COMMON_SRCS += fenv.c .endif COMMON_SRCS+= s_rintl.c -.if (${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el") \ -&& (!defined(CPUFLAGS) || empty(CPUFLAGS:M-mabi=32)) +.if ${MACHINE_MIPS64} && (!defined(CPUFLAGS) || empty(CPUFLAGS:M-mabi=32)) COMMON_SRCS+= s_nexttoward.c .endif
CVS commit: src/lib/libm
Module Name:src Committed By: christos Date: Sun Apr 25 23:43:20 UTC 2021 Modified Files: src/lib/libm: Makefile Log Message: Use ${MACHINE_MIPS64} To generate a diff of this commit: cvs rdiff -u -r1.212 -r1.213 src/lib/libm/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/pmax/stand
Module Name:src Committed By: christos Date: Sun Apr 25 23:42:08 UTC 2021 Modified Files: src/sys/arch/pmax/stand: Makefile.booters Log Message: Handle mipsn64 To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65 src/sys/arch/pmax/stand/Makefile.booters Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/pmax/stand/Makefile.booters diff -u src/sys/arch/pmax/stand/Makefile.booters:1.64 src/sys/arch/pmax/stand/Makefile.booters:1.65 --- src/sys/arch/pmax/stand/Makefile.booters:1.64 Tue Jan 1 14:41:04 2019 +++ src/sys/arch/pmax/stand/Makefile.booters Sun Apr 25 19:42:08 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.booters,v 1.64 2019/01/01 19:41:04 christos Exp $ +# $NetBSD: Makefile.booters,v 1.65 2021/04/25 23:42:08 christos Exp $ NOMAN= # defined NOPIE= # defined @@ -29,7 +29,7 @@ CFLAGS+= -Wall -Wmissing-prototypes -Wst CFLAGS+= -Werror LDBUG= -T $S/arch/mips/conf/stand.ldscript -.if ${MACHINE_ARCH} == "mips64el" +.if !empty(MACHINE_ARCH:Mmips*64el) AFLAGS+= -mips3 -mabi=32 CFLAGS+= -mips3 -mabi=32 LDBUG+= -m elf32ltsmip
CVS commit: src/sys/arch/pmax/stand
Module Name:src Committed By: christos Date: Sun Apr 25 23:42:08 UTC 2021 Modified Files: src/sys/arch/pmax/stand: Makefile.booters Log Message: Handle mipsn64 To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65 src/sys/arch/pmax/stand/Makefile.booters Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/modules/dtrace
Module Name:src Committed By: christos Date: Sun Apr 25 23:41:23 UTC 2021 Modified Files: src/sys/modules/dtrace: Makefile Log Message: Handle mipsn64 To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/modules/dtrace/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/modules/dtrace/Makefile diff -u src/sys/modules/dtrace/Makefile:1.9 src/sys/modules/dtrace/Makefile:1.10 --- src/sys/modules/dtrace/Makefile:1.9 Sat Apr 10 11:34:05 2021 +++ src/sys/modules/dtrace/Makefile Sun Apr 25 19:41:23 2021 @@ -1,11 +1,11 @@ -# $NetBSD: Makefile,v 1.9 2021/04/10 15:34:05 simonb Exp $ +# $NetBSD: Makefile,v 1.10 2021/04/25 23:41:23 christos Exp $ # $FreeBSD: src/sys/modules/dtrace/Makefile,v 1.6.2.1 2009/08/03 08:13:06 kensmith Exp $ .include SUBDIR= dtrace sdt fbt lockstat profile syscall -.if ${MACHINE_ARCH} == "x86_64" || !empty(MACHINE_ARCH:Mmips64*) +.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_MIPS64} SUBDIR+= netbsd32_syscall .endif
CVS commit: src/sys/modules/dtrace
Module Name:src Committed By: christos Date: Sun Apr 25 23:41:23 UTC 2021 Modified Files: src/sys/modules/dtrace: Makefile Log Message: Handle mipsn64 To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/modules/dtrace/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/etc
Module Name:src Committed By: christos Date: Sun Apr 25 23:40:52 UTC 2021 Modified Files: src/etc/etc.cobalt: Makefile.inc src/etc/etc.evbmips: Makefile.inc src/etc/mtree: Makefile Log Message: Handle mipsn64 To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/etc/etc.cobalt/Makefile.inc cvs rdiff -u -r1.25 -r1.26 src/etc/etc.evbmips/Makefile.inc cvs rdiff -u -r1.44 -r1.45 src/etc/mtree/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/etc/etc.cobalt/Makefile.inc diff -u src/etc/etc.cobalt/Makefile.inc:1.5 src/etc/etc.cobalt/Makefile.inc:1.6 --- src/etc/etc.cobalt/Makefile.inc:1.5 Sun Feb 20 03:27:32 2011 +++ src/etc/etc.cobalt/Makefile.inc Sun Apr 25 19:40:51 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.5 2011/02/20 08:27:32 matt Exp $ +# $NetBSD: Makefile.inc,v 1.6 2021/04/25 23:40:51 christos Exp $ # # etc.cobalt/Makefile.inc -- cobalt-specific etc Makefile targets # @@ -6,7 +6,7 @@ # If you change the list of distributed kernels, don't forget # to update the release documentation in distrib/notes/common/contents -.if ${MACHINE_ARCH} == "mips64el" +.if !empty(MACHINE_ARCH:Mmips*64el) KERNEL_SETS= GENERIC32 GENERIC64 INSTALL32 INSTALL64 BUILD_KERNELS= RAMDISK32 RAMDISK64 Index: src/etc/etc.evbmips/Makefile.inc diff -u src/etc/etc.evbmips/Makefile.inc:1.25 src/etc/etc.evbmips/Makefile.inc:1.26 --- src/etc/etc.evbmips/Makefile.inc:1.25 Sat Aug 15 01:03:06 2020 +++ src/etc/etc.evbmips/Makefile.inc Sun Apr 25 19:40:52 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.25 2020/08/15 05:03:06 simonb Exp $ +# $NetBSD: Makefile.inc,v 1.26 2021/04/25 23:40:52 christos Exp $ # # etc.evbmips/Makefile.inc -- evbmips-specific etc Makefile targets # @@ -15,12 +15,12 @@ BUILD_KERNELS= INSTALL_CI20 INSTALL_OMS KERNEL_SETS+= P4032 P5064 P6032 -.elif ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" +.elif ${MACHINE_MIPS64} KERNEL_SETS= MALTA32 MALTA64 XLSATX32 XLSATX64 BUILD_KERNELS= INSTALL_MALTA32 INSTALL_MALTA64 BUILD_KERNELS+= INSTALL_XLSATX32 INSTALL_XLSATX64 -. if ${MACHINE_ARCH} == "mips64el" +. if !empty(MACHINE_ARCH:Mmips*64el) KERNEL_SETS+= P5064-64 KERNEL_SETS+= LOONGSON BUILD_KERNELS+= INSTALL_LOONGSON @@ -36,7 +36,7 @@ BUILD_KERNELS= INSTALL_MALTA .endif # SBMIPS has a kernel for all targets -KERNEL_SETS+= SBMIPS${MACHINE_ARCH:S/mips//:C/e[lb]//} +KERNEL_SETS+= SBMIPS${MACHINE_ARCH:S/mipsn//:S/mips//:C/e[lb]//} # Support for mkimage MKIMAGE= ${NETBSDSRCDIR}/distrib/utils/embedded/mkimage @@ -68,7 +68,7 @@ __mkimage: .USE -S ${NETBSDSRCDIR} -B ${IMAGEENDIAN} ${MKI_OPTS.${.TARGET}} \ ${IMAGE.dir}/${.TARGET:S/smp_//}.img.gz -.if ${MACHINE_ARCH} == "mips64eb" +.if !empty(MACHINE_ARCH:Mmips*64eb) smp_octeon: __mkimage MKI_OPTS.smp_octeon= -K ${IMAGE.kern} SNAP_MD_POST_DEPS+= smp_octeon Index: src/etc/mtree/Makefile diff -u src/etc/mtree/Makefile:1.44 src/etc/mtree/Makefile:1.45 --- src/etc/mtree/Makefile:1.44 Fri Jun 12 10:12:20 2020 +++ src/etc/mtree/Makefile Sun Apr 25 19:40:52 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.44 2020/06/12 14:12:20 roy Exp $ +# $NetBSD: Makefile,v 1.45 2021/04/25 23:40:52 christos Exp $ .include @@ -9,7 +9,7 @@ EXTRA_DIST_FILES+= NetBSD.dist.Xorg .endif # Derived from MACHINE_CPU, but keeping 32/64bit for most. -MTREE_MACHINE_ARCH=${MACHINE_ARCH:C/mipse[bl]/mips/:C/mips64e[bl]/mips64/:C/sh3e[bl]/sh3/:S/coldfire/m68k/:S/m68000/m68k/:C/arm.*/arm/:C/earm.*/arm/:S/earm/arm/:S/aarch64eb/aarch64/:S/or1knd/or1k/} +MTREE_MACHINE_ARCH=${MACHINE_ARCH:C/mipse[bl]/mips/:C/mipsn?64e[bl]/mips64/:C/sh3e[bl]/sh3/:S/coldfire/m68k/:S/m68000/m68k/:C/e?arm.*/arm/:S/aarch64eb/aarch64/:S/or1knd/or1k/} # The compat specific files
CVS commit: src/etc
Module Name:src Committed By: christos Date: Sun Apr 25 23:40:52 UTC 2021 Modified Files: src/etc/etc.cobalt: Makefile.inc src/etc/etc.evbmips: Makefile.inc src/etc/mtree: Makefile Log Message: Handle mipsn64 To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/etc/etc.cobalt/Makefile.inc cvs rdiff -u -r1.25 -r1.26 src/etc/etc.evbmips/Makefile.inc cvs rdiff -u -r1.44 -r1.45 src/etc/mtree/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib
Module Name:src Committed By: christos Date: Sun Apr 25 23:40:06 UTC 2021 Modified Files: src/distrib/cobalt/instkernel: Makefile src/distrib/evbmips/instkernel/instkernel: Makefile src/distrib/evbmips/instkernel/ramdisk: Makefile src/distrib/pmax/instkernel: Makefile src/distrib/pmax/miniroot: Makefile.inc src/distrib/pmax/ramdisk: Makefile Log Message: handle mipsn64 To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/distrib/cobalt/instkernel/Makefile cvs rdiff -u -r1.7 -r1.8 src/distrib/evbmips/instkernel/instkernel/Makefile cvs rdiff -u -r1.14 -r1.15 src/distrib/evbmips/instkernel/ramdisk/Makefile cvs rdiff -u -r1.44 -r1.45 src/distrib/pmax/instkernel/Makefile cvs rdiff -u -r1.25 -r1.26 src/distrib/pmax/miniroot/Makefile.inc cvs rdiff -u -r1.54 -r1.55 src/distrib/pmax/ramdisk/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/cobalt/instkernel/Makefile diff -u src/distrib/cobalt/instkernel/Makefile:1.2 src/distrib/cobalt/instkernel/Makefile:1.3 --- src/distrib/cobalt/instkernel/Makefile:1.2 Sun Feb 20 03:26:08 2011 +++ src/distrib/cobalt/instkernel/Makefile Sun Apr 25 19:40:05 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2011/02/20 08:26:08 matt Exp $ +# $NetBSD: Makefile,v 1.3 2021/04/25 23:40:05 christos Exp $ .include .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" @@ -6,7 +6,7 @@ RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} RAMDISK= ${RAMDISKDIR}/ramdisk.fs -.if ${MACHINE_ARCH} == "mips64el" +.if !empty(MACHINE_ARCH:Mmips*64el) SFX= 64 .endif Index: src/distrib/evbmips/instkernel/instkernel/Makefile diff -u src/distrib/evbmips/instkernel/instkernel/Makefile:1.7 src/distrib/evbmips/instkernel/instkernel/Makefile:1.8 --- src/distrib/evbmips/instkernel/instkernel/Makefile:1.7 Wed Jul 15 08:15:30 2020 +++ src/distrib/evbmips/instkernel/instkernel/Makefile Sun Apr 25 19:40:05 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2020/07/15 12:15:30 simonb Exp $ +# $NetBSD: Makefile,v 1.8 2021/04/25 23:40:05 christos Exp $ .include .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" @@ -12,12 +12,12 @@ MDSETTARGETS= INSTALL_CI20 ${RAMDISK} MDSETTARGETS+= INSTALL_OMSAL400 ${RAMDISK} - MDSETTARGETS+= INSTALL_MALTA ${RAMDISK} - -.elif ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" +.elif ${MACHINE_MIPS64} MDSETTARGETS= INSTALL_MALTA32 ${RAMDISK} - MDSETTARGETS+= INSTALL_MALTA64 ${RAMDISK} - MDSETTARGETS+= INSTALL_XLSATX32 ${RAMDISK} - MDSETTARGETS+= INSTALL_XLSATX64 ${RAMDISK} - -.if ${MACHINE_ARCH} == "mips64el" +.if !empty(MACHINE_ARCH:Mmips*64el) MDSETTARGETS+= INSTALL_LOONGSON ${RAMDISK} - .else MDSETTARGETS+= INSTALL_OCTEON ${RAMDISK} - Index: src/distrib/evbmips/instkernel/ramdisk/Makefile diff -u src/distrib/evbmips/instkernel/ramdisk/Makefile:1.14 src/distrib/evbmips/instkernel/ramdisk/Makefile:1.15 --- src/distrib/evbmips/instkernel/ramdisk/Makefile:1.14 Thu Jan 9 15:07:46 2020 +++ src/distrib/evbmips/instkernel/ramdisk/Makefile Sun Apr 25 19:40:05 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2020/01/09 20:07:46 martin Exp $ +# $NetBSD: Makefile,v 1.15 2021/04/25 23:40:05 christos Exp $ .include .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" @@ -13,7 +13,7 @@ DBG= -Os CRUNCHBIN= ramdiskbin LISTS= ${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst MTREECONF= ${DISTRIBDIR}/common/mtree.common -.if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mips64el" +.if !empty(MACHINE_ARCH:M*el) IMAGEENDIAN= le .else IMAGEENDIAN= be Index: src/distrib/pmax/instkernel/Makefile diff -u src/distrib/pmax/instkernel/Makefile:1.44 src/distrib/pmax/instkernel/Makefile:1.45 --- src/distrib/pmax/instkernel/Makefile:1.44 Sun Aug 16 07:43:36 2020 +++ src/distrib/pmax/instkernel/Makefile Sun Apr 25 19:40:05 2021 @@ -1,11 +1,11 @@ -# $NetBSD: Makefile,v 1.44 2020/08/16 11:43:36 mrg Exp $ +# $NetBSD: Makefile,v 1.45 2021/04/25 23:40:05 christos Exp $ .include .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" .include -.if ${MACHINE_ARCH} == "mips64el" +.if !empty(MACHINE_ARCH:Mmips*64el) SFX= 64 .endif Index: src/distrib/pmax/miniroot/Makefile.inc diff -u src/distrib/pmax/miniroot/Makefile.inc:1.25 src/distrib/pmax/miniroot/Makefile.inc:1.26 --- src/distrib/pmax/miniroot/Makefile.inc:1.25 Tue Jan 24 13:04:04 2017 +++ src/distrib/pmax/miniroot/Makefile.inc Sun Apr 25 19:40:05 2021 @@ -1,6 +1,6 @@ -# $NetBSD: Makefile.inc,v 1.25 2017/01/24 18:04:04 christos Exp $ +# $NetBSD: Makefile.inc,v 1.26 2021/04/25 23:40:05 christos Exp $ -.if ${MACHINE_ARCH} == "mips64el" +.if !empty(MACHINE_ARCH:Mmips*64el) SFX= 64 .endif Index: src/distrib/pmax/ramdisk/Makefile diff -u src/distrib/pmax/ramdisk/Makefile:1.54 src/distrib/pmax/ramdisk/Makefile:1.55 --- src/distrib/pmax/ramdisk/Makefile:1.54 Mon Sep
CVS commit: src/distrib
Module Name:src Committed By: christos Date: Sun Apr 25 23:40:06 UTC 2021 Modified Files: src/distrib/cobalt/instkernel: Makefile src/distrib/evbmips/instkernel/instkernel: Makefile src/distrib/evbmips/instkernel/ramdisk: Makefile src/distrib/pmax/instkernel: Makefile src/distrib/pmax/miniroot: Makefile.inc src/distrib/pmax/ramdisk: Makefile Log Message: handle mipsn64 To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/distrib/cobalt/instkernel/Makefile cvs rdiff -u -r1.7 -r1.8 src/distrib/evbmips/instkernel/instkernel/Makefile cvs rdiff -u -r1.14 -r1.15 src/distrib/evbmips/instkernel/ramdisk/Makefile cvs rdiff -u -r1.44 -r1.45 src/distrib/pmax/instkernel/Makefile cvs rdiff -u -r1.25 -r1.26 src/distrib/pmax/miniroot/Makefile.inc cvs rdiff -u -r1.54 -r1.55 src/distrib/pmax/ramdisk/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils
Module Name:src Committed By: christos Date: Sun Apr 25 23:38:42 UTC 2021 Added Files: src/external/gpl3/binutils/lib/libbfd/arch/mipsn64eb: bfd.h bfd_stdint.h bfdver.h config.h defs.mk src/external/gpl3/binutils/lib/libgnuctf/arch/mipsn64eb: config.h defs.mk src/external/gpl3/binutils/lib/libiberty/arch/mipsn64eb: config.h defs.mk src/external/gpl3/binutils/lib/libiberty/arch/mipsn64el: config.h defs.mk src/external/gpl3/binutils/lib/libopcodes/arch/mipsn64eb: config.h defs.mk src/external/gpl3/binutils/usr.bin/common/arch/mipsn64eb: config.h defs.mk src/external/gpl3/binutils/usr.bin/gas/arch/mipsn64eb: config.h defs.mk itbl-cpu.h obj-format.h targ-cpu.h targ-env.h src/external/gpl3/binutils/usr.bin/gprof/arch/mipsn64eb: defs.mk gconfig.h src/external/gpl3/binutils/usr.bin/ld/arch/mipsn64eb: config.h defs.mk ldemul-list.h Log Message: regen for mipsn64eb To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/binutils/lib/libbfd/arch/mipsn64eb/bfd.h \ src/external/gpl3/binutils/lib/libbfd/arch/mipsn64eb/bfd_stdint.h \ src/external/gpl3/binutils/lib/libbfd/arch/mipsn64eb/bfdver.h \ src/external/gpl3/binutils/lib/libbfd/arch/mipsn64eb/config.h \ src/external/gpl3/binutils/lib/libbfd/arch/mipsn64eb/defs.mk cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/binutils/lib/libgnuctf/arch/mipsn64eb/config.h \ src/external/gpl3/binutils/lib/libgnuctf/arch/mipsn64eb/defs.mk cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/binutils/lib/libiberty/arch/mipsn64eb/config.h \ src/external/gpl3/binutils/lib/libiberty/arch/mipsn64eb/defs.mk cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/binutils/lib/libiberty/arch/mipsn64el/config.h \ src/external/gpl3/binutils/lib/libiberty/arch/mipsn64el/defs.mk cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/binutils/lib/libopcodes/arch/mipsn64eb/config.h \ src/external/gpl3/binutils/lib/libopcodes/arch/mipsn64eb/defs.mk cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/binutils/usr.bin/common/arch/mipsn64eb/config.h \ src/external/gpl3/binutils/usr.bin/common/arch/mipsn64eb/defs.mk cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/binutils/usr.bin/gas/arch/mipsn64eb/config.h \ src/external/gpl3/binutils/usr.bin/gas/arch/mipsn64eb/defs.mk \ src/external/gpl3/binutils/usr.bin/gas/arch/mipsn64eb/itbl-cpu.h \ src/external/gpl3/binutils/usr.bin/gas/arch/mipsn64eb/obj-format.h \ src/external/gpl3/binutils/usr.bin/gas/arch/mipsn64eb/targ-cpu.h \ src/external/gpl3/binutils/usr.bin/gas/arch/mipsn64eb/targ-env.h cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/binutils/usr.bin/gprof/arch/mipsn64eb/defs.mk \ src/external/gpl3/binutils/usr.bin/gprof/arch/mipsn64eb/gconfig.h cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/binutils/usr.bin/ld/arch/mipsn64eb/config.h \ src/external/gpl3/binutils/usr.bin/ld/arch/mipsn64eb/defs.mk \ src/external/gpl3/binutils/usr.bin/ld/arch/mipsn64eb/ldemul-list.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils
Module Name:src Committed By: christos Date: Sun Apr 25 23:35:52 UTC 2021 Modified Files: src/external/gpl3/binutils/dist: config.sub src/external/gpl3/binutils/dist/gas: configure configure.ac src/external/gpl3/binutils/dist/ld: configure.tgt src/external/gpl3/binutils/usr.bin/ld: Makefile Log Message: Add a mipsn64 target To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/binutils/dist/config.sub cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/binutils/dist/gas/configure cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/binutils/dist/gas/configure.ac cvs rdiff -u -r1.35 -r1.36 src/external/gpl3/binutils/dist/ld/configure.tgt cvs rdiff -u -r1.33 -r1.34 src/external/gpl3/binutils/usr.bin/ld/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/binutils/dist/config.sub diff -u src/external/gpl3/binutils/dist/config.sub:1.14 src/external/gpl3/binutils/dist/config.sub:1.15 --- src/external/gpl3/binutils/dist/config.sub:1.14 Fri Apr 3 19:48:45 2020 +++ src/external/gpl3/binutils/dist/config.sub Sun Apr 25 19:35:52 2021 @@ -1191,6 +1191,7 @@ case $cpu-$vendor in | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64eb | mips64el \ + | mipsn64 | mipsn64eb | mipsn64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ Index: src/external/gpl3/binutils/dist/gas/configure diff -u src/external/gpl3/binutils/dist/gas/configure:1.9 src/external/gpl3/binutils/dist/gas/configure:1.10 --- src/external/gpl3/binutils/dist/gas/configure:1.9 Fri Apr 3 19:48:47 2020 +++ src/external/gpl3/binutils/dist/gas/configure Sun Apr 25 19:35:52 2021 @@ -12689,7 +12689,7 @@ _ACEOF mips) # Set mips_cpu to the name of the default CPU. case ${target_cpu} in - mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el) + mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el | mips64eb | mipsn64el | mipsn64eb) mips_cpu=from-abi ;; mipsisa32 | mipsisa32el) Index: src/external/gpl3/binutils/dist/gas/configure.ac diff -u src/external/gpl3/binutils/dist/gas/configure.ac:1.7 src/external/gpl3/binutils/dist/gas/configure.ac:1.8 --- src/external/gpl3/binutils/dist/gas/configure.ac:1.7 Fri Apr 3 19:48:47 2020 +++ src/external/gpl3/binutils/dist/gas/configure.ac Sun Apr 25 19:35:52 2021 @@ -292,7 +292,7 @@ changequote([,])dnl mips) # Set mips_cpu to the name of the default CPU. case ${target_cpu} in - mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el) + mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el | mips64eb | mipsn64el | mipsn64eb ) mips_cpu=from-abi ;; mipsisa32 | mipsisa32el) Index: src/external/gpl3/binutils/dist/ld/configure.tgt diff -u src/external/gpl3/binutils/dist/ld/configure.tgt:1.35 src/external/gpl3/binutils/dist/ld/configure.tgt:1.36 --- src/external/gpl3/binutils/dist/ld/configure.tgt:1.35 Sun Sep 13 17:14:01 2020 +++ src/external/gpl3/binutils/dist/ld/configure.tgt Sun Apr 25 19:35:52 2021 @@ -506,10 +506,18 @@ mips*-sgi-irix6*) targ_emul=elf32bmipn32 mips64*el-*-netbsd*) targ_emul=elf32ltsmipn32 targ_extra_emuls="elf64btsmip elf64ltsmip elf32ltsmip elf32btsmipn32 elf32btsmip" targ_extra_libpath=$targ_extra_emuls + ;; +mipsn64*el-*-netbsd*) targ_emul=elf64ltsmip + targ_extra_emuls="elf64btsmip elf64ltsmip elf32ltsmip elf32btsmip elf32btsmipn32 elf32ltsmip32" + targ_extra_libpath=$targ_extra_emuls ;; mips64*-*-netbsd*) targ_emul=elf32btsmipn32 targ_extra_emuls="elf64ltsmip elf64btsmip elf32btsmip elf32ltsmipn32 elf32ltsmip" targ_extra_libpath=$targ_extra_emuls + ;; +mipsn64*-*-netbsd*) targ_emul=elf64btsmip + targ_extra_emuls="elf64ltsmip elf64btsmip elf32ltsmip elf32btsmip elf32ltsmipn32 elf32btsmipn32" + targ_extra_libpath=$targ_extra_emuls ;; mips*el-*-netbsd*) targ_emul=elf32ltsmip targ_extra_emuls="elf32btsmip elf64ltsmip elf64btsmip" Index: src/external/gpl3/binutils/usr.bin/ld/Makefile diff -u src/external/gpl3/binutils/usr.bin/ld/Makefile:1.33 src/external/gpl3/binutils/usr.bin/ld/Makefile:1.34 --- src/external/gpl3/binutils/usr.bin/ld/Makefile:1.33 Fri Apr 3 21:34:30 2020 +++ src/external/gpl3/binutils/usr.bin/ld/Makefile Sun Apr 25 19:35:52 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.33 2020/04/04 01:34:30 christos Exp $ +# $NetBSD: Makefile,v 1.34 2021/04/25 23:35:52 christos Exp $ CPPFLAGS+= -I${.CURDIR}/arch/${BINUTILS_MACHINE_ARCH} \ -I${DIST}/ld \ @@ -79,7 +79,8 @@ e${f}.c: ${DIST}/ld/genscripts.sh ${.CUR !empty(BINUTILS_MACHINE_ARCH:Maarch64*) || \ !empty(BINUTILS_MACHINE_ARCH:Mearm*) || \ !empty(BINUTILS_MACHINE_ARCH:Marm*) || \ -!empty(BINUTILS_MACHINE_ARCH:Mmips64*) +!empty(BINUTILS_MACHINE_ARCH:Mmips64*) || \ +!empty(BINUTILS_MACHINE_ARCH:Mmipsn64*) .
CVS commit: src/external/gpl3/binutils
Module Name:src Committed By: christos Date: Sun Apr 25 23:35:52 UTC 2021 Modified Files: src/external/gpl3/binutils/dist: config.sub src/external/gpl3/binutils/dist/gas: configure configure.ac src/external/gpl3/binutils/dist/ld: configure.tgt src/external/gpl3/binutils/usr.bin/ld: Makefile Log Message: Add a mipsn64 target To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/binutils/dist/config.sub cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/binutils/dist/gas/configure cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/binutils/dist/gas/configure.ac cvs rdiff -u -r1.35 -r1.36 src/external/gpl3/binutils/dist/ld/configure.tgt cvs rdiff -u -r1.33 -r1.34 src/external/gpl3/binutils/usr.bin/ld/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/mips/conf
Module Name:src Committed By: christos Date: Sun Apr 25 23:24:00 UTC 2021 Modified Files: src/sys/arch/mips/conf: Makefile.mips Log Message: use ${MACHINE_MIPS64} To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71 src/sys/arch/mips/conf/Makefile.mips Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/mips/conf/Makefile.mips diff -u src/sys/arch/mips/conf/Makefile.mips:1.70 src/sys/arch/mips/conf/Makefile.mips:1.71 --- src/sys/arch/mips/conf/Makefile.mips:1.70 Tue Jan 1 14:41:04 2019 +++ src/sys/arch/mips/conf/Makefile.mips Sun Apr 25 19:24:00 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.mips,v 1.70 2019/01/01 19:41:04 christos Exp $ +# $NetBSD: Makefile.mips,v 1.71 2021/04/25 23:24:00 christos Exp $ # Makefile for NetBSD # @@ -54,7 +54,7 @@ AFLAGS.fp.S+= -Wa,-mhard-float CFLAGS+= ${GP} -mno-abicalls -msoft-float -ffixed-24 .if defined(LP64) && ${LP64} == "yes" -.if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" +.if ${MACHINE_MIPS64} CFLAGS+= -msym32 -mabi=64 AFLAGS+= -msym32 -mabi=64 .endif @@ -65,7 +65,7 @@ SYSTEM_LD_TAIL_EXTRA+= \ ;echo ${OBJCOPY} -O elf32-ntradbigmips $@ $@.elf32; \ ${OBJCOPY} -O elf32-ntradbigmips $@ $@.elf32 .endif -.if ${MACHINE_ARCH} == "mips64el" +.if !empty(MACHINE_ARCH:Mmips*64el) LDFLAGS+= -Wl,-m,elf64ltsmip LINKFORMAT+= -m elf64ltsmip SYSTEM_LD_TAIL_EXTRA+= \ @@ -96,7 +96,7 @@ locore_machdep.o: ${THISMIPS}/${MACHINE} ## ## (5) link settings ## -.if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" +.if ${MACHINE_MIPS64} TEXTADDR?= ${DEFTEXTADDR:C/0x8/0x8/} .else TEXTADDR?= ${DEFTEXTADDR}
CVS commit: src/sys/arch/mips/conf
Module Name:src Committed By: christos Date: Sun Apr 25 23:24:00 UTC 2021 Modified Files: src/sys/arch/mips/conf: Makefile.mips Log Message: use ${MACHINE_MIPS64} To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71 src/sys/arch/mips/conf/Makefile.mips Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/mit/xorg/lib/pixman
Module Name:src Committed By: christos Date: Sun Apr 25 23:23:19 UTC 2021 Modified Files: src/external/mit/xorg/lib/pixman: Makefile Log Message: handle mipsn64el To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/external/mit/xorg/lib/pixman/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/mit/xorg/lib/pixman/Makefile diff -u src/external/mit/xorg/lib/pixman/Makefile:1.36 src/external/mit/xorg/lib/pixman/Makefile:1.37 --- src/external/mit/xorg/lib/pixman/Makefile:1.36 Tue Sep 15 01:14:19 2020 +++ src/external/mit/xorg/lib/pixman/Makefile Sun Apr 25 19:23:19 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.36 2020/09/15 05:14:19 mrg Exp $ +# $NetBSD: Makefile,v 1.37 2021/04/25 23:23:19 christos Exp $ NOLINT= 1 # defined @@ -90,7 +90,7 @@ AFLAGS+= ${${ACTIVE_CC} == "clang" :? -f #CPPFLAGS+= -DUSE_ARM_IWMMXT .endif -.if ${MACHINE_ARCH} == "mips64el" +.if !empty(MACHINE_ARCH:Mmips*64el) # Loongson MMI SRCS+= pixman-mmx.c CPPFLAGS+= -DUSE_LOONGSON_MMI
CVS commit: src/external/mit/xorg/lib/pixman
Module Name:src Committed By: christos Date: Sun Apr 25 23:23:19 UTC 2021 Modified Files: src/external/mit/xorg/lib/pixman: Makefile Log Message: handle mipsn64el To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/external/mit/xorg/lib/pixman/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gdb/lib
Module Name:src Committed By: christos Date: Sun Apr 25 23:21:10 UTC 2021 Added Files: src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb: bfd-in3.h bfd.h bfd_stdint.h bfdver.h config.h defs.mk src/external/gpl3/gdb/lib/libctf/arch/mipsn64eb: config.h defs.mk src/external/gpl3/gdb/lib/libdecnumber/arch/mipsn64eb: config.h defs.mk gstdint.h src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb: config.h defs.mk init.c jit-reader.h observer.h observer.inc version.c xml-builtin.c src/external/gpl3/gdb/lib/libgdbsupport/arch/mipsn64eb: defs.mk src/external/gpl3/gdb/lib/libgdbsupport/arch/mipsn64eb/gdbsupport: config.h src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb: defs.mk src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib: config.h src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import: alloca.h ctype.h dirent.h fcntl.h fnmatch.h glob.h inttypes.h limits.h locale.h math.h signal.h stdint.h stdio.h stdlib.h string.h time.h unistd.h wchar.h wctype.h src/external/gpl3/gdb/lib/libiberty/arch/mipsn64eb: config.h defs.mk src/external/gpl3/gdb/lib/libopcodes/arch/mipsn64eb: config.h defs.mk src/external/gpl3/gdb/lib/libreadline/arch/mipsn64eb: config.h defs.mk Log Message: regen for mipsn64eb To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb/bfd-in3.h \ src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb/bfd.h \ src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb/bfd_stdint.h \ src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb/bfdver.h \ src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb/config.h \ src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb/defs.mk cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libctf/arch/mipsn64eb/config.h \ src/external/gpl3/gdb/lib/libctf/arch/mipsn64eb/defs.mk cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libdecnumber/arch/mipsn64eb/config.h \ src/external/gpl3/gdb/lib/libdecnumber/arch/mipsn64eb/defs.mk \ src/external/gpl3/gdb/lib/libdecnumber/arch/mipsn64eb/gstdint.h cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/config.h \ src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/defs.mk \ src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/init.c \ src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/jit-reader.h \ src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/observer.h \ src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/observer.inc \ src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/version.c \ src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/xml-builtin.c cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libgdbsupport/arch/mipsn64eb/defs.mk cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libgdbsupport/arch/mipsn64eb/gdbsupport/config.h cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/defs.mk cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/config.h cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/alloca.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/ctype.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/dirent.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/fcntl.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/fnmatch.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/glob.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/inttypes.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/limits.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/locale.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/math.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/signal.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/stdint.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/stdio.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/stdlib.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/string.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/time.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/unistd.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/wchar.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/wctype.h cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libiberty/arch/mipsn64eb/config.h \ src/external/gpl3/gdb/lib/libiberty/arch/mipsn64eb/defs.mk cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libopcodes/arch/mipsn64eb/config.h \ src/external/gpl3/gdb/lib/libopcodes/arch/mipsn64eb/defs.mk
CVS commit: src/external/gpl3/gdb/lib
Module Name:src Committed By: christos Date: Sun Apr 25 23:21:10 UTC 2021 Added Files: src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb: bfd-in3.h bfd.h bfd_stdint.h bfdver.h config.h defs.mk src/external/gpl3/gdb/lib/libctf/arch/mipsn64eb: config.h defs.mk src/external/gpl3/gdb/lib/libdecnumber/arch/mipsn64eb: config.h defs.mk gstdint.h src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb: config.h defs.mk init.c jit-reader.h observer.h observer.inc version.c xml-builtin.c src/external/gpl3/gdb/lib/libgdbsupport/arch/mipsn64eb: defs.mk src/external/gpl3/gdb/lib/libgdbsupport/arch/mipsn64eb/gdbsupport: config.h src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb: defs.mk src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib: config.h src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import: alloca.h ctype.h dirent.h fcntl.h fnmatch.h glob.h inttypes.h limits.h locale.h math.h signal.h stdint.h stdio.h stdlib.h string.h time.h unistd.h wchar.h wctype.h src/external/gpl3/gdb/lib/libiberty/arch/mipsn64eb: config.h defs.mk src/external/gpl3/gdb/lib/libopcodes/arch/mipsn64eb: config.h defs.mk src/external/gpl3/gdb/lib/libreadline/arch/mipsn64eb: config.h defs.mk Log Message: regen for mipsn64eb To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb/bfd-in3.h \ src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb/bfd.h \ src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb/bfd_stdint.h \ src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb/bfdver.h \ src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb/config.h \ src/external/gpl3/gdb/lib/libbfd/arch/mipsn64eb/defs.mk cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libctf/arch/mipsn64eb/config.h \ src/external/gpl3/gdb/lib/libctf/arch/mipsn64eb/defs.mk cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libdecnumber/arch/mipsn64eb/config.h \ src/external/gpl3/gdb/lib/libdecnumber/arch/mipsn64eb/defs.mk \ src/external/gpl3/gdb/lib/libdecnumber/arch/mipsn64eb/gstdint.h cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/config.h \ src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/defs.mk \ src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/init.c \ src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/jit-reader.h \ src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/observer.h \ src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/observer.inc \ src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/version.c \ src/external/gpl3/gdb/lib/libgdb/arch/mipsn64eb/xml-builtin.c cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libgdbsupport/arch/mipsn64eb/defs.mk cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libgdbsupport/arch/mipsn64eb/gdbsupport/config.h cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/defs.mk cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/config.h cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/alloca.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/ctype.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/dirent.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/fcntl.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/fnmatch.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/glob.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/inttypes.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/limits.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/locale.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/math.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/signal.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/stdint.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/stdio.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/stdlib.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/string.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/time.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/unistd.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/wchar.h \ src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/wctype.h cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libiberty/arch/mipsn64eb/config.h \ src/external/gpl3/gdb/lib/libiberty/arch/mipsn64eb/defs.mk cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gdb/lib/libopcodes/arch/mipsn64eb/config.h \ src/external/gpl3/gdb/lib/libopcodes/arch/mipsn64eb/defs.mk
CVS commit: [thorpej-i2c-spi-conf] src/sys/arch/sandpoint/sandpoint
Module Name:src Committed By: thorpej Date: Sun Apr 25 23:19:16 UTC 2021 Modified Files: src/sys/arch/sandpoint/sandpoint [thorpej-i2c-spi-conf]: autoconf.c Log Message: Use a private devhandle to implement i2c device enumeration on the Sandpoint-based NAS devices. To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.29.6.1 src/sys/arch/sandpoint/sandpoint/autoconf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/sandpoint/sandpoint/autoconf.c diff -u src/sys/arch/sandpoint/sandpoint/autoconf.c:1.29 src/sys/arch/sandpoint/sandpoint/autoconf.c:1.29.6.1 --- src/sys/arch/sandpoint/sandpoint/autoconf.c:1.29 Thu Jul 9 05:12:09 2020 +++ src/sys/arch/sandpoint/sandpoint/autoconf.c Sun Apr 25 23:19:16 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: autoconf.c,v 1.29 2020/07/09 05:12:09 nisimura Exp $ */ +/* $NetBSD: autoconf.c,v 1.29.6.1 2021/04/25 23:19:16 thorpej Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.29 2020/07/09 05:12:09 nisimura Exp $"); +__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.29.6.1 2021/04/25 23:19:16 thorpej Exp $"); #include #include @@ -44,6 +44,7 @@ __KERNEL_RCSID(0, "$NetBSD: autoconf.c,v #include #include +#include #include #include @@ -57,31 +58,167 @@ static struct btinfo_net *bi_net; static struct btinfo_prodfamily *bi_pfam; static struct btinfo_model *bi_model; -struct i2c_dev { - const char *name; - unsigned addr; - /* only attach when one of these bits in the model flags is set */ +struct sandpoint_i2cdev { + const char * name; + const char * compat; uint32_t model_mask; + i2c_addr_t addr; }; -#define MAXI2CDEVS 4 -struct model_i2c { - const char *family; - struct i2c_dev i2c_devs[MAXI2CDEVS]; -}; - -static struct model_i2c model_i2c_list[] = { - { "dlink", { { "strtc", 0x68, 0 } } }, - { "iomega", { { "dsrtc", 0x68, 0 } } }, - { "kurobox", { { "rs5c372rtc", 0x32, 0 } } }, - { "kurot4", { { "rs5c372rtc", 0x32, 0 } } }, - { "nhnas", { { "pcf8563rtc", 0x51, 0 } } }, - { "qnap", { { "s390rtc",0x30, 0 } } }, - { "synology", { { "rs5c372rtc", 0x32, 0 }, -{ "lmtemp", 0x48, BI_MODEL_THERMAL } } }, +static const struct sandpoint_i2cdev dlink_i2cdevs[] = { +[0] = { + .name = "strtc", + .compat = "st,m41t80", + .addr = 0x68, + }, +[1] = { + .name = NULL + } +}; + +static const struct sandpoint_i2cdev iomega_i2cdevs[] = { +[0] = { + .name = "dsrtc", + .compat = "dallas,ds1307", + .addr = 0x68, + }, +[1] = { + .name = NULL + } +}; + +static const struct sandpoint_i2cdev kurobox_i2cdevs[] = { +[0] = { + .name = "rs5c372rtc", + .compat = "ricoh,rs5c372a", + .addr = 0x32, + }, +[1] = { + .name = NULL + } +}; + +static const struct sandpoint_i2cdev nhnas_i2cdevs[] = { +[0] = { + .name = "pcf8563rtc", + .compat = "nxp,pcf8563", + .addr = 0x51, + }, +[1] = { + .name = NULL + } +}; + +static const struct sandpoint_i2cdev qnap_i2cdevs[] = { +[0] = { + .name = "s390rtc", + .compat = "sii,s35390a", + .addr = 0x30, + }, +[1] = { + .name = NULL + } +}; + +static const struct sandpoint_i2cdev synology_i2cdevs[] = { +[0] = { + .name = "rs5c372rtc", + .compat = "ricoh,rs5c372a", + .addr = 0x32, + }, +[1] = { + .name = "lmtemp", + .compat = "national,lm75", + .addr = 0x48, + .model_mask = BI_MODEL_THERMAL, + }, +[2] = { + .name = NULL + } }; -static void add_i2c_child_devices(device_t, const char *); +static const struct device_compatible_entry sandpoint_i2c_compat[] = { + { .compat = "dlink", .data = _i2cdevs }, + { .compat = "iomega", .data = _i2cdevs }, + { .compat = "kurobox", .data = _i2cdevs }, + /* kurot4 has same i2c devices as kurobox */ + { .compat = "kurot4", .data = _i2cdevs }, + { .compat = "nhnas", .data = _i2cdevs }, + { .compat = "qnap", .data = _i2cdevs }, + { .compat = "synology", .data = _i2cdevs }, + DEVICE_COMPAT_EOL +}; + +/* + * We provide a device handle implementation for i2c device enumeration. + */ +static int +sandpoint_i2c_enumerate_devices(device_t dev, devhandle_t call_handle, void *v) +{ + struct i2c_enumerate_devices_args *args = v; + const struct device_compatible_entry *dce; + const struct sandpoint_i2cdev *i2cdev; + prop_dictionary_t props; + bool cbrv; + + KASSERT(bi_pfam != NULL); + + const char *fam_name = bi_pfam->name; + dce = device_compatible_lookup(_name, 1, sandpoint_i2c_compat); + if (dce == NULL) { + /* no i2c devices for this model. */ + return 0; + } + i2cdev = dce->data; + KASSERT(i2cdev != NULL); + + for (; i2cdev->name != NULL; i2cdev++) { + if (i2cdev->model_mask != 0) { + KASSERT(bi_model != NULL); + if ((i2cdev->model_mask & bi_model->flags) == 0) { +/* skip this device. */ +continue; + } + } + + props = prop_dictionary_create(); + + args->ia->ia_addr = i2cdev->addr; + args->ia->ia_name = i2cdev->name; + args->ia->ia_clist =
CVS commit: src/external/gpl3/gdb/dist
Module Name:src Committed By: christos Date: Sun Apr 25 23:18:42 UTC 2021 Modified Files: src/external/gpl3/gdb/dist: config.sub Log Message: add mipsn64 targets To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gdb/dist/config.sub Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/config.sub diff -u src/external/gpl3/gdb/dist/config.sub:1.12 src/external/gpl3/gdb/dist/config.sub:1.13 --- src/external/gpl3/gdb/dist/config.sub:1.12 Mon Sep 14 22:05:15 2020 +++ src/external/gpl3/gdb/dist/config.sub Sun Apr 25 19:18:42 2021 @@ -1191,6 +1191,7 @@ case $cpu-$vendor in | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64eb | mips64el \ + | mipsn64 | mipsn64eb | mipsn64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \
CVS commit: [thorpej-i2c-spi-conf] src/sys/arch/sandpoint/sandpoint
Module Name:src Committed By: thorpej Date: Sun Apr 25 23:19:16 UTC 2021 Modified Files: src/sys/arch/sandpoint/sandpoint [thorpej-i2c-spi-conf]: autoconf.c Log Message: Use a private devhandle to implement i2c device enumeration on the Sandpoint-based NAS devices. To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.29.6.1 src/sys/arch/sandpoint/sandpoint/autoconf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gdb/dist
Module Name:src Committed By: christos Date: Sun Apr 25 23:18:42 UTC 2021 Modified Files: src/external/gpl3/gdb/dist: config.sub Log Message: add mipsn64 targets To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gdb/dist/config.sub Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc
Module Name:src Committed By: christos Date: Sun Apr 25 23:16:28 UTC 2021 Added Files: src/external/gpl3/gcc/lib/libbacktrace/arch/mipsn64eb: backtrace-supported.h config.h src/external/gpl3/gcc/lib/libgcc/arch/mipsn64eb: auto-target.h defs.mk gthr-defs.mk src/external/gpl3/gcc/lib/libgcc/libgcov/arch/mipsn64eb: defs.mk gcov-iov.h src/external/gpl3/gcc/lib/libgomp/arch/mipsn64eb: config.h libgomp.spec libgomp_f.h omp.h src/external/gpl3/gcc/lib/libiberty/arch/mipsn64eb: config.h src/external/gpl3/gcc/lib/libobjc/arch/mipsn64eb: config.h defs.mk src/external/gpl3/gcc/lib/libstdc++-v3/arch/mipsn64eb: c++config.h cxxabi_tweaks.h defs.mk gstdint.h symver-config.h src/external/gpl3/gcc/usr.bin/common-target/arch: mipsn64eb.mk src/external/gpl3/gcc/usr.bin/gcc/arch/mipsn64eb: all-tree.def auto-host.h bconfig.h bversion.h config.h configargs.h defs.mk gthr-default.h gtyp-input.list insn-modes.h multilib.h omp-device-properties.h plugin-version.h tm.h src/external/gpl3/gcc/usr.bin/include/arch: mipsn64eb.mk src/external/gpl3/gcc/usr.bin/libcpp/arch/mipsn64eb: config.h src/external/gpl3/gcc/usr.bin/libdecnumber/arch/mipsn64eb: config.h Log Message: regen for mipsn64eb To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gcc/lib/libbacktrace/arch/mipsn64eb/backtrace-supported.h \ src/external/gpl3/gcc/lib/libbacktrace/arch/mipsn64eb/config.h cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gcc/lib/libgcc/arch/mipsn64eb/auto-target.h \ src/external/gpl3/gcc/lib/libgcc/arch/mipsn64eb/defs.mk \ src/external/gpl3/gcc/lib/libgcc/arch/mipsn64eb/gthr-defs.mk cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gcc/lib/libgcc/libgcov/arch/mipsn64eb/defs.mk \ src/external/gpl3/gcc/lib/libgcc/libgcov/arch/mipsn64eb/gcov-iov.h cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gcc/lib/libgomp/arch/mipsn64eb/config.h \ src/external/gpl3/gcc/lib/libgomp/arch/mipsn64eb/libgomp.spec \ src/external/gpl3/gcc/lib/libgomp/arch/mipsn64eb/libgomp_f.h \ src/external/gpl3/gcc/lib/libgomp/arch/mipsn64eb/omp.h cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gcc/lib/libiberty/arch/mipsn64eb/config.h cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gcc/lib/libobjc/arch/mipsn64eb/config.h \ src/external/gpl3/gcc/lib/libobjc/arch/mipsn64eb/defs.mk cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gcc/lib/libstdc++-v3/arch/mipsn64eb/c++config.h \ src/external/gpl3/gcc/lib/libstdc++-v3/arch/mipsn64eb/cxxabi_tweaks.h \ src/external/gpl3/gcc/lib/libstdc++-v3/arch/mipsn64eb/defs.mk \ src/external/gpl3/gcc/lib/libstdc++-v3/arch/mipsn64eb/gstdint.h \ src/external/gpl3/gcc/lib/libstdc++-v3/arch/mipsn64eb/symver-config.h cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gcc/usr.bin/common-target/arch/mipsn64eb.mk cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gcc/usr.bin/gcc/arch/mipsn64eb/all-tree.def \ src/external/gpl3/gcc/usr.bin/gcc/arch/mipsn64eb/auto-host.h \ src/external/gpl3/gcc/usr.bin/gcc/arch/mipsn64eb/bconfig.h \ src/external/gpl3/gcc/usr.bin/gcc/arch/mipsn64eb/bversion.h \ src/external/gpl3/gcc/usr.bin/gcc/arch/mipsn64eb/config.h \ src/external/gpl3/gcc/usr.bin/gcc/arch/mipsn64eb/configargs.h \ src/external/gpl3/gcc/usr.bin/gcc/arch/mipsn64eb/defs.mk \ src/external/gpl3/gcc/usr.bin/gcc/arch/mipsn64eb/gthr-default.h \ src/external/gpl3/gcc/usr.bin/gcc/arch/mipsn64eb/gtyp-input.list \ src/external/gpl3/gcc/usr.bin/gcc/arch/mipsn64eb/insn-modes.h \ src/external/gpl3/gcc/usr.bin/gcc/arch/mipsn64eb/multilib.h \ src/external/gpl3/gcc/usr.bin/gcc/arch/mipsn64eb/omp-device-properties.h \ src/external/gpl3/gcc/usr.bin/gcc/arch/mipsn64eb/plugin-version.h \ src/external/gpl3/gcc/usr.bin/gcc/arch/mipsn64eb/tm.h cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gcc/usr.bin/include/arch/mipsn64eb.mk cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gcc/usr.bin/libcpp/arch/mipsn64eb/config.h cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gcc/usr.bin/libdecnumber/arch/mipsn64eb/config.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc
Module Name:src Committed By: christos Date: Sun Apr 25 23:12:54 UTC 2021 Modified Files: src/external/gpl3/gcc/dist: config.sub src/external/gpl3/gcc/dist/gcc: config.gcc src/external/gpl3/gcc/dist/gcc/config/mips: netbsd64.h t-netbsd64 src/external/gpl3/gcc/dist/libgcc: config.host src/external/gpl3/gcc/lib/crtstuff: Makefile src/external/gpl3/gcc/lib/libgcc: Makefile.inc src/external/gpl3/gcc/lib/libgcc/libgcc_s: Makefile src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/mipso32: Makefile src/external/gpl3/gcc/lib/libtsan: Makefile Log Message: Add support for mipsn64 targets which build 64 bit binaries by default on instead of n32 To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/external/gpl3/gcc/dist/config.sub cvs rdiff -u -r1.68 -r1.69 src/external/gpl3/gcc/dist/gcc/config.gcc cvs rdiff -u -r1.5 -r1.6 \ src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h cvs rdiff -u -r1.1 -r1.2 \ src/external/gpl3/gcc/dist/gcc/config/mips/t-netbsd64 cvs rdiff -u -r1.30 -r1.31 src/external/gpl3/gcc/dist/libgcc/config.host cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/lib/crtstuff/Makefile cvs rdiff -u -r1.50 -r1.51 src/external/gpl3/gcc/lib/libgcc/Makefile.inc cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile cvs rdiff -u -r1.1 -r1.2 \ src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/mipso32/Makefile cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/lib/libtsan/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/config.sub diff -u src/external/gpl3/gcc/dist/config.sub:1.16 src/external/gpl3/gcc/dist/config.sub:1.17 --- src/external/gpl3/gcc/dist/config.sub:1.16 Sat Apr 10 20:02:10 2021 +++ src/external/gpl3/gcc/dist/config.sub Sun Apr 25 19:12:53 2021 @@ -1191,6 +1191,7 @@ case $cpu-$vendor in | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64eb | mips64el \ + | mipsn64 | mipsn64eb | mipsn64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ Index: src/external/gpl3/gcc/dist/gcc/config.gcc diff -u src/external/gpl3/gcc/dist/gcc/config.gcc:1.68 src/external/gpl3/gcc/dist/gcc/config.gcc:1.69 --- src/external/gpl3/gcc/dist/gcc/config.gcc:1.68 Mon Apr 12 05:03:39 2021 +++ src/external/gpl3/gcc/dist/gcc/config.gcc Sun Apr 25 19:12:53 2021 @@ -2570,6 +2570,13 @@ riscv*-*-netbsd*) # NetBSD RISC-V gas=yes gcc_cv_initfini_array=yes ;; +mipsn64*-*-netbsd*) # NetBSD/mips64, either endian. + target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_SOFT_FLOAT_ABI" + tm_file="elfos.h ${tm_file} mips/elf.h ${nbsd_tm_file} mips/netbsd.h mips/netbsd64.h" + tmake_file="${tmake_file} mips/t-netbsd64" + tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_64" + extra_options="${extra_options} netbsd.opt netbsd-elf.opt" + ;; mips64*-*-netbsd*) # NetBSD/mips64, either endian. target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_SOFT_FLOAT_ABI" tm_file="elfos.h ${tm_file} mips/elf.h ${nbsd_tm_file} mips/netbsd.h mips/netbsd64.h" Index: src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h diff -u src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h:1.5 src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h:1.6 --- src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h:1.5 Sun Mar 28 21:33:12 2021 +++ src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h Sun Apr 25 19:12:54 2021 @@ -22,11 +22,19 @@ Boston, MA 02110-1301, USA. */ /* Force the default endianness and ABI flags onto the command line in order to make the other specs easier to write. */ +#if MIPS_ABI_DEFAULT == ABI_N32 +# define MIPS64_ABI "%{!mabi=*: -mabi=n32}" +# elif MIPS_ABI_DEFAULT == ABI_64 +# define MIPS64_ABI "%{!mabi=*: -mabi=64}" +#else +# error "Missing MIPS_ABI_DEFAULT " # MIPS_ABI_DEFAULT +#endif + #undef DRIVER_SELF_SPECS #define DRIVER_SELF_SPECS \ BASE_DRIVER_SELF_SPECS \ "%{!EB:%{!EL:%(endian_spec)}}", \ - "%{!mabi=*: -mabi=n32}" + MIPS64_ABI /* Define default target values. */ Index: src/external/gpl3/gcc/dist/gcc/config/mips/t-netbsd64 diff -u src/external/gpl3/gcc/dist/gcc/config/mips/t-netbsd64:1.1 src/external/gpl3/gcc/dist/gcc/config/mips/t-netbsd64:1.2 --- src/external/gpl3/gcc/dist/gcc/config/mips/t-netbsd64:1.1 Wed Jun 29 00:59:10 2011 +++ src/external/gpl3/gcc/dist/gcc/config/mips/t-netbsd64 Sun Apr 25 19:12:54 2021 @@ -1,9 +1,17 @@ # NetBSD has (will have) "non-native" libraries in /usr/lib/. -# For NetBSD/mips64 we thus have /usr/lib (n32), /usr/lib/o32 and /usr/lib/64. MULTILIB_OPTIONS = mabi=n32/mabi=64/mabi=32 MULTILIB_DIRNAMES = n32 n64 o32 + +# For NetBSD/mips64 we thus have /usr/lib (n32), /usr/lib/o32 and /usr/lib/64. +ifneq ($(filter MIPS_ABI_DEFAULT=ABI_N32,$(tm_defines)),) MULTILIB_OSDIRNAMES = . ../lib/64
CVS commit: src/external/gpl3/gcc
Module Name:src Committed By: christos Date: Sun Apr 25 23:12:54 UTC 2021 Modified Files: src/external/gpl3/gcc/dist: config.sub src/external/gpl3/gcc/dist/gcc: config.gcc src/external/gpl3/gcc/dist/gcc/config/mips: netbsd64.h t-netbsd64 src/external/gpl3/gcc/dist/libgcc: config.host src/external/gpl3/gcc/lib/crtstuff: Makefile src/external/gpl3/gcc/lib/libgcc: Makefile.inc src/external/gpl3/gcc/lib/libgcc/libgcc_s: Makefile src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/mipso32: Makefile src/external/gpl3/gcc/lib/libtsan: Makefile Log Message: Add support for mipsn64 targets which build 64 bit binaries by default on instead of n32 To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/external/gpl3/gcc/dist/config.sub cvs rdiff -u -r1.68 -r1.69 src/external/gpl3/gcc/dist/gcc/config.gcc cvs rdiff -u -r1.5 -r1.6 \ src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h cvs rdiff -u -r1.1 -r1.2 \ src/external/gpl3/gcc/dist/gcc/config/mips/t-netbsd64 cvs rdiff -u -r1.30 -r1.31 src/external/gpl3/gcc/dist/libgcc/config.host cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/lib/crtstuff/Makefile cvs rdiff -u -r1.50 -r1.51 src/external/gpl3/gcc/lib/libgcc/Makefile.inc cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile cvs rdiff -u -r1.1 -r1.2 \ src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/mipso32/Makefile cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/lib/libtsan/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/common/lib/libc/arch/mips/atomic
Module Name:src Committed By: christos Date: Sun Apr 25 22:45:16 UTC 2021 Modified Files: src/common/lib/libc/arch/mips/atomic: Makefile.inc Log Message: use ${MACHINE_MIPS64} To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/common/lib/libc/arch/mips/atomic/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/common/lib/libc/arch/mips/atomic/Makefile.inc diff -u src/common/lib/libc/arch/mips/atomic/Makefile.inc:1.14 src/common/lib/libc/arch/mips/atomic/Makefile.inc:1.15 --- src/common/lib/libc/arch/mips/atomic/Makefile.inc:1.14 Wed Feb 27 21:35:37 2019 +++ src/common/lib/libc/arch/mips/atomic/Makefile.inc Sun Apr 25 18:45:16 2021 @@ -1,9 +1,9 @@ -# $NetBSD: Makefile.inc,v 1.14 2019/02/28 02:35:37 isaki Exp $ +# $NetBSD: Makefile.inc,v 1.15 2021/04/25 22:45:16 christos Exp $ .if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \ || ${LIB} == "rump") -.if ${MACHINE_ARCH:Mmips64*} == "" +.if !${MACHINE_MIPS64} SRCS+= atomic_add_32_cas.c atomic_add_32_nv_cas.c \ atomic_and_32_cas.c atomic_and_32_nv_cas.c \ atomic_dec_32_cas.c atomic_dec_32_nv_cas.c \ @@ -30,7 +30,7 @@ SRCS+= membar_ops.S .if defined(LIB) && (${LIB} == "c" || ${LIB} == "pthread") -.if ${MACHINE_ARCH:Mmips64*} == "" +.if !${MACHINE_MIPS64} SRCS+= atomic_init_testset.c atomic_cas_up.S .else SRCS+= atomic_cas.S atomic_init_cas.c atomic_cas_by_cas32.c
CVS commit: src/common/lib/libc/arch/mips/atomic
Module Name:src Committed By: christos Date: Sun Apr 25 22:45:16 UTC 2021 Modified Files: src/common/lib/libc/arch/mips/atomic: Makefile.inc Log Message: use ${MACHINE_MIPS64} To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/common/lib/libc/arch/mips/atomic/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/sets/lists
Module Name:src Committed By: christos Date: Sun Apr 25 22:30:30 UTC 2021 Modified Files: src/distrib/sets/lists/base: ad.mips src/distrib/sets/lists/comp: ad.mips src/distrib/sets/lists/debug: ad.mips Log Message: Choose the right compat sets for the platform: mipsn64 -> o32 n32 mips64 -> o32 64 To generate a diff of this commit: cvs rdiff -u -r1.82 -r1.83 src/distrib/sets/lists/base/ad.mips cvs rdiff -u -r1.88 -r1.89 src/distrib/sets/lists/comp/ad.mips cvs rdiff -u -r1.79 -r1.80 src/distrib/sets/lists/debug/ad.mips Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/sets/lists/base/ad.mips diff -u src/distrib/sets/lists/base/ad.mips:1.82 src/distrib/sets/lists/base/ad.mips:1.83 --- src/distrib/sets/lists/base/ad.mips:1.82 Sun Apr 11 22:08:59 2021 +++ src/distrib/sets/lists/base/ad.mips Sun Apr 25 18:30:29 2021 @@ -1,12 +1,13 @@ -# $NetBSD: ad.mips,v 1.82 2021/04/12 02:08:59 mrg Exp $ +# $NetBSD: ad.mips,v 1.83 2021/04/25 22:30:29 christos Exp $ ./lib/libc_fp.sobase-sys-shlib dynamicroot,softfloat,arch64 ./lib/libc_fp.so.0base-sys-shlib dynamicroot,softfloat,arch64 ./lib/libc_fp.so.0.0base-sys-shlib dynamicroot,softfloat,arch64 -./libexec/ld.elf_so-64base-compat-shlib compat,pic,arch64 +./libexec/ld.elf_so-64base-compat-shlib compat,pic,arch64,!machine_arch=mipsn64el,!machine_arch=mipsn64eb +./libexec/ld.elf_so-n32base-compat-shlib compat,pic,arch64,!machine_arch=mips64el,!machine_arch=mips64eb ./libexec/ld.elf_so-o32base-compat-shlib compat,pic,arch64 -./usr/lib/64/libc_fp.sobase-compat-shlib compat,pic,arch64 -./usr/lib/64/libc_fp.so.0 base-compat-shlib compat,pic,arch64 -./usr/lib/64/libc_fp.so.0.0 base-compat-shlib compat,pic,arch64 +./usr/lib/64/libc_fp.sobase-compat-shlib compat,pic,arch64,!machine_arch=mipsn64el,!machine_arch=mipsn64eb +./usr/lib/64/libc_fp.so.0 base-compat-shlib compat,pic,arch64,!machine_arch=mipsn64el,!machine_arch=mipsn64eb +./usr/lib/64/libc_fp.so.0.0 base-compat-shlib compat,pic,arch64,!machine_arch=mipsn64el,!machine_arch=mipsn64eb ./usr/lib/libc_fp.sobase-sys-shlib softfloat,arch64 ./usr/lib/libc_fp.so.0base-sys-shlib softfloat,arch64 ./usr/lib/libc_fp.so.0.0 base-sys-shlib softfloat,arch64 @@ -17,6 +18,10 @@ ./usr/lib/o32/libgomp.so.2.0 base-compat-shlib compat,pic,arch64,gcc=9 ./usr/lib/o32/libgomp.so.2.0 base-compat-shlib compat,pic,arch64,gcc=10,obsolete ./usr/lib/o32/libgomp.so.2.1 base-compat-shlib compat,pic,arch64,gcc=10 -./usr/libexec/ld.elf_so-64 base-compat-shlib compat,pic,arch64 +./usr/lib/n32/libc_fp.so base-compat-shlib compat,pic,arch64,!machine_arch=mips64el,!machine_arch=mips64eb +./usr/lib/n32/libc_fp.so.0 base-compat-shlib compat,pic,arch64,!machine_arch=mips64el,!machine_arch=mips64eb +./usr/lib/n32/libc_fp.so.0.0 base-compat-shlib compat,pic,arch64,!machine_arch=mips64el,!machine_arch=mips64eb +./usr/libexec/ld.elf_so-64 base-compat-shlib compat,pic,arch64,!machine_arch=mipsn64el,!machine_arch=mipsn64eb +./usr/libexec/ld.elf_so-n32 base-compat-shlib compat,pic,arch64,!machine_arch=mips64el,!machine_arch=mips64eb ./usr/libexec/ld.elf_so-o32 base-sysutil-bin compat,pic,arch64 ./usr/lkm/ldscriptbase-obsolete obsolete Index: src/distrib/sets/lists/comp/ad.mips diff -u src/distrib/sets/lists/comp/ad.mips:1.88 src/distrib/sets/lists/comp/ad.mips:1.89 --- src/distrib/sets/lists/comp/ad.mips:1.88 Sun Apr 11 22:08:59 2021 +++ src/distrib/sets/lists/comp/ad.mips Sun Apr 25 18:30:29 2021 @@ -1,4 +1,4 @@ -# $NetBSD: ad.mips,v 1.88 2021/04/12 02:08:59 mrg Exp $ +# $NetBSD: ad.mips,v 1.89 2021/04/25 22:30:29 christos Exp $ -./usr/lib/64/libgomp.a -./usr/lib/64/libgomp.so -./usr/lib/64/libgomp.so.1 @@ -104,15 +104,18 @@ ./usr/include/mips/varargs.h comp-obsolete obsolete ./usr/include/mips/vmparam.h comp-c-include ./usr/include/mips/wchar_limits.h comp-c-include -./usr/lib/64/libc_fp.acomp-c-lib softfloat,compat,arch64 -./usr/lib/64/libc_fp_p.a comp-c-lib profile,softfloat,compat,arch64 -./usr/lib/64/libc_fp_pic.a comp-c-piclib softfloat,picinstall,compat,arch64 +./usr/lib/64/libc_fp.acomp-c-lib softfloat,compat,arch64,!machine_arch=mipsn64eb,!machine_arch=mipsn64el +./usr/lib/64/libc_fp_p.a comp-c-lib profile,softfloat,compat,arch64,!machine_arch=mipsn64eb,!machine_arch=mipsn64el +./usr/lib/64/libc_fp_pic.a comp-c-piclib softfloat,picinstall,compat,arch64,!machine_arch=mipsn64eb,!machine_arch=mipsn64el ./usr/lib/libc_fp.acomp-c-lib softfloat,arch64 ./usr/lib/libc_fp_p.acomp-c-lib profile,softfloat,arch64 ./usr/lib/libc_fp_pic.acomp-c-piclib softfloat,picinstall,arch64 ./usr/lib/o32/libc_fp.acomp-c-lib softfloat,compat,arch64 ./usr/lib/o32/libc_fp_p.a comp-c-lib profile,softfloat,compat,arch64 ./usr/lib/o32/libc_fp_pic.a comp-c-piclib
CVS commit: src/distrib/sets/lists
Module Name:src Committed By: christos Date: Sun Apr 25 22:30:30 UTC 2021 Modified Files: src/distrib/sets/lists/base: ad.mips src/distrib/sets/lists/comp: ad.mips src/distrib/sets/lists/debug: ad.mips Log Message: Choose the right compat sets for the platform: mipsn64 -> o32 n32 mips64 -> o32 64 To generate a diff of this commit: cvs rdiff -u -r1.82 -r1.83 src/distrib/sets/lists/base/ad.mips cvs rdiff -u -r1.88 -r1.89 src/distrib/sets/lists/comp/ad.mips cvs rdiff -u -r1.79 -r1.80 src/distrib/sets/lists/debug/ad.mips Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src
Module Name:src Committed By: christos Date: Sun Apr 25 22:29:22 UTC 2021 Modified Files: src: build.sh Log Message: Add mipsn64e[bl] targets which use 64 bit binaries instead of n32 ones. To generate a diff of this commit: cvs rdiff -u -r1.346 -r1.347 src/build.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/build.sh diff -u src/build.sh:1.346 src/build.sh:1.347 --- src/build.sh:1.346 Thu Jan 28 05:36:27 2021 +++ src/build.sh Sun Apr 25 18:29:22 2021 @@ -1,5 +1,5 @@ #! /usr/bin/env sh -# $NetBSD: build.sh,v 1.346 2021/01/28 10:36:27 martin Exp $ +# $NetBSD: build.sh,v 1.347 2021/04/25 22:29:22 christos Exp $ # # Copyright (c) 2001-2011 The NetBSD Foundation, Inc. # All rights reserved. @@ -660,6 +660,8 @@ MACHINE=evbmips MACHINE_ARCH=mips64eb A MACHINE=evbmips MACHINE_ARCH=mips64el ALIAS=evbmips64-el MACHINE=evbmips MACHINE_ARCH=mipseb ALIAS=evbmips-eb MACHINE=evbmips MACHINE_ARCH=mipsel ALIAS=evbmips-el +MACHINE=evbmips MACHINE_ARCH=mipsn64eb ALIAS=evbmipsn64-eb +MACHINE=evbmips MACHINE_ARCH=mipsn64el ALIAS=evbmipsn64-el MACHINE=evbppc MACHINE_ARCH=powerpc DEFAULT MACHINE=evbppc MACHINE_ARCH=powerpc64 ALIAS=evbppc64 MACHINE=evbsh3 MACHINE_ARCH= NO_DEFAULT @@ -1971,7 +1973,7 @@ createmakewrapper() eval cat <
CVS commit: src
Module Name:src Committed By: christos Date: Sun Apr 25 22:29:22 UTC 2021 Modified Files: src: build.sh Log Message: Add mipsn64e[bl] targets which use 64 bit binaries instead of n32 ones. To generate a diff of this commit: cvs rdiff -u -r1.346 -r1.347 src/build.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/netbsd32
Module Name:src Committed By: christos Date: Sun Apr 25 22:27:08 UTC 2021 Modified Files: src/sys/compat/netbsd32: netbsd32.mk Log Message: All mips64 has compat_netbsd32 To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/compat/netbsd32/netbsd32.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/netbsd32/netbsd32.mk diff -u src/sys/compat/netbsd32/netbsd32.mk:1.2 src/sys/compat/netbsd32/netbsd32.mk:1.3 --- src/sys/compat/netbsd32/netbsd32.mk:1.2 Thu Mar 5 23:54:08 2020 +++ src/sys/compat/netbsd32/netbsd32.mk Sun Apr 25 18:27:08 2021 @@ -1,4 +1,4 @@ -# $NetBSD: netbsd32.mk,v 1.2 2020/03/06 04:54:08 pgoyette Exp $ +# $NetBSD: netbsd32.mk,v 1.3 2021/04/25 22:27:08 christos Exp $ # makefile fragment that tells you if you should support netbsd32 or not. # include this and check ${COMPAT_USE_NETBSD32} != "no". @@ -7,7 +7,7 @@ || ${MACHINE_CPU} == "arm" \ || ${MACHINE_CPU} == "aarch64" \ || ${MACHINE_ARCH} == "sparc64" \ -|| (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE)) +|| (${MACHINE_MIPS64} && !defined(BSD_MK_COMPAT_FILE)) COMPAT_USE_NETBSD32?=yes .else COMPAT_USE_NETBSD32?=no
CVS commit: src/sys/compat/netbsd32
Module Name:src Committed By: christos Date: Sun Apr 25 22:27:08 UTC 2021 Modified Files: src/sys/compat/netbsd32: netbsd32.mk Log Message: All mips64 has compat_netbsd32 To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/compat/netbsd32/netbsd32.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/usr.bin/cc1plus
Module Name:src Committed By: christos Date: Sun Apr 25 22:25:55 UTC 2021 Modified Files: src/external/gpl3/gcc/usr.bin/cc1plus: Makefile Log Message: Limit no-error to stack-protector To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/usr.bin/cc1plus/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/usr.bin/cc1plus/Makefile diff -u src/external/gpl3/gcc/usr.bin/cc1plus/Makefile:1.15 src/external/gpl3/gcc/usr.bin/cc1plus/Makefile:1.16 --- src/external/gpl3/gcc/usr.bin/cc1plus/Makefile:1.15 Sun Apr 11 20:05:56 2021 +++ src/external/gpl3/gcc/usr.bin/cc1plus/Makefile Sun Apr 25 18:25:55 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2021/04/12 00:05:56 mrg Exp $ +# $NetBSD: Makefile,v 1.16 2021/04/25 22:25:55 christos Exp $ PROG= cc1plus SRCS= ${G_CXX_OBJS:S,c-family/,,:S,cp/,,:S,constraint.o,constraint.cc,:S,logic.o,logic.cc,:S,known-headers.o,known-headers.cc,:S,c-spellcheck.o,c-spellcheck.cc,:S,coroutines.o,coroutines.cc,:Nlibcpp.a:.o=.c} @@ -29,9 +29,7 @@ CHECKSUM_OBJS= ${LIBBACKTRACEOBJ}/libbac # XXX check this out # LDFLAGS+= -rdynamic -# YUCK. but see timevar.h:POP_TIMEVAR_AND_RETURN -CFLAGS+= -Wno-error # not good enough: -Wno-return-type -COPTS+= -Wno-stack-protector +CFLAGS+= -Wno-error=stack-protector .if ${MACHINE_ARCH} == "vax" COPTS.call.c+=-O0 @@ -50,7 +48,7 @@ COPTS.c-ubsan.c+=-O0 COPTS.cc1plus-checksum.c+=-O0 .endif -.if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel" +.if ${MACHINE_MIPS64} COPTS.c-common.c+=-O3 .endif
CVS commit: src/external/gpl3/gcc/usr.bin/cc1plus
Module Name:src Committed By: christos Date: Sun Apr 25 22:25:55 UTC 2021 Modified Files: src/external/gpl3/gcc/usr.bin/cc1plus: Makefile Log Message: Limit no-error to stack-protector To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/usr.bin/cc1plus/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/usr.bin/cc1objplus
Module Name:src Committed By: christos Date: Sun Apr 25 22:25:00 UTC 2021 Modified Files: src/external/gpl3/gcc/usr.bin/cc1objplus: Makefile Log Message: - Disable stack-protector errors like we did for cc1plus - use ${MACHINE_MIPS64} To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gcc/usr.bin/cc1objplus/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/usr.bin/cc1objplus/Makefile diff -u src/external/gpl3/gcc/usr.bin/cc1objplus/Makefile:1.1 src/external/gpl3/gcc/usr.bin/cc1objplus/Makefile:1.2 --- src/external/gpl3/gcc/usr.bin/cc1objplus/Makefile:1.1 Fri Apr 23 18:50:06 2021 +++ src/external/gpl3/gcc/usr.bin/cc1objplus/Makefile Sun Apr 25 18:25:00 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2021/04/23 22:50:06 mrg Exp $ +# $NetBSD: Makefile,v 1.2 2021/04/25 22:25:00 christos Exp $ # XXX: Pull this (G_OBJCXX_OBJS) out with mknative-gcc. Needs some # minor re-org of cc1plus and perhaps cc1obj. G_CXX_AND_OBJCXX_OBJS @@ -51,6 +51,9 @@ CHECKSUM_OBJS= ${BACKENDOBJ}/libbackend. .include "../Makefile.checksum" +# XXX: like cc1plus +CFLAGS+=-Wno-error=stack-protector + COPTS.c-ada-spec.c+= -Wno-stack-protector COPTS.c-attribs.c+= -Wno-stack-protector COPTS.c-aux-info.c+= -Wno-stack-protector @@ -78,7 +81,7 @@ COPTS.cc1obj-checksum.c+=-O0 COPTS.decl.c+=-O0 .endif -.if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel" +.if ${MACHINE_MIPS64} COPTS.c-common.c+=-O3 .endif
CVS commit: src/external/gpl3/gcc/usr.bin/cc1objplus
Module Name:src Committed By: christos Date: Sun Apr 25 22:25:00 UTC 2021 Modified Files: src/external/gpl3/gcc/usr.bin/cc1objplus: Makefile Log Message: - Disable stack-protector errors like we did for cc1plus - use ${MACHINE_MIPS64} To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gcc/usr.bin/cc1objplus/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [thorpej-i2c-spi-conf] src/sys/dev/fdt
Module Name:src Committed By: thorpej Date: Sun Apr 25 22:20:08 UTC 2021 Modified Files: src/sys/dev/fdt [thorpej-i2c-spi-conf]: fdt_i2c.c Log Message: - Don't call of_enter_i2c_devs() -- it no longer exists. - Pass along the provided devhandle to the i2c bus instance. XXX fdtbus_attach_i2cbus() is now just a thin wrapper around config_found() and should probably just go away in favor of making FDT-attached i2c controller drivers consistent with everyone else. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.10.2.1 src/sys/dev/fdt/fdt_i2c.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/fdt/fdt_i2c.c diff -u src/sys/dev/fdt/fdt_i2c.c:1.10 src/sys/dev/fdt/fdt_i2c.c:1.10.2.1 --- src/sys/dev/fdt/fdt_i2c.c:1.10 Sat Apr 24 23:36:53 2021 +++ src/sys/dev/fdt/fdt_i2c.c Sun Apr 25 22:20:08 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: fdt_i2c.c,v 1.10 2021/04/24 23:36:53 thorpej Exp $ */ +/* $NetBSD: fdt_i2c.c,v 1.10.2.1 2021/04/25 22:20:08 thorpej Exp $ */ /*- * Copyright (c) 2015 Jared D. McNeill @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: fdt_i2c.c,v 1.10 2021/04/24 23:36:53 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: fdt_i2c.c,v 1.10.2.1 2021/04/25 22:20:08 thorpej Exp $"); #include #include @@ -102,31 +102,12 @@ device_t fdtbus_attach_i2cbus(device_t dev, int phandle, i2c_tag_t tag, cfprint_t print) { struct i2cbus_attach_args iba; - prop_dictionary_t devs, props; - device_t ret; - u_int address_cells; - - devs = prop_dictionary_create(); - if (of_getprop_uint32(phandle, "#address-cells", _cells)) - address_cells = 1; - - of_enter_i2c_devs(devs, phandle, address_cells * 4, 0); memset(, 0, sizeof(iba)); iba.iba_tag = tag; - iba.iba_child_devices = prop_dictionary_get(devs, "i2c-child-devices"); - if (iba.iba_child_devices) - prop_object_retain(iba.iba_child_devices); - prop_object_release(devs); - - props = device_properties(dev); - prop_dictionary_set_bool(props, "i2c-no-indirect-config", true); - ret = config_found(dev, , print, + return config_found(dev, , print, CFARG_IATTR, "i2cbus", + CFARG_DEVHANDLE, devhandle_from_of(phandle), CFARG_EOL); - if (iba.iba_child_devices) - prop_object_release(iba.iba_child_devices); - - return ret; }
CVS commit: [thorpej-i2c-spi-conf] src/sys/dev/fdt
Module Name:src Committed By: thorpej Date: Sun Apr 25 22:20:08 UTC 2021 Modified Files: src/sys/dev/fdt [thorpej-i2c-spi-conf]: fdt_i2c.c Log Message: - Don't call of_enter_i2c_devs() -- it no longer exists. - Pass along the provided devhandle to the i2c bus instance. XXX fdtbus_attach_i2cbus() is now just a thin wrapper around config_found() and should probably just go away in favor of making FDT-attached i2c controller drivers consistent with everyone else. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.10.2.1 src/sys/dev/fdt/fdt_i2c.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [thorpej-i2c-spi-conf] src/sys/dev/ofw
Module Name:src Committed By: thorpej Date: Sun Apr 25 22:16:05 UTC 2021 Modified Files: src/sys/dev/ofw [thorpej-i2c-spi-conf]: ofw_i2c_subr.c openfirm.h Log Message: Implement "i2c-enumerate-devices" for OFW / FDT. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.1.6.1 src/sys/dev/ofw/ofw_i2c_subr.c cvs rdiff -u -r1.47 -r1.47.2.1 src/sys/dev/ofw/openfirm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/ofw/ofw_i2c_subr.c diff -u src/sys/dev/ofw/ofw_i2c_subr.c:1.1 src/sys/dev/ofw/ofw_i2c_subr.c:1.1.6.1 --- src/sys/dev/ofw/ofw_i2c_subr.c:1.1 Thu Feb 4 20:19:09 2021 +++ src/sys/dev/ofw/ofw_i2c_subr.c Sun Apr 25 22:16:05 2021 @@ -1,4 +1,30 @@ -/* $NetBSD: ofw_i2c_subr.c,v 1.1 2021/02/04 20:19:09 thorpej Exp $ */ +/* $NetBSD: ofw_i2c_subr.c,v 1.1.6.1 2021/04/25 22:16:05 thorpej Exp $ */ + +/* + * Copyright (c) 2021 The NetBSD Foundation, Inc. + * 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 NETBSD FOUNDATION, INC. 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 FOUNDATION 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. + */ /* * Copyright 1998 @@ -34,7 +60,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ofw_i2c_subr.c,v 1.1 2021/02/04 20:19:09 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ofw_i2c_subr.c,v 1.1.6.1 2021/04/25 22:16:05 thorpej Exp $"); #include #include @@ -44,66 +70,81 @@ __KERNEL_RCSID(0, "$NetBSD: ofw_i2c_subr #include /* - * Iterate over the subtree of a i2c controller node. - * Add all sub-devices into an array as part of the controller's - * device properties. - * This is used by the i2c bus attach code to do direct configuration. + * Standard routine for fetching an i2c device address, according + * to the standard OpenFirmware / Device Tree bindings. */ -void -of_enter_i2c_devs(prop_dictionary_t props, int ofnode, size_t cell_size, -int addr_shift) +static bool +of_i2c_get_address(int node, uint32_t *addrp) +{ + uint32_t reg; + + if (of_getprop_uint32(node, "reg", ) == -1) { + return false; + } + + *addrp = reg; + return true; +} + +static int +of_i2c_enumerate_devices(device_t dev, devhandle_t call_handle, void *v) { - int node, len; - char name[32]; - uint64_t reg64; - uint32_t reg32; - uint64_t addr; - prop_array_t array = NULL; - prop_dictionary_t dev; + return of_i2c_enumerate_devices_ext(dev, call_handle, v, + of_i2c_get_address); +} +OF_DEVICE_CALL_REGISTER("i2c-enumerate-devices", of_i2c_enumerate_devices); - for (node = OF_child(ofnode); node; node = OF_peer(node)) { - if (OF_getprop(node, "name", name, sizeof(name)) <= 0) +int +of_i2c_enumerate_devices_ext(device_t dev, devhandle_t call_handle, void *v, +bool (*get_address)(int, uint32_t *)) +{ + struct i2c_enumerate_devices_args *args = v; + int i2c_node, node; + char name[32], compat_buf[32]; + prop_dictionary_t props; + uint32_t addr; + char *clist; + int clist_size; + bool cbrv; + + i2c_node = devhandle_to_of(call_handle); + + for (node = OF_child(i2c_node); node != 0; node = OF_peer(node)) { + if (OF_getprop(node, "name", name, sizeof(name)) <= 0) { continue; - len = OF_getproplen(node, "reg"); - addr = 0; - if (cell_size == 8 && len >= sizeof(reg64)) { - if (OF_getprop(node, "reg", , sizeof(reg64)) - < sizeof(reg64)) -continue; - addr = be64toh(reg64); - /* - * The i2c bus number (0 or 1) is encoded in bit 33 - * of the register, but we encode it in bit 8 of - * i2c_addr_t. - */ - if (addr & 0x1) -addr = (addr & 0xff) | 0x100; - } else if (cell_size == 4 && len >= sizeof(reg32)) { - if (OF_getprop(node, "reg", , sizeof(reg32)) - < sizeof(reg32)) -continue; - addr = be32toh(reg32); - } else { + } + if (!get_address(node, )) {
CVS commit: [thorpej-i2c-spi-conf] src/sys/dev/ofw
Module Name:src Committed By: thorpej Date: Sun Apr 25 22:16:05 UTC 2021 Modified Files: src/sys/dev/ofw [thorpej-i2c-spi-conf]: ofw_i2c_subr.c openfirm.h Log Message: Implement "i2c-enumerate-devices" for OFW / FDT. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.1.6.1 src/sys/dev/ofw/ofw_i2c_subr.c cvs rdiff -u -r1.47 -r1.47.2.1 src/sys/dev/ofw/openfirm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [thorpej-i2c-spi-conf] src/sys
Module Name:src Committed By: thorpej Date: Sun Apr 25 22:02:59 UTC 2021 Modified Files: src/sys/arch/arm/broadcom [thorpej-i2c-spi-conf]: bcm2835_bsc_acpi.c src/sys/arch/x86/pci [thorpej-i2c-spi-conf]: dwiic_pci.c src/sys/dev/acpi [thorpej-i2c-spi-conf]: dwiic_acpi.c nxpiic_acpi.c src/sys/dev/i2c [thorpej-i2c-spi-conf]: motoi2c.c motoi2cvar.h Log Message: - Don't use acpi_enter_i2c_devs() -- it no longer exists. - Pass along our devhandle to the i2c bus instance. To generate a diff of this commit: cvs rdiff -u -r1.3.2.1 -r1.3.2.2 src/sys/arch/arm/broadcom/bcm2835_bsc_acpi.c cvs rdiff -u -r1.4.2.1 -r1.4.2.2 src/sys/arch/x86/pci/dwiic_pci.c cvs rdiff -u -r1.8.2.1 -r1.8.2.2 src/sys/dev/acpi/dwiic_acpi.c cvs rdiff -u -r1.4.6.1 -r1.4.6.2 src/sys/dev/acpi/nxpiic_acpi.c cvs rdiff -u -r1.11 -r1.11.2.1 src/sys/dev/i2c/motoi2c.c cvs rdiff -u -r1.8 -r1.8.4.1 src/sys/dev/i2c/motoi2cvar.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/arm/broadcom/bcm2835_bsc_acpi.c diff -u src/sys/arch/arm/broadcom/bcm2835_bsc_acpi.c:1.3.2.1 src/sys/arch/arm/broadcom/bcm2835_bsc_acpi.c:1.3.2.2 --- src/sys/arch/arm/broadcom/bcm2835_bsc_acpi.c:1.3.2.1 Sun Apr 25 21:52:28 2021 +++ src/sys/arch/arm/broadcom/bcm2835_bsc_acpi.c Sun Apr 25 22:02:59 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: bcm2835_bsc_acpi.c,v 1.3.2.1 2021/04/25 21:52:28 thorpej Exp $ */ +/* $NetBSD: bcm2835_bsc_acpi.c,v 1.3.2.2 2021/04/25 22:02:59 thorpej Exp $ */ /*- * Copyright (c) 2020 Jared McNeill @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: bcm2835_bsc_acpi.c,v 1.3.2.1 2021/04/25 21:52:28 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bcm2835_bsc_acpi.c,v 1.3.2.2 2021/04/25 22:02:59 thorpej Exp $"); #include #include @@ -159,8 +159,9 @@ bsciic_acpi_attach(device_t parent, devi memset(, 0, sizeof(iba)); iba.iba_tag = >sc_i2c; - iba.iba_child_devices = acpi_enter_i2c_devs(self, aa->aa_node); - config_found(self, , iicbus_print, CFARG_EOL); + config_found(self, , iicbus_print, + CFARG_DEVHANDLE, device_handle(self), + CFARG_EOL); done: acpi_resource_cleanup(); Index: src/sys/arch/x86/pci/dwiic_pci.c diff -u src/sys/arch/x86/pci/dwiic_pci.c:1.4.2.1 src/sys/arch/x86/pci/dwiic_pci.c:1.4.2.2 --- src/sys/arch/x86/pci/dwiic_pci.c:1.4.2.1 Sun Apr 25 21:52:28 2021 +++ src/sys/arch/x86/pci/dwiic_pci.c Sun Apr 25 22:02:59 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: dwiic_pci.c,v 1.4.2.1 2021/04/25 21:52:28 thorpej Exp $ */ +/* $NetBSD: dwiic_pci.c,v 1.4.2.2 2021/04/25 22:02:59 thorpej Exp $ */ /*- * Copyright (c) 2017 The NetBSD Foundation, Inc. @@ -33,7 +33,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: dwiic_pci.c,v 1.4.2.1 2021/04/25 21:52:28 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dwiic_pci.c,v 1.4.2.2 2021/04/25 22:02:59 thorpej Exp $"); #include #include @@ -42,10 +42,6 @@ __KERNEL_RCSID(0, "$NetBSD: dwiic_pci.c, #include #include -#include -#include -#include - #include #include @@ -61,7 +57,6 @@ struct pci_dwiic_softc { struct dwiic_softc sc_dwiic; pci_chipset_tag_t sc_pc; pcitag_t sc_ptag; - struct acpi_devnode *sc_acpinode; }; static uint32_t @@ -164,19 +159,11 @@ pci_dwiic_attach(device_t parent, device lpss_write(sc, LPSS_REMAP_HI, pci_conf_read(sc->sc_pc, sc->sc_ptag, PCI_BAR0 + 0x4)); - sc->sc_acpinode = acpi_pcidev_find(0 /*XXX segment*/, - pa->pa_bus, pa->pa_device, pa->pa_function); - - if (sc->sc_acpinode) { - sc->sc_dwiic.sc_iba.iba_child_devices = - acpi_enter_i2c_devs(NULL, sc->sc_acpinode); - } else { - aprint_verbose_dev(self, "no matching ACPI node\n"); - } - dwiic_attach(>sc_dwiic); - config_found(self, >sc_dwiic.sc_iba, iicbus_print, CFARG_EOL); + config_found(self, >sc_dwiic.sc_iba, iicbus_print, + CFARG_DEVHANDLE, device_handle(self), + CFARG_EOL); pmf_device_register(self, dwiic_suspend, dwiic_resume); Index: src/sys/dev/acpi/dwiic_acpi.c diff -u src/sys/dev/acpi/dwiic_acpi.c:1.8.2.1 src/sys/dev/acpi/dwiic_acpi.c:1.8.2.2 --- src/sys/dev/acpi/dwiic_acpi.c:1.8.2.1 Sun Apr 25 21:52:28 2021 +++ src/sys/dev/acpi/dwiic_acpi.c Sun Apr 25 22:02:59 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: dwiic_acpi.c,v 1.8.2.1 2021/04/25 21:52:28 thorpej Exp $ */ +/* $NetBSD: dwiic_acpi.c,v 1.8.2.2 2021/04/25 22:02:59 thorpej Exp $ */ /*- * Copyright (c) 2018 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: dwiic_acpi.c,v 1.8.2.1 2021/04/25 21:52:28 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dwiic_acpi.c,v 1.8.2.2 2021/04/25 22:02:59 thorpej Exp $"); #include #include @@ -124,11 +124,11 @@ dwiic_acpi_attach(device_t parent, devic dwiic_acpi_configure(sc, aa->aa_node->ad_handle); - sc->sc_iba.iba_child_devices = acpi_enter_i2c_devs(self, aa->aa_node); - dwiic_attach(sc); - config_found(self, >sc_iba, iicbus_print, CFARG_EOL); +
CVS commit: [thorpej-i2c-spi-conf] src/sys
Module Name:src Committed By: thorpej Date: Sun Apr 25 22:02:59 UTC 2021 Modified Files: src/sys/arch/arm/broadcom [thorpej-i2c-spi-conf]: bcm2835_bsc_acpi.c src/sys/arch/x86/pci [thorpej-i2c-spi-conf]: dwiic_pci.c src/sys/dev/acpi [thorpej-i2c-spi-conf]: dwiic_acpi.c nxpiic_acpi.c src/sys/dev/i2c [thorpej-i2c-spi-conf]: motoi2c.c motoi2cvar.h Log Message: - Don't use acpi_enter_i2c_devs() -- it no longer exists. - Pass along our devhandle to the i2c bus instance. To generate a diff of this commit: cvs rdiff -u -r1.3.2.1 -r1.3.2.2 src/sys/arch/arm/broadcom/bcm2835_bsc_acpi.c cvs rdiff -u -r1.4.2.1 -r1.4.2.2 src/sys/arch/x86/pci/dwiic_pci.c cvs rdiff -u -r1.8.2.1 -r1.8.2.2 src/sys/dev/acpi/dwiic_acpi.c cvs rdiff -u -r1.4.6.1 -r1.4.6.2 src/sys/dev/acpi/nxpiic_acpi.c cvs rdiff -u -r1.11 -r1.11.2.1 src/sys/dev/i2c/motoi2c.c cvs rdiff -u -r1.8 -r1.8.4.1 src/sys/dev/i2c/motoi2cvar.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/sparc/sparc
Module Name:src Committed By: mrg Date: Sun Apr 25 21:59:38 UTC 2021 Modified Files: src/sys/arch/sparc/sparc: locore.s Log Message: fix a comment to match the code. To generate a diff of this commit: cvs rdiff -u -r1.279 -r1.280 src/sys/arch/sparc/sparc/locore.s Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/sparc/sparc/locore.s diff -u src/sys/arch/sparc/sparc/locore.s:1.279 src/sys/arch/sparc/sparc/locore.s:1.280 --- src/sys/arch/sparc/sparc/locore.s:1.279 Sun Jan 24 07:36:54 2021 +++ src/sys/arch/sparc/sparc/locore.s Sun Apr 25 21:59:38 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: locore.s,v 1.279 2021/01/24 07:36:54 mrg Exp $ */ +/* $NetBSD: locore.s,v 1.280 2021/04/25 21:59:38 mrg Exp $ */ /* * Copyright (c) 1996 Paul Kranenburg @@ -2662,7 +2662,7 @@ sparc_interrupt4m_bogus: bnz,a 1f ! splhigh(); or %l0, 0xf00, %l0 ! } else - call _C_LABEL(bogusintr) ! strayintr() + call _C_LABEL(bogusintr) ! bogusintr() add %sp, CCFSZ, %o0 /* all done: restore registers and go return */ 1:
CVS commit: src/sys/arch/sparc/sparc
Module Name:src Committed By: mrg Date: Sun Apr 25 21:59:38 UTC 2021 Modified Files: src/sys/arch/sparc/sparc: locore.s Log Message: fix a comment to match the code. To generate a diff of this commit: cvs rdiff -u -r1.279 -r1.280 src/sys/arch/sparc/sparc/locore.s Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Sun Apr 25 21:55:58 UTC 2021 Modified Files: src/share/mk: bsd.own.mk Log Message: make MACHINE_MIPS a boolean not a condition To generate a diff of this commit: cvs rdiff -u -r1.1245 -r1.1246 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1245 src/share/mk/bsd.own.mk:1.1246 --- src/share/mk/bsd.own.mk:1.1245 Sun Apr 25 11:33:15 2021 +++ src/share/mk/bsd.own.mk Sun Apr 25 17:55:58 2021 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1245 2021/04/25 15:33:15 rin Exp $ +# $NetBSD: bsd.own.mk,v 1.1246 2021/04/25 21:55:58 christos Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -16,10 +16,14 @@ MAKECONF?= /etc/mk.conf # MACHINE_CPU= ${MACHINE_ARCH:C/mips.*e[bl]/mips/:C/sh3e[bl]/sh3/:S/coldfire/m68k/:S/m68000/m68k/:C/e?arm.*/arm/:S/powerpc64/powerpc/:S/aarch64eb/aarch64/:S/or1knd/or1k/:C/riscv../riscv/} -MACHINE_MIPS64= (${MACHINE_ARCH} == "mips64el" || \ - ${MACHINE_ARCH} == "mips64eb" || \ - ${MACHINE_ARCH} == "mipsn64el" || \ - ${MACHINE_ARCH} == "mipsn64eb") +.if (${MACHINE_ARCH} == "mips64el" || \ + ${MACHINE_ARCH} == "mips64eb" || \ + ${MACHINE_ARCH} == "mipsn64el" || \ + ${MACHINE_ARCH} == "mipsn64eb") +MACHINE_MIPS64= 1 +.else +MACHINE_MIPS64= 0 +.endif # # Subdirectory used below ${RELEASEDIR} when building a release
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Sun Apr 25 21:55:58 UTC 2021 Modified Files: src/share/mk: bsd.own.mk Log Message: make MACHINE_MIPS a boolean not a condition To generate a diff of this commit: cvs rdiff -u -r1.1245 -r1.1246 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [thorpej-i2c-spi-conf] src/sys
Module Name:src Committed By: thorpej Date: Sun Apr 25 21:52:28 UTC 2021 Modified Files: src/sys/arch/arm/broadcom [thorpej-i2c-spi-conf]: bcm2835_bsc_acpi.c src/sys/arch/x86/pci [thorpej-i2c-spi-conf]: dwiic_pci.c src/sys/dev/acpi [thorpej-i2c-spi-conf]: dwiic_acpi.c nxpiic_acpi.c Log Message: acpi_i2c.h is no more. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.3.2.1 src/sys/arch/arm/broadcom/bcm2835_bsc_acpi.c cvs rdiff -u -r1.4 -r1.4.2.1 src/sys/arch/x86/pci/dwiic_pci.c cvs rdiff -u -r1.8 -r1.8.2.1 src/sys/dev/acpi/dwiic_acpi.c cvs rdiff -u -r1.4 -r1.4.6.1 src/sys/dev/acpi/nxpiic_acpi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/arm/broadcom/bcm2835_bsc_acpi.c diff -u src/sys/arch/arm/broadcom/bcm2835_bsc_acpi.c:1.3 src/sys/arch/arm/broadcom/bcm2835_bsc_acpi.c:1.3.2.1 --- src/sys/arch/arm/broadcom/bcm2835_bsc_acpi.c:1.3 Sat Apr 24 23:36:26 2021 +++ src/sys/arch/arm/broadcom/bcm2835_bsc_acpi.c Sun Apr 25 21:52:28 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: bcm2835_bsc_acpi.c,v 1.3 2021/04/24 23:36:26 thorpej Exp $ */ +/* $NetBSD: bcm2835_bsc_acpi.c,v 1.3.2.1 2021/04/25 21:52:28 thorpej Exp $ */ /*- * Copyright (c) 2020 Jared McNeill @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: bcm2835_bsc_acpi.c,v 1.3 2021/04/24 23:36:26 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bcm2835_bsc_acpi.c,v 1.3.2.1 2021/04/25 21:52:28 thorpej Exp $"); #include #include @@ -37,7 +37,6 @@ __KERNEL_RCSID(0, "$NetBSD: bcm2835_bsc_ #include #include #include -#include #include #include Index: src/sys/arch/x86/pci/dwiic_pci.c diff -u src/sys/arch/x86/pci/dwiic_pci.c:1.4 src/sys/arch/x86/pci/dwiic_pci.c:1.4.2.1 --- src/sys/arch/x86/pci/dwiic_pci.c:1.4 Sat Apr 24 23:36:51 2021 +++ src/sys/arch/x86/pci/dwiic_pci.c Sun Apr 25 21:52:28 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: dwiic_pci.c,v 1.4 2021/04/24 23:36:51 thorpej Exp $ */ +/* $NetBSD: dwiic_pci.c,v 1.4.2.1 2021/04/25 21:52:28 thorpej Exp $ */ /*- * Copyright (c) 2017 The NetBSD Foundation, Inc. @@ -33,7 +33,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: dwiic_pci.c,v 1.4 2021/04/24 23:36:51 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dwiic_pci.c,v 1.4.2.1 2021/04/25 21:52:28 thorpej Exp $"); #include #include @@ -45,7 +45,6 @@ __KERNEL_RCSID(0, "$NetBSD: dwiic_pci.c, #include #include #include -#include #include #include Index: src/sys/dev/acpi/dwiic_acpi.c diff -u src/sys/dev/acpi/dwiic_acpi.c:1.8 src/sys/dev/acpi/dwiic_acpi.c:1.8.2.1 --- src/sys/dev/acpi/dwiic_acpi.c:1.8 Sat Apr 24 23:36:52 2021 +++ src/sys/dev/acpi/dwiic_acpi.c Sun Apr 25 21:52:28 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: dwiic_acpi.c,v 1.8 2021/04/24 23:36:52 thorpej Exp $ */ +/* $NetBSD: dwiic_acpi.c,v 1.8.2.1 2021/04/25 21:52:28 thorpej Exp $ */ /*- * Copyright (c) 2018 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: dwiic_acpi.c,v 1.8 2021/04/24 23:36:52 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dwiic_acpi.c,v 1.8.2.1 2021/04/25 21:52:28 thorpej Exp $"); #include #include @@ -40,7 +40,6 @@ __KERNEL_RCSID(0, "$NetBSD: dwiic_acpi.c #include #include #include -#include #include Index: src/sys/dev/acpi/nxpiic_acpi.c diff -u src/sys/dev/acpi/nxpiic_acpi.c:1.4 src/sys/dev/acpi/nxpiic_acpi.c:1.4.6.1 --- src/sys/dev/acpi/nxpiic_acpi.c:1.4 Fri Jan 29 02:26:58 2021 +++ src/sys/dev/acpi/nxpiic_acpi.c Sun Apr 25 21:52:28 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: nxpiic_acpi.c,v 1.4 2021/01/29 02:26:58 thorpej Exp $ */ +/* $NetBSD: nxpiic_acpi.c,v 1.4.6.1 2021/04/25 21:52:28 thorpej Exp $ */ /*- * Copyright (c) 2021 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: nxpiic_acpi.c,v 1.4 2021/01/29 02:26:58 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: nxpiic_acpi.c,v 1.4.6.1 2021/04/25 21:52:28 thorpej Exp $"); #include #include @@ -40,7 +40,6 @@ __KERNEL_RCSID(0, "$NetBSD: nxpiic_acpi. #include #include #include -#include #include #include
CVS commit: [thorpej-i2c-spi-conf] src/sys
Module Name:src Committed By: thorpej Date: Sun Apr 25 21:52:28 UTC 2021 Modified Files: src/sys/arch/arm/broadcom [thorpej-i2c-spi-conf]: bcm2835_bsc_acpi.c src/sys/arch/x86/pci [thorpej-i2c-spi-conf]: dwiic_pci.c src/sys/dev/acpi [thorpej-i2c-spi-conf]: dwiic_acpi.c nxpiic_acpi.c Log Message: acpi_i2c.h is no more. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.3.2.1 src/sys/arch/arm/broadcom/bcm2835_bsc_acpi.c cvs rdiff -u -r1.4 -r1.4.2.1 src/sys/arch/x86/pci/dwiic_pci.c cvs rdiff -u -r1.8 -r1.8.2.1 src/sys/dev/acpi/dwiic_acpi.c cvs rdiff -u -r1.4 -r1.4.6.1 src/sys/dev/acpi/nxpiic_acpi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [thorpej-i2c-spi-conf] src/sys/dev/acpi
Module Name:src Committed By: thorpej Date: Sun Apr 25 21:49:56 UTC 2021 Modified Files: src/sys/dev/acpi [thorpej-i2c-spi-conf]: acpi_i2c.c Removed Files: src/sys/dev/acpi [thorpej-i2c-spi-conf]: acpi_i2c.h Log Message: Implement "i2c-enumerate-devices" for ACPI. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.11.4.1 src/sys/dev/acpi/acpi_i2c.c cvs rdiff -u -r1.2 -r0 src/sys/dev/acpi/acpi_i2c.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [thorpej-i2c-spi-conf] src/sys/dev/acpi
Module Name:src Committed By: thorpej Date: Sun Apr 25 21:49:56 UTC 2021 Modified Files: src/sys/dev/acpi [thorpej-i2c-spi-conf]: acpi_i2c.c Removed Files: src/sys/dev/acpi [thorpej-i2c-spi-conf]: acpi_i2c.h Log Message: Implement "i2c-enumerate-devices" for ACPI. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.11.4.1 src/sys/dev/acpi/acpi_i2c.c cvs rdiff -u -r1.2 -r0 src/sys/dev/acpi/acpi_i2c.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/acpi/acpi_i2c.c diff -u src/sys/dev/acpi/acpi_i2c.c:1.11 src/sys/dev/acpi/acpi_i2c.c:1.11.4.1 --- src/sys/dev/acpi/acpi_i2c.c:1.11 Tue Jan 26 01:23:08 2021 +++ src/sys/dev/acpi/acpi_i2c.c Sun Apr 25 21:49:56 2021 @@ -1,11 +1,11 @@ -/* $NetBSD: acpi_i2c.c,v 1.11 2021/01/26 01:23:08 thorpej Exp $ */ +/* $NetBSD: acpi_i2c.c,v 1.11.4.1 2021/04/25 21:49:56 thorpej Exp $ */ /*- * Copyright (c) 2017, 2021 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation - * by Manuel Bouyer. + * by Manuel Bouyer and Jason R. Thorpe. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -30,11 +30,10 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: acpi_i2c.c,v 1.11 2021/01/26 01:23:08 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: acpi_i2c.c,v 1.11.4.1 2021/04/25 21:49:56 thorpej Exp $"); #include #include -#include #include #include @@ -69,15 +68,16 @@ acpi_i2c_resource_parse_callback(ACPI_RE return_ACPI_STATUS(AE_OK); } -static void -acpi_enter_i2c_device(struct acpi_devnode *ad, prop_array_t array) +static bool +acpi_i2c_enumerate_device(device_t dev, struct acpi_devnode *ad, +struct i2c_enumerate_devices_args * const args) { - prop_dictionary_t dev; - struct acpi_i2c_context i2cc; - ACPI_STATUS rv; - const char *name; char *clist; size_t clist_size; + prop_dictionary_t props; + struct acpi_i2c_context i2cc; + bool cbrv; + ACPI_STATUS rv; memset(, 0, sizeof(i2cc)); rv = AcpiWalkResources(ad->ad_handle, "_CRS", @@ -86,58 +86,61 @@ acpi_enter_i2c_device(struct acpi_devnod aprint_error("ACPI: unable to get resources " "for %s: %s\n", ad->ad_name, AcpiFormatException(rv)); - return; + return true; /* keep enumerating */ } if (i2cc.i2c_addr == 0) - return; - dev = prop_dictionary_create(); - if (dev == NULL) { - aprint_error("ignoring device %s (no memory)\n", - ad->ad_name); - return; - } + return true; /* keep enumerating */ + clist = acpi_pack_compat_list(ad->ad_devinfo, _size); if (clist == NULL) { - prop_object_release(dev); - aprint_error("ignoring device %s (no _HID or _CID)\n", + aprint_error("ACPI: ignoring device %s (no _HID or _CID)\n", ad->ad_name); - return; + return true; /* keep enumerating */ } - if ((ad->ad_devinfo->Valid & ACPI_VALID_HID) == 0) - name = ad->ad_name; - else - name = ad->ad_devinfo->HardwareId.String; - prop_dictionary_set_string(dev, "name", name); - prop_dictionary_set_uint32(dev, "addr", i2cc.i2c_addr); - prop_dictionary_set_uint64(dev, "cookie", (uintptr_t)ad->ad_handle); - prop_dictionary_set_uint32(dev, "cookietype", I2C_COOKIE_ACPI); - prop_dictionary_set_data(dev, "compatible", clist, clist_size); + props = prop_dictionary_create(); + + args->ia->ia_addr = i2cc.i2c_addr; + args->ia->ia_name = ad->ad_name; + args->ia->ia_clist = clist; + args->ia->ia_clist_size = clist_size; + args->ia->ia_prop = props; + args->ia->ia_devhandle = devhandle_from_acpi(ad->ad_handle); + args->ia->ia_cookie = (uint64_t)ad->ad_handle; /* XXX */ + args->ia->ia_cookietype = I2C_COOKIE_ACPI; /* XXX */ + + cbrv = args->callback(dev, args); + + prop_object_release(props); kmem_free(clist, clist_size); - prop_array_add(array, dev); - prop_object_release(dev); + return cbrv; /* callback decides if we keep enumerating */ } -prop_array_t -acpi_enter_i2c_devs(device_t dev, struct acpi_devnode *devnode) +static int +acpi_i2c_enumerate_devices(device_t dev, devhandle_t call_handle, void *v) { - struct acpi_devnode *ad; - prop_array_t array = prop_array_create(); - - if (array == NULL) - return NULL; + struct i2c_enumerate_devices_args *args = v; + struct acpi_devnode *ad, *devnode; + ACPI_HANDLE *hdl = devhandle_to_acpi(call_handle); + + devnode = acpi_match_node(hdl); + if (devnode == NULL) { + aprint_verbose_dev(dev, "%s: no devnode matching handle\n", + __func__); + return 0; + } SIMPLEQ_FOREACH(ad, >ad_child_head, ad_child_list) { if (ad->ad_devinfo->Type != ACPI_TYPE_DEVICE) continue; if (!acpi_device_present(ad->ad_handle)) continue; - acpi_enter_i2c_device(ad, array); + if (!acpi_i2c_enumerate_device(dev, ad, args)) + break; } - if (dev != NULL) { - acpi_claim_childdevs(dev, devnode); - } + acpi_claim_childdevs(dev, devnode); -
CVS commit: [thorpej-i2c-spi-conf] src/sys/dev/i2c
Module Name:src Committed By: thorpej Date: Sun Apr 25 21:45:16 UTC 2021 Modified Files: src/sys/dev/i2c [thorpej-i2c-spi-conf]: i2c.c i2cvar.h Log Message: Stop using a prop_array of child device data to perform direct configuration of i2c devices. Instead, introduce and use a new device call "i2c-enumerate-devices" that can be implemented by devhandle providers that have I2C bindings. This device call gathers up the data into i2c_attach_args and invoked a callback (back to the i2c layer) to attach the device. The I2C controller device supplies its devhandle (or the appropriate devhandle for the I2C bus) when attaching the i2c bus instance using CFARG_DEVHANDLE. To generate a diff of this commit: cvs rdiff -u -r1.78 -r1.78.2.1 src/sys/dev/i2c/i2c.c cvs rdiff -u -r1.24 -r1.24.2.1 src/sys/dev/i2c/i2cvar.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/i2c/i2c.c diff -u src/sys/dev/i2c/i2c.c:1.78 src/sys/dev/i2c/i2c.c:1.78.2.1 --- src/sys/dev/i2c/i2c.c:1.78 Sat Apr 24 23:36:54 2021 +++ src/sys/dev/i2c/i2c.c Sun Apr 25 21:45:15 2021 @@ -1,4 +1,33 @@ -/* $NetBSD: i2c.c,v 1.78 2021/04/24 23:36:54 thorpej Exp $ */ +/* $NetBSD: i2c.c,v 1.78.2.1 2021/04/25 21:45:15 thorpej Exp $ */ + +/*- + * Copyright (c) 2021 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Jason R. Thorpe. + * + * 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 NETBSD FOUNDATION, INC. 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 FOUNDATION 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. + */ /* * Copyright (c) 2003 Wasabi Systems, Inc. @@ -40,7 +69,7 @@ #endif #include -__KERNEL_RCSID(0, "$NetBSD: i2c.c,v 1.78 2021/04/24 23:36:54 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: i2c.c,v 1.78.2.1 2021/04/25 21:45:15 thorpej Exp $"); #include #include @@ -99,8 +128,6 @@ const struct cdevsw iic_cdevsw = { }; static void iic_smbus_intr_thread(void *); -static void iic_fill_compat(struct i2c_attach_args*, const char*, - size_t, char **); static int iic_print_direct(void *aux, const char *pnp) @@ -287,8 +314,8 @@ iic_search(device_t parent, cfdata_t cf, ia.ia_tag = sc->sc_tag; ia.ia_name = NULL; - ia.ia_ncompat = 0; - ia.ia_compat = NULL; + ia.ia_clist = NULL; + ia.ia_clist_size = 0; ia.ia_prop = NULL; if (cf->cf_loc[IICCF_ADDR] == IICCF_ADDR_DEFAULT) { @@ -387,6 +414,34 @@ iic_rescan(device_t self, const char *if return 0; } +static bool +iic_enumerate_devices_callback(device_t self, +struct i2c_enumerate_devices_args *args) +{ + struct iic_softc *sc = device_private(self); + int loc[IICCF_NLOCS] = { 0 }; + + args->count++; + + loc[IICCF_ADDR] = args->ia->ia_addr; + + if (args->ia->ia_addr > I2C_MAX_ADDR) { + aprint_error_dev(self, + "WARNING: ignoring bad device address @ 0x%02x\n", + args->ia->ia_addr); + return true; /* keep enumerating */ + } + if (sc->sc_devices[args->ia->ia_addr] == NULL) { + sc->sc_devices[args->ia->ia_addr] = + config_found(self, args->ia, iic_print_direct, + /* CFARG_SUBMATCH, config_stdsubmatch, XXX */ + CFARG_LOCATORS, loc, + CFARG_DEVHANDLE, args->ia->ia_devhandle, + CFARG_EOL); + } + return true;/* keep enumerating */ +} + static int iic_match(device_t parent, cfdata_t cf, void *aux) { @@ -399,18 +454,15 @@ iic_attach(device_t parent, device_t sel { struct iic_softc *sc = device_private(self); struct i2cbus_attach_args *iba = aux; - prop_array_t child_devices; - prop_dictionary_t props; - char *buf; i2c_tag_t ic; int rv; - bool no_indirect_config = false; aprint_naive("\n"); aprint_normal(": I2C bus\n"); sc->sc_dev = self; sc->sc_tag = iba->iba_tag; + ic = sc->sc_tag;
CVS commit: [thorpej-i2c-spi-conf] src/sys/dev/i2c
Module Name:src Committed By: thorpej Date: Sun Apr 25 21:45:16 UTC 2021 Modified Files: src/sys/dev/i2c [thorpej-i2c-spi-conf]: i2c.c i2cvar.h Log Message: Stop using a prop_array of child device data to perform direct configuration of i2c devices. Instead, introduce and use a new device call "i2c-enumerate-devices" that can be implemented by devhandle providers that have I2C bindings. This device call gathers up the data into i2c_attach_args and invoked a callback (back to the i2c layer) to attach the device. The I2C controller device supplies its devhandle (or the appropriate devhandle for the I2C bus) when attaching the i2c bus instance using CFARG_DEVHANDLE. To generate a diff of this commit: cvs rdiff -u -r1.78 -r1.78.2.1 src/sys/dev/i2c/i2c.c cvs rdiff -u -r1.24 -r1.24.2.1 src/sys/dev/i2c/i2cvar.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/make/unit-tests
Module Name:src Committed By: rillig Date: Sun Apr 25 21:05:38 UTC 2021 Modified Files: src/usr.bin/make/unit-tests: cond-token-var.mk Log Message: tests/make: add tests for ${...} without operator in conditions These tests are already covered in cond-cmp-unary.mk, but my first guess was to search for these tests in cond-token-var.mk, so keep them in both tests. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/usr.bin/make/unit-tests/cond-token-var.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/make/unit-tests
Module Name:src Committed By: rillig Date: Sun Apr 25 21:05:38 UTC 2021 Modified Files: src/usr.bin/make/unit-tests: cond-token-var.mk Log Message: tests/make: add tests for ${...} without operator in conditions These tests are already covered in cond-cmp-unary.mk, but my first guess was to search for these tests in cond-token-var.mk, so keep them in both tests. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/usr.bin/make/unit-tests/cond-token-var.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/make/unit-tests/cond-token-var.mk diff -u src/usr.bin/make/unit-tests/cond-token-var.mk:1.5 src/usr.bin/make/unit-tests/cond-token-var.mk:1.6 --- src/usr.bin/make/unit-tests/cond-token-var.mk:1.5 Sun Nov 15 14:58:14 2020 +++ src/usr.bin/make/unit-tests/cond-token-var.mk Sun Apr 25 21:05:38 2021 @@ -1,4 +1,4 @@ -# $NetBSD: cond-token-var.mk,v 1.5 2020/11/15 14:58:14 rillig Exp $ +# $NetBSD: cond-token-var.mk,v 1.6 2021/04/25 21:05:38 rillig Exp $ # # Tests for variable expressions in .if conditions. # @@ -46,3 +46,24 @@ DEF= defined # Since the expression is defined now, it doesn't generate any parse error. .if ${UNDEF:U} .endif + +# If the value of the variable expression is a number, it is compared against +# zero. +.if ${:U0} +. error +.endif +.if !${:U1} +. error +.endif + +# If the value of the variable expression is not a number, any non-empty +# value evaluates to true, even if there is only whitespace. +.if ${:U} +. error +.endif +.if !${:U } +. error +.endif +.if !${:Uanything} +. error +.endif
CVS commit: src/games/cgram
Module Name:src Committed By: rillig Date: Sun Apr 25 20:38:03 UTC 2021 Modified Files: src/games/cgram: cgram.c Log Message: cgram: use ASCII-only implementation of functions The function 'encode' already assumes that all letter characters are contiguous and that there are only 26 letters of each case. At the moment, cgram cannot handle UTF-8 anyway since it reads the input byte-wise, assuming that each byte is exacty one character. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/games/cgram/cgram.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/games/cgram
Module Name:src Committed By: rillig Date: Sun Apr 25 20:38:03 UTC 2021 Modified Files: src/games/cgram: cgram.c Log Message: cgram: use ASCII-only implementation of functions The function 'encode' already assumes that all letter characters are contiguous and that there are only 26 letters of each case. At the moment, cgram cannot handle UTF-8 anyway since it reads the input byte-wise, assuming that each byte is exacty one character. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/games/cgram/cgram.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/games/cgram/cgram.c diff -u src/games/cgram/cgram.c:1.20 src/games/cgram/cgram.c:1.21 --- src/games/cgram/cgram.c:1.20 Sun Apr 25 20:19:19 2021 +++ src/games/cgram/cgram.c Sun Apr 25 20:38:03 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: cgram.c,v 1.20 2021/04/25 20:19:19 rillig Exp $ */ +/* $NetBSD: cgram.c,v 1.21 2021/04/25 20:38:03 rillig Exp $ */ /*- * Copyright (c) 2013, 2021 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: cgram.c,v 1.20 2021/04/25 20:19:19 rillig Exp $"); +__RCSID("$NetBSD: cgram.c,v 1.21 2021/04/25 20:38:03 rillig Exp $"); #endif #include @@ -46,42 +46,41 @@ __RCSID("$NetBSD: cgram.c,v 1.20 2021/04 #include "pathnames.h" - -static char -ch_toupper(char ch) +static bool +ch_isspace(char ch) { - return (char)toupper((unsigned char)ch); + return isspace((unsigned char)ch) != 0; } -static char -ch_tolower(char ch) +static bool +ch_islower(char ch) { - return (char)tolower((unsigned char)ch); + return ch >= 'a' && ch <= 'z'; } static bool -ch_isalpha(char ch) +ch_isupper(char ch) { - return isalpha((unsigned char)ch) != 0; + return ch >= 'A' && ch <= 'Z'; } static bool -ch_islower(char ch) +ch_isalpha(char ch) { - return islower((unsigned char)ch) != 0; + return ch_islower(ch) || ch_isupper(ch); } -static bool -ch_isspace(char ch) +static char +ch_toupper(char ch) { - return isspace((unsigned char)ch) != 0; + return ch_islower(ch) ? (char)(ch - 'a' + 'A') : ch; } -static bool -ch_isupper(char ch) +static char +ch_tolower(char ch) { - return isupper((unsigned char)ch) != 0; + return ch_isupper(ch) ? (char)(ch - 'A' + 'a') : ch; } static int
CVS commit: src/games/cgram
Module Name:src Committed By: rillig Date: Sun Apr 25 20:19:19 UTC 2021 Modified Files: src/games/cgram: cgram.c Log Message: cgram: provide usage on incorrect invocation To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/games/cgram/cgram.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/games/cgram/cgram.c diff -u src/games/cgram/cgram.c:1.19 src/games/cgram/cgram.c:1.20 --- src/games/cgram/cgram.c:1.19 Sun Apr 25 20:14:29 2021 +++ src/games/cgram/cgram.c Sun Apr 25 20:19:19 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: cgram.c,v 1.19 2021/04/25 20:14:29 rillig Exp $ */ +/* $NetBSD: cgram.c,v 1.20 2021/04/25 20:19:19 rillig Exp $ */ /*- * Copyright (c) 2013, 2021 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: cgram.c,v 1.19 2021/04/25 20:14:29 rillig Exp $"); +__RCSID("$NetBSD: cgram.c,v 1.20 2021/04/25 20:19:19 rillig Exp $"); #endif #include @@ -594,11 +594,23 @@ clean_up(void) stringarray_cleanup(); } - + +static void __dead +usage(void) +{ + + fprintf(stderr, "usage: %s [file]\n", getprogname()); + exit(1); +} int main(int argc, char *argv[]) { + + setprogname(argv[0]); + if (argc != 1 && argc != 2) + usage(); + init(argc > 1 ? argv[1] : NULL); loop(); clean_up();
CVS commit: src/games/cgram
Module Name:src Committed By: rillig Date: Sun Apr 25 20:19:19 UTC 2021 Modified Files: src/games/cgram: cgram.c Log Message: cgram: provide usage on incorrect invocation To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/games/cgram/cgram.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/games/cgram
Module Name:src Committed By: rillig Date: Sun Apr 25 20:14:29 UTC 2021 Modified Files: src/games/cgram: cgram.c Log Message: cgram: conform to lint's strict bool mode, KNF To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/games/cgram/cgram.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/games/cgram/cgram.c diff -u src/games/cgram/cgram.c:1.18 src/games/cgram/cgram.c:1.19 --- src/games/cgram/cgram.c:1.18 Thu Apr 22 14:57:36 2021 +++ src/games/cgram/cgram.c Sun Apr 25 20:14:29 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: cgram.c,v 1.18 2021/04/22 14:57:36 wiz Exp $ */ +/* $NetBSD: cgram.c,v 1.19 2021/04/25 20:14:29 rillig Exp $ */ /*- * Copyright (c) 2013, 2021 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: cgram.c,v 1.18 2021/04/22 14:57:36 wiz Exp $"); +__RCSID("$NetBSD: cgram.c,v 1.19 2021/04/25 20:14:29 rillig Exp $"); #endif #include @@ -216,7 +216,9 @@ char_at_cursor(void) return lines.v[cursor_y].s[cursor_x]; } -static void getquote(FILE *f) { +static void +getquote(FILE *f) +{ struct string line; string_init(); @@ -255,7 +257,7 @@ readfile(const char *name) getquote(f); if (fclose(f) != 0) - exit(1); + err(1, "%s", name); } @@ -558,7 +560,7 @@ init(const char *filename) stringarray_init(); stringarray_init(); srandom((unsigned int)time(NULL)); - if (filename) { + if (filename != NULL) { readfile(filename); } else { readquote();
CVS commit: src/games/cgram
Module Name:src Committed By: rillig Date: Sun Apr 25 20:14:29 UTC 2021 Modified Files: src/games/cgram: cgram.c Log Message: cgram: conform to lint's strict bool mode, KNF To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/games/cgram/cgram.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/compat/mips64
Module Name:src Committed By: christos Date: Sun Apr 25 18:44:05 UTC 2021 Modified Files: src/compat/mips64/n32: bsd.n32.mk src/compat/mips64/o32: bsd.o32.mk Log Message: define BFD_MACHINE_ARCH. This worked by accident before since the default 64 bit target was 32 bits. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/compat/mips64/n32/bsd.n32.mk cvs rdiff -u -r1.15 -r1.16 src/compat/mips64/o32/bsd.o32.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/compat/mips64/n32/bsd.n32.mk diff -u src/compat/mips64/n32/bsd.n32.mk:1.1 src/compat/mips64/n32/bsd.n32.mk:1.2 --- src/compat/mips64/n32/bsd.n32.mk:1.1 Sun Apr 25 11:18:23 2021 +++ src/compat/mips64/n32/bsd.n32.mk Sun Apr 25 14:44:04 2021 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.n32.mk,v 1.1 2021/04/25 15:18:23 christos Exp $ +# $NetBSD: bsd.n32.mk,v 1.2 2021/04/25 18:44:04 christos Exp $ .if !empty(MACHINE_ARCH:M*eb) LD+= -m elf32btsmipn32 @@ -12,6 +12,7 @@ LIBC_MACHINE_ARCH= ${MACHINE_ARCH:S/mips LIBGCC_MACHINE_ARCH= ${LIBC_MACHINE_ARCH} GOMP_MACHINE_ARCH= ${LIBC_MACHINE_ARCH} XORG_MACHINE_ARCH= ${LIBC_MACHINE_ARCH} +BFD_MACHINE_ARCH= ${LIBC_MACHINE_ARCH} COPTS+= -mabi=n32 CPUFLAGS+= -mabi=n32 Index: src/compat/mips64/o32/bsd.o32.mk diff -u src/compat/mips64/o32/bsd.o32.mk:1.15 src/compat/mips64/o32/bsd.o32.mk:1.16 --- src/compat/mips64/o32/bsd.o32.mk:1.15 Sun Apr 25 11:18:23 2021 +++ src/compat/mips64/o32/bsd.o32.mk Sun Apr 25 14:44:04 2021 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.o32.mk,v 1.15 2021/04/25 15:18:23 christos Exp $ +# $NetBSD: bsd.o32.mk,v 1.16 2021/04/25 18:44:04 christos Exp $ .if !empty(MACHINE_ARCH:M*eb) LD+= -m elf32btsmip @@ -12,6 +12,7 @@ LIBC_MACHINE_ARCH= ${MACHINE_ARCH:S/mips LIBGCC_MACHINE_ARCH= ${LIBC_MACHINE_ARCH} GOMP_MACHINE_ARCH= ${LIBC_MACHINE_ARCH} XORG_MACHINE_ARCH= ${LIBC_MACHINE_ARCH} +BFD_MACHINE_ARCH= ${LIBC_MACHINE_ARCH} COPTS+= -mabi=32 -march=mips3 CPUFLAGS+= -mabi=32 -march=mips3
CVS commit: src/compat/mips64
Module Name:src Committed By: christos Date: Sun Apr 25 18:44:05 UTC 2021 Modified Files: src/compat/mips64/n32: bsd.n32.mk src/compat/mips64/o32: bsd.o32.mk Log Message: define BFD_MACHINE_ARCH. This worked by accident before since the default 64 bit target was 32 bits. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/compat/mips64/n32/bsd.n32.mk cvs rdiff -u -r1.15 -r1.16 src/compat/mips64/o32/bsd.o32.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-9] src/doc
Module Name:src Committed By: martin Date: Sun Apr 25 18:30:58 UTC 2021 Modified Files: src/doc [netbsd-9]: CHANGES-9.2 Log Message: Ticket #1253 To generate a diff of this commit: cvs rdiff -u -r1.1.2.69 -r1.1.2.70 src/doc/CHANGES-9.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-9.2 diff -u src/doc/CHANGES-9.2:1.1.2.69 src/doc/CHANGES-9.2:1.1.2.70 --- src/doc/CHANGES-9.2:1.1.2.69 Sun Apr 25 11:15:14 2021 +++ src/doc/CHANGES-9.2 Sun Apr 25 18:30:58 2021 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-9.2,v 1.1.2.69 2021/04/25 11:15:14 martin Exp $ +# $NetBSD: CHANGES-9.2,v 1.1.2.70 2021/04/25 18:30:58 martin Exp $ A complete list of changes from the NetBSD 9.1 release to the NetBSD 9.2 release: @@ -2975,3 +2975,8 @@ sys/arch/arm/sunxi/sun8i_h3_ccu.c 1.18 arm/sunxi: Wire up sun8icrypto(4) on Allwinner H5. [riastradh, ticket #1252] +external/gpl2/texinfo/dist/configure 1.3 + + Fix cross build from newer clang versions on Darwin/Mac OS. + [cjep, ticket #1253] +
CVS commit: [netbsd-9] src/doc
Module Name:src Committed By: martin Date: Sun Apr 25 18:30:58 UTC 2021 Modified Files: src/doc [netbsd-9]: CHANGES-9.2 Log Message: Ticket #1253 To generate a diff of this commit: cvs rdiff -u -r1.1.2.69 -r1.1.2.70 src/doc/CHANGES-9.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-9] src/external/gpl2/texinfo/dist
Module Name:src Committed By: martin Date: Sun Apr 25 18:29:56 UTC 2021 Modified Files: src/external/gpl2/texinfo/dist [netbsd-9]: configure Log Message: Pull up following revision(s) (requested by cjep in ticket #1253): external/gpl2/texinfo/dist/configure: revision 1.3 Hack to get the "has ANSI C headers" check to pass on newer versions of clang as bundled with Xcode. If someone really cares about ensuring NetBSD's host tools build on a system without , then I'm sure that enterprising individual will also find a super #correct fix for this specific problem. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.2.18.1 src/external/gpl2/texinfo/dist/configure Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl2/texinfo/dist/configure diff -u src/external/gpl2/texinfo/dist/configure:1.2 src/external/gpl2/texinfo/dist/configure:1.2.18.1 --- src/external/gpl2/texinfo/dist/configure:1.2 Thu Jan 14 00:34:52 2016 +++ src/external/gpl2/texinfo/dist/configure Sun Apr 25 18:29:56 2021 @@ -3657,6 +3657,7 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include +#include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
CVS commit: [netbsd-9] src/external/gpl2/texinfo/dist
Module Name:src Committed By: martin Date: Sun Apr 25 18:29:56 UTC 2021 Modified Files: src/external/gpl2/texinfo/dist [netbsd-9]: configure Log Message: Pull up following revision(s) (requested by cjep in ticket #1253): external/gpl2/texinfo/dist/configure: revision 1.3 Hack to get the "has ANSI C headers" check to pass on newer versions of clang as bundled with Xcode. If someone really cares about ensuring NetBSD's host tools build on a system without , then I'm sure that enterprising individual will also find a super #correct fix for this specific problem. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.2.18.1 src/external/gpl2/texinfo/dist/configure Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/hpcmips/dev
Module Name:src Committed By: thorpej Date: Sun Apr 25 18:26:15 UTC 2021 Modified Files: src/sys/arch/hpcmips/dev: it8368.c Log Message: it8368_attach_socket(): Pass the device_t to config_found(), not the softc. This was missed due to a (void *) cast when the device_t / softc split changes occurred. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/sys/arch/hpcmips/dev/it8368.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/hpcmips/dev/it8368.c diff -u src/sys/arch/hpcmips/dev/it8368.c:1.25 src/sys/arch/hpcmips/dev/it8368.c:1.26 --- src/sys/arch/hpcmips/dev/it8368.c:1.25 Sat Apr 24 23:36:38 2021 +++ src/sys/arch/hpcmips/dev/it8368.c Sun Apr 25 18:26:15 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: it8368.c,v 1.25 2021/04/24 23:36:38 thorpej Exp $ */ +/* $NetBSD: it8368.c,v 1.26 2021/04/25 18:26:15 thorpej Exp $ */ /*- * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: it8368.c,v 1.25 2021/04/24 23:36:38 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: it8368.c,v 1.26 2021/04/25 18:26:15 thorpej Exp $"); #undef WINCE_DEFAULT_SETTING /* for debug */ #undef IT8368DEBUG @@ -381,7 +381,8 @@ it8368_attach_socket(struct it8368e_soft paa.pct = (pcmcia_chipset_tag_t)_functions; paa.pch = (pcmcia_chipset_handle_t)sc; - if ((sc->sc_pcmcia = config_found(sc, , it8368_print, CFARG_EOL))) { + if ((sc->sc_pcmcia = config_found(sc->sc_dev, , it8368_print, + CFARG_EOL))) { it8368_init_socket(sc); } }
CVS commit: src/sys/arch/hpcmips/dev
Module Name:src Committed By: thorpej Date: Sun Apr 25 18:26:15 UTC 2021 Modified Files: src/sys/arch/hpcmips/dev: it8368.c Log Message: it8368_attach_socket(): Pass the device_t to config_found(), not the softc. This was missed due to a (void *) cast when the device_t / softc split changes occurred. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/sys/arch/hpcmips/dev/it8368.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/doc
Module Name:src Committed By: thorpej Date: Sun Apr 25 18:16:25 UTC 2021 Modified Files: src/doc: BRANCHES Log Message: Document thorpej-i2c-spi-conf branch. To generate a diff of this commit: cvs rdiff -u -r1.358 -r1.359 src/doc/BRANCHES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/BRANCHES diff -u src/doc/BRANCHES:1.358 src/doc/BRANCHES:1.359 --- src/doc/BRANCHES:1.358 Sun Apr 25 01:01:09 2021 +++ src/doc/BRANCHES Sun Apr 25 18:16:25 2021 @@ -1,4 +1,4 @@ -# $NetBSD: BRANCHES,v 1.358 2021/04/25 01:01:09 thorpej Exp $ +# $NetBSD: BRANCHES,v 1.359 2021/04/25 18:16:25 thorpej Exp $ # # This file contains a list of branches that exist in the NetBSD CVS # tree and their current state. @@ -751,6 +751,16 @@ Notes: Normal futex operataions pass th Also includes implementations of eventfd and timerfd, as well as some additional improvements to COMPAT_LINUX{,32}. +Branch: thorpej-i2c-spi-conf +Description: Improve device tree-based I2C and SPI enumeration. +Status: Active +Start Date: Sun April 25, 2021 +End Date: +Base Tag: thorpej-i2c-spi-conf-base +Maintainer: Jason Thorpe +Scope: src/sys +Notes: + Branch: wrstuden-fixsa Description: Fix a number of issues present with Scheduler Activations. Status: Active
CVS commit: src/doc
Module Name:src Committed By: thorpej Date: Sun Apr 25 18:16:25 UTC 2021 Modified Files: src/doc: BRANCHES Log Message: Document thorpej-i2c-spi-conf branch. To generate a diff of this commit: cvs rdiff -u -r1.358 -r1.359 src/doc/BRANCHES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: rin Date: Sun Apr 25 15:33:15 UTC 2021 Modified Files: src/share/mk: bsd.own.mk Log Message: Add missing \ for previous. To generate a diff of this commit: cvs rdiff -u -r1.1244 -r1.1245 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1244 src/share/mk/bsd.own.mk:1.1245 --- src/share/mk/bsd.own.mk:1.1244 Sun Apr 25 14:32:20 2021 +++ src/share/mk/bsd.own.mk Sun Apr 25 15:33:15 2021 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1244 2021/04/25 14:32:20 christos Exp $ +# $NetBSD: bsd.own.mk,v 1.1245 2021/04/25 15:33:15 rin Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -1044,7 +1044,7 @@ MK${var}:= yes # aarch64eb is not yet supported. # .if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "sparc64" \ -|| ${MACHINE_MIPS64} +|| ${MACHINE_MIPS64} \ || ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_ARCH} == "aarch64" \ || ${MACHINE_ARCH} == "riscv64" || !empty(MACHINE_ARCH:Mearm*) MKCOMPAT?= yes
CVS commit: src/share/mk
Module Name:src Committed By: rin Date: Sun Apr 25 15:33:15 UTC 2021 Modified Files: src/share/mk: bsd.own.mk Log Message: Add missing \ for previous. To generate a diff of this commit: cvs rdiff -u -r1.1244 -r1.1245 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc
Module Name:src Committed By: rin Date: Sun Apr 25 15:32:25 UTC 2021 Modified Files: src/external/gpl3/gcc: README.gcc10 Log Message: Update as(1) failure on armv6; it occurs also for earmv6hfeb, whereas it does not for earmv6{,eb}. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/gcc/README.gcc10 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc
Module Name:src Committed By: rin Date: Sun Apr 25 15:32:25 UTC 2021 Modified Files: src/external/gpl3/gcc: README.gcc10 Log Message: Update as(1) failure on armv6; it occurs also for earmv6hfeb, whereas it does not for earmv6{,eb}. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/gcc/README.gcc10 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/README.gcc10 diff -u src/external/gpl3/gcc/README.gcc10:1.19 src/external/gpl3/gcc/README.gcc10:1.20 --- src/external/gpl3/gcc/README.gcc10:1.19 Sun Apr 25 10:08:25 2021 +++ src/external/gpl3/gcc/README.gcc10 Sun Apr 25 15:32:24 2021 @@ -1,4 +1,4 @@ -$NetBSD: README.gcc10,v 1.19 2021/04/25 10:08:25 mrg Exp $ +$NetBSD: README.gcc10,v 1.20 2021/04/25 15:32:24 rin Exp $ new stuff: @@ -39,10 +39,10 @@ earmv5 y b y y y y y n earmv5eb y b y y y ? ? ? earmv5hf y y y y y ? ? ? earmv5hfeb y b y y y ? ? ? -earmv6 y b y y y y[2] ? ? +earmv6 y b y y y y ? ? earmv6eb y b y y y y ? ? earmv6hf y y y y y y[2] ? ? -earmv6hfeb y b y y y y ? ? +earmv6hfeb y b y y y y[2] ? ? earmv7 y b y y y ? ? ? earmv7eb y b y y y ? ? ? earmv7hf y y y y y y y n @@ -72,7 +72,7 @@ coldfire ? N/A ? ? ? N/A N/A architecture tools kernels libgcc native-gcc make release runs atf [1] - ramdisk.fs is too large, needs fixing. -[2] - armv6 little endian has new problems: +[2] - armv6hf (both little and big endian) has new problems: rpi# cat bar.s .cfi_startproc .cfi_endproc
CVS commit: src/compat
Module Name:src Committed By: christos Date: Sun Apr 25 15:18:23 UTC 2021 Modified Files: src/compat: archdirs.mk src/compat/mips64/64: bsd.64.mk src/compat/mips64/o32: bsd.o32.mk Added Files: src/compat/mips64/n32: Makefile bsd.n32.mk Log Message: mips64 -> o32 64 mipsn64 -> o32 n32 To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/compat/archdirs.mk cvs rdiff -u -r1.12 -r1.13 src/compat/mips64/64/bsd.64.mk cvs rdiff -u -r0 -r1.1 src/compat/mips64/n32/Makefile \ src/compat/mips64/n32/bsd.n32.mk cvs rdiff -u -r1.14 -r1.15 src/compat/mips64/o32/bsd.o32.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/compat
Module Name:src Committed By: christos Date: Sun Apr 25 15:18:23 UTC 2021 Modified Files: src/compat: archdirs.mk src/compat/mips64/64: bsd.64.mk src/compat/mips64/o32: bsd.o32.mk Added Files: src/compat/mips64/n32: Makefile bsd.n32.mk Log Message: mips64 -> o32 64 mipsn64 -> o32 n32 To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/compat/archdirs.mk cvs rdiff -u -r1.12 -r1.13 src/compat/mips64/64/bsd.64.mk cvs rdiff -u -r0 -r1.1 src/compat/mips64/n32/Makefile \ src/compat/mips64/n32/bsd.n32.mk cvs rdiff -u -r1.14 -r1.15 src/compat/mips64/o32/bsd.o32.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/compat/archdirs.mk diff -u src/compat/archdirs.mk:1.12 src/compat/archdirs.mk:1.13 --- src/compat/archdirs.mk:1.12 Thu Jun 13 17:17:54 2019 +++ src/compat/archdirs.mk Sun Apr 25 11:18:23 2021 @@ -1,4 +1,4 @@ -# $NetBSD: archdirs.mk,v 1.12 2019/06/13 21:17:54 christos Exp $ +# $NetBSD: archdirs.mk,v 1.13 2021/04/25 15:18:23 christos Exp $ # list of subdirs used per-platform @@ -14,11 +14,16 @@ ARCHDIR_SUBDIR+= amd64/i386 ARCHDIR_SUBDIR+= arm/oabi .endif -.if (${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el") +.if !empty(MACHINE_ARCH:Mmips64*) ARCHDIR_SUBDIR+= mips64/64 ARCHDIR_SUBDIR+= mips64/o32 .endif +.if !empty(MACHINE_ARCH:Mmipsn64*) +ARCHDIR_SUBDIR+= mips64/n32 +ARCHDIR_SUBDIR+= mips64/o32 +.endif + .if ${MACHINE_ARCH} == "powerpc64" ARCHDIR_SUBDIR+= powerpc64/powerpc .endif Index: src/compat/mips64/64/bsd.64.mk diff -u src/compat/mips64/64/bsd.64.mk:1.12 src/compat/mips64/64/bsd.64.mk:1.13 --- src/compat/mips64/64/bsd.64.mk:1.12 Tue Feb 6 05:00:00 2018 +++ src/compat/mips64/64/bsd.64.mk Sun Apr 25 11:18:23 2021 @@ -1,6 +1,6 @@ -# $NetBSD: bsd.64.mk,v 1.12 2018/02/06 10:00:00 mrg Exp $ +# $NetBSD: bsd.64.mk,v 1.13 2021/04/25 15:18:23 christos Exp $ -.if ${MACHINE_ARCH} == "mips64eb" +.if !empty(MACHINE_ARCH:M*eb) LD+= -m elf64btsmip .else LD+= -m elf64ltsmip Index: src/compat/mips64/o32/bsd.o32.mk diff -u src/compat/mips64/o32/bsd.o32.mk:1.14 src/compat/mips64/o32/bsd.o32.mk:1.15 --- src/compat/mips64/o32/bsd.o32.mk:1.14 Fri Oct 7 15:10:37 2016 +++ src/compat/mips64/o32/bsd.o32.mk Sun Apr 25 11:18:23 2021 @@ -1,6 +1,6 @@ -# $NetBSD: bsd.o32.mk,v 1.14 2016/10/07 19:10:37 christos Exp $ +# $NetBSD: bsd.o32.mk,v 1.15 2021/04/25 15:18:23 christos Exp $ -.if ${MACHINE_ARCH} == "mips64eb" +.if !empty(MACHINE_ARCH:M*eb) LD+= -m elf32btsmip .else LD+= -m elf32ltsmip @@ -8,10 +8,10 @@ LD+= -m elf32ltsmip .ifndef MLIBDIR MLIBDIR= o32 -LIBC_MACHINE_ARCH= ${MACHINE_ARCH:S/64//} -LIBGCC_MACHINE_ARCH= ${MACHINE_ARCH:S/64//} -GOMP_MACHINE_ARCH= ${MACHINE_ARCH:S/64//} -XORG_MACHINE_ARCH= ${MACHINE_ARCH:S/64//} +LIBC_MACHINE_ARCH= ${MACHINE_ARCH:S/mipsn/mips/:S/64//} +LIBGCC_MACHINE_ARCH= ${LIBC_MACHINE_ARCH} +GOMP_MACHINE_ARCH= ${LIBC_MACHINE_ARCH} +XORG_MACHINE_ARCH= ${LIBC_MACHINE_ARCH} COPTS+= -mabi=32 -march=mips3 CPUFLAGS+= -mabi=32 -march=mips3 Added files: Index: src/compat/mips64/n32/Makefile diff -u /dev/null src/compat/mips64/n32/Makefile:1.1 --- /dev/null Sun Apr 25 11:18:23 2021 +++ src/compat/mips64/n32/Makefile Sun Apr 25 11:18:23 2021 @@ -0,0 +1,5 @@ +# $NetBSD: Makefile,v 1.1 2021/04/25 15:18:23 christos Exp $ + +BSD_MK_COMPAT_FILE=${.CURDIR}/bsd.n32.mk + +.include "../../compatsubdir.mk" Index: src/compat/mips64/n32/bsd.n32.mk diff -u /dev/null src/compat/mips64/n32/bsd.n32.mk:1.1 --- /dev/null Sun Apr 25 11:18:23 2021 +++ src/compat/mips64/n32/bsd.n32.mk Sun Apr 25 11:18:23 2021 @@ -0,0 +1,23 @@ +# $NetBSD: bsd.n32.mk,v 1.1 2021/04/25 15:18:23 christos Exp $ + +.if !empty(MACHINE_ARCH:M*eb) +LD+= -m elf32btsmipn32 +.else +LD+= -m elf32ltsmipn32 +.endif +.ifndef MLIBDIR +MLIBDIR= n32 + +LIBC_MACHINE_ARCH= ${MACHINE_ARCH:S/mipsn/mips/:S/64//} +LIBGCC_MACHINE_ARCH= ${LIBC_MACHINE_ARCH} +GOMP_MACHINE_ARCH= ${LIBC_MACHINE_ARCH} +XORG_MACHINE_ARCH= ${LIBC_MACHINE_ARCH} + +COPTS+= -mabi=n32 +CPUFLAGS+= -mabi=n32 +LDADD+= -mabi=n32 +LDFLAGS+= -mabi=n32 +MKDEPFLAGS+= -mabi=n32 +.endif + +.include "${.PARSEDIR}/../../Makefile.compat"
CVS commit: src/sys/rump
Module Name:src Committed By: christos Date: Sun Apr 25 15:16:56 UTC 2021 Modified Files: src/sys/rump: Makefile.rump Log Message: use MACHINE_MIPS64 To generate a diff of this commit: cvs rdiff -u -r1.131 -r1.132 src/sys/rump/Makefile.rump Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/rump/Makefile.rump diff -u src/sys/rump/Makefile.rump:1.131 src/sys/rump/Makefile.rump:1.132 --- src/sys/rump/Makefile.rump:1.131 Tue Apr 13 18:23:42 2021 +++ src/sys/rump/Makefile.rump Sun Apr 25 11:16:56 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.rump,v 1.131 2021/04/13 22:23:42 christos Exp $ +# $NetBSD: Makefile.rump,v 1.132 2021/04/25 15:16:56 christos Exp $ # .if !defined(_RUMP_MK) @@ -33,7 +33,7 @@ CFLAGS+=${${ACTIVE_CC} == "clang":? # Define baseline cpu for mips ports, required for # rumpcomp_sync_icache() hypercall. .if !empty(MACHINE_ARCH:Mmips*) -.if !empty(MACHINE_ARCH:Mmips64*) +.if ${MACHINE_MIPS64} CPPFLAGS+= -DMIPS64=1 .else CPPFLAGS+= -DMIPS1=1
CVS commit: src/sys/rump
Module Name:src Committed By: christos Date: Sun Apr 25 15:16:56 UTC 2021 Modified Files: src/sys/rump: Makefile.rump Log Message: use MACHINE_MIPS64 To generate a diff of this commit: cvs rdiff -u -r1.131 -r1.132 src/sys/rump/Makefile.rump Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/rump/librump/rumpkern/arch/mips
Module Name:src Committed By: christos Date: Sun Apr 25 15:12:02 UTC 2021 Modified Files: src/sys/rump/librump/rumpkern/arch/mips: Makefile.inc Log Message: mipsn64* is native 64 To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/rump/librump/rumpkern/arch/mips/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/rump/librump/rumpkern/arch/mips/Makefile.inc diff -u src/sys/rump/librump/rumpkern/arch/mips/Makefile.inc:1.3 src/sys/rump/librump/rumpkern/arch/mips/Makefile.inc:1.4 --- src/sys/rump/librump/rumpkern/arch/mips/Makefile.inc:1.3 Wed Apr 22 16:10:56 2015 +++ src/sys/rump/librump/rumpkern/arch/mips/Makefile.inc Sun Apr 25 11:12:02 2021 @@ -1,6 +1,8 @@ -# $NetBSD: Makefile.inc,v 1.3 2015/04/22 20:10:56 pooka Exp $ +# $NetBSD: Makefile.inc,v 1.4 2021/04/25 15:12:02 christos Exp $ +.if empty(MACHINE_ARCH:Mmipsn64*) CPPFLAGS+= -DARCH_ELFSIZE=32 +.endif .PATH: ${RUMPTOP}/librump/rumpkern/arch/generic SRCS+= rump_generic_abi.c
CVS commit: src/sys/rump/librump/rumpkern/arch/mips
Module Name:src Committed By: christos Date: Sun Apr 25 15:12:02 UTC 2021 Modified Files: src/sys/rump/librump/rumpkern/arch/mips: Makefile.inc Log Message: mipsn64* is native 64 To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/rump/librump/rumpkern/arch/mips/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.