CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Wed Jul 18 02:18:45 UTC 2018 Modified Files: src/share/mk: bsd.own.mk Log Message: Remove special-casing of aarch64 now that gcc works (switch aarch64 to gcc) To generate a diff of this commit: cvs rdiff -u -r1.1070 -r1.1071 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.1070 src/share/mk/bsd.own.mk:1.1071 --- src/share/mk/bsd.own.mk:1.1070 Tue Jul 17 14:04:57 2018 +++ src/share/mk/bsd.own.mk Tue Jul 17 22:18:45 2018 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1070 2018/07/17 18:04:57 christos Exp $ +# $NetBSD: bsd.own.mk,v 1.1071 2018/07/18 02:18:45 christos Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -50,12 +50,6 @@ NEED_OWN_INSTALL_TARGET?= yes TOOLCHAIN_MISSING?= no -.if ${MACHINE_CPU} == "aarch64" && !defined(EXTERNAL_TOOLCHAIN) && ${MKLLVM:Uyes} != "no" -MKLLVM?= yes -HAVE_LLVM?= yes -MKGCC?= no -.endif - # # GCC Using platforms. #
CVS commit: src/distrib/sets/lists
Module Name:src Committed By: christos Date: Wed Jul 18 01:25:00 UTC 2018 Modified Files: src/distrib/sets/lists/base: ad.aarch64 src/distrib/sets/lists/debug: ad.aarch64 Log Message: fix sets (again), I got it backwards before. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/distrib/sets/lists/base/ad.aarch64 cvs rdiff -u -r1.28 -r1.29 src/distrib/sets/lists/debug/ad.aarch64 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.aarch64 diff -u src/distrib/sets/lists/base/ad.aarch64:1.28 src/distrib/sets/lists/base/ad.aarch64:1.29 --- src/distrib/sets/lists/base/ad.aarch64:1.28 Tue Jul 17 14:27:31 2018 +++ src/distrib/sets/lists/base/ad.aarch64 Tue Jul 17 21:25:00 2018 @@ -1,38 +1,38 @@ -# $NetBSD: ad.aarch64,v 1.28 2018/07/17 18:27:31 christos Exp $ -./lib/eabi base-compat-lib compat -./lib/eabi/npf base-compat-lib compat -./lib/eabihf base-compat-lib compat -./lib/eabihf/npfbase-compat-lib compat -./lib/oabi base-compat-lib compat -./lib/oabi/npf base-compat-lib compat +# $NetBSD: ad.aarch64,v 1.29 2018/07/18 01:25:00 christos Exp $ +./lib/eabi base-compat-lib compat,llvm +./lib/eabi/npf base-compat-lib compat,llvm +./lib/eabihf base-compat-lib compat,llvm +./lib/eabihf/npfbase-compat-lib compat,llvm +./lib/oabi base-compat-lib compat,llvm +./lib/oabi/npf base-compat-lib compat,llvm ./libexec/ld.elf_so-eabi base-compat-shlib compat,pic,llvm ./libexec/ld.elf_so-eabihf base-compat-shlib compat,pic,llvm ./libexec/ld.elf_so-oabi base-sysutil-bin compat,pic,llvm -./usr/lib/eabi base-compat-lib compat -./usr/lib/eabi/i18nbase-compat-lib compat +./usr/lib/eabi base-compat-lib compat,llvm +./usr/lib/eabi/i18nbase-compat-lib compat,llvm ./usr/lib/eabi/libarm.so.0 base-compat-shlib compat,pic,llvm ./usr/lib/eabi/libarm.so.0.0 base-compat-shlib compat,pic,llvm ./usr/lib/eabi/libc_vfp.so.0 base-compat-shlib compat,pic,llvm ./usr/lib/eabi/libc_vfp.so.0.0 base-compat-shlib compat,pic,llvm -./usr/lib/eabi/luabase-compat-lib compat -./usr/lib/eabi/lua/5.3base-compat-lib compat -./usr/lib/eabi/securitybase-compat-lib compat -./usr/lib/eabihfbase-compat-lib compat -./usr/lib/eabihf/i18nbase-compat-lib compat +./usr/lib/eabi/luabase-compat-lib compat,llvm +./usr/lib/eabi/lua/5.3base-compat-lib compat,llvm +./usr/lib/eabi/securitybase-compat-lib compat,llvm +./usr/lib/eabihfbase-compat-lib compat,llvm +./usr/lib/eabihf/i18nbase-compat-lib compat,llvm ./usr/lib/eabihf/libarm.so.0 base-compat-shlib compat,pic,llvm ./usr/lib/eabihf/libarm.so.0.0 base-compat-shlib compat,pic,llvm -./usr/lib/eabihf/luabase-compat-lib compat,gcc -./usr/lib/eabihf/lua/5.3 base-compat-lib compat -./usr/lib/eabihf/security base-compat-lib compat -./usr/lib/oabi base-compat-lib compat -./usr/lib/oabi/i18nbase-compat-lib compat +./usr/lib/eabihf/luabase-compat-lib compat,llvm +./usr/lib/eabihf/lua/5.3 base-compat-lib compat,llvm +./usr/lib/eabihf/security base-compat-lib compat,llvm +./usr/lib/oabi base-compat-lib compat,llvm +./usr/lib/oabi/i18nbase-compat-lib compat,llvm ./usr/lib/oabi/libarm.so.0 base-compat-shlib compat,pic,llvm ./usr/lib/oabi/libarm.so.0.0 base-compat-shlib compat,pic,llvm ./usr/lib/oabi/libc_vfp.so.0 base-compat-shlib compat,pic,llvm ./usr/lib/oabi/libc_vfp.so.0.0 base-compat-shlib compat,pic,llvm -./usr/lib/oabi/luabase-compat-lib compat -./usr/lib/oabi/lua/5.3base-compat-lib compat -./usr/lib/oabi/securitybase-compat-lib compat +./usr/lib/oabi/luabase-compat-lib compat,llvm +./usr/lib/oabi/lua/5.3base-compat-lib compat,llvm +./usr/lib/oabi/securitybase-compat-lib compat,llvm ./usr/libexec/ld.elf_so-eabi base-compat-shlib compat,pic,llvm ./usr/libexec/ld.elf_so-eabihf base-compat-shlib compat,pic,llvm ./usr/libexec/ld.elf_so-oabi base-sysutil-bin compat,pic,llvm Index: src/distrib/sets/lists/debug/ad.aarch64 diff -u src/distrib/sets/lists/debug/ad.aarch64:1.28 src/distrib/sets/lists/debug/ad.aarch64:1.29 --- src/distrib/sets/lists/debug/ad.aarch64:1.28 Mon Jul 16 21:47:20 2018 +++ src/distrib/sets/lists/debug/ad.aarch64 Tue Jul 17 21:25:00 2018 @@ -1,27 +1,27 @@ -# $NetBSD: ad.aarch64,v 1.28 2018/07/17 01:47:20 christos Exp $ +# $NetBSD: ad.aarch64,v 1.29 2018/07/18 01:25:00 christos Exp $ ./usr/lib/eabi/libarm_g.a comp-sys-debug debuglib,compat,llvm ./usr/lib/eabi/libc_vfp_g.a comp-sys-debug debuglib,compat,llvm ./usr/lib/eabihf/libarm_g.a comp-sys-debug debuglib,compat,llvm ./usr/lib/oabi/libarm_g.a comp-sys-debug debuglib,compat,llvm ./usr/lib/oabi/libc_vfp_g.a comp-sys-debug debuglib,compat,llvm -./usr/libdata/debug/lib/eabi comp-sys-debug,compat,gcc -./usr/libdata/debug/lib/eabi/npf
CVS commit: src
Module Name:src Committed By: joerg Date: Tue Jul 17 19:13:53 UTC 2018 Modified Files: src: UPDATING Log Message: Document aarch64 ABI break. To generate a diff of this commit: cvs rdiff -u -r1.296 -r1.297 src/UPDATING Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/UPDATING diff -u src/UPDATING:1.296 src/UPDATING:1.297 --- src/UPDATING:1.296 Mon Jul 16 11:45:01 2018 +++ src/UPDATING Tue Jul 17 19:13:53 2018 @@ -1,4 +1,4 @@ -$NetBSD: UPDATING,v 1.296 2018/07/16 11:45:01 martin Exp $ +$NetBSD: UPDATING,v 1.297 2018/07/17 19:13:53 joerg Exp $ This file (UPDATING) is intended to be a brief reference to recent changes that might cause problems in the build process, and a guide for @@ -19,6 +19,10 @@ See also: BUILDING, build.sh, Makefile. Recent changes: ^^^ +20180717: + On aarch64 int64_t and related types have changed from long long + to long. This requires recompiling all C++ binaries. + 20180713: On amd64 and i386 static binaries are now build position independend. This requires recompilation of all object
CVS commit: [LLVM] src/external/bsd/llvm/dist/llvm
Module Name:src Committed By: joerg Date: Tue Jul 17 19:10:55 UTC 2018 Removed Files: src/external/bsd/llvm/dist/llvm/bindings/go/llvm [LLVM]: DIBuilderBindings.cpp DIBuilderBindings.h src/external/bsd/llvm/dist/llvm/include/llvm/Analysis [LLVM]: ObjectUtils.h OptimizationDiagnosticInfo.h src/external/bsd/llvm/dist/llvm/include/llvm/BinaryFormat/ELFRelocs [LLVM]: WebAssembly.def src/external/bsd/llvm/dist/llvm/include/llvm/BinaryFormat/WasmRelocs [LLVM]: WebAssembly.def src/external/bsd/llvm/dist/llvm/include/llvm/CodeGen [LLVM]: CommandFlags.h ExecutionDepsFix.h LiveIntervalAnalysis.h LiveStackAnalysis.h MachineValueType.h src/external/bsd/llvm/dist/llvm/include/llvm/CodeGen/GlobalISel [LLVM]: GISelAccessor.h src/external/bsd/llvm/dist/llvm/include/llvm/DebugInfo/CodeView [LLVM]: CVDebugRecord.h TypeName.h TypeRecordBuilder.h TypeSerializer.h TypeTableBuilder.h src/external/bsd/llvm/dist/llvm/include/llvm/DebugInfo/MSF [LLVM]: MSFStreamLayout.h src/external/bsd/llvm/dist/llvm/include/llvm/DebugInfo/PDB/Native [LLVM]: PublicsStreamBuilder.h src/external/bsd/llvm/dist/llvm/include/llvm/ExecutionEngine [LLVM]: ObjectMemoryBuffer.h src/external/bsd/llvm/dist/llvm/include/llvm/MC [LLVM]: MCTargetOptionsCommandFlags.h src/external/bsd/llvm/dist/llvm/include/llvm/Support [LLVM]: AMDGPUCodeObjectMetadata.h CodeGenCWrappers.h DataTypes.h.cmake GCOV.h src/external/bsd/llvm/dist/llvm/include/llvm/Target [LLVM]: CostTable.h TargetCallingConv.h TargetFrameLowering.h TargetInstrInfo.h TargetLowering.h TargetOpcodes.def TargetOpcodes.h TargetRegisterInfo.h TargetSubtargetInfo.h src/external/bsd/llvm/dist/llvm/include/llvm/Transforms [LLVM]: GCOVProfiler.h InstrProfiling.h PGOInstrumentation.h SampleProfile.h src/external/bsd/llvm/dist/llvm/include/llvm/Transforms/Utils [LLVM]: CmpInstAnalysis.h SimplifyInstructions.h src/external/bsd/llvm/dist/llvm/lib/Analysis [LLVM]: OptimizationDiagnosticInfo.cpp SparsePropagation.cpp src/external/bsd/llvm/dist/llvm/lib/CodeGen [LLVM]: BranchCoalescing.cpp CountingFunctionInserter.cpp ExecutionDepsFix.cpp LiveIntervalAnalysis.cpp LiveStackAnalysis.cpp src/external/bsd/llvm/dist/llvm/lib/CodeGen/AsmPrinter [LLVM]: DwarfAccelTable.cpp DwarfAccelTable.h src/external/bsd/llvm/dist/llvm/lib/DebugInfo/CodeView [LLVM]: TypeName.cpp TypeSerializer.cpp src/external/bsd/llvm/dist/llvm/lib/DebugInfo/DWARF [LLVM]: SyntaxHighlighting.cpp SyntaxHighlighting.h src/external/bsd/llvm/dist/llvm/lib/DebugInfo/PDB/Native [LLVM]: GSI.cpp GSI.h PublicsStreamBuilder.cpp src/external/bsd/llvm/dist/llvm/lib/ExecutionEngine/MCJIT [LLVM]: ObjectBuffer.h src/external/bsd/llvm/dist/llvm/lib/Fuzzer [LLVM]: CMakeLists.txt FuzzerCorpus.h FuzzerCrossOver.cpp FuzzerDefs.h FuzzerDictionary.h FuzzerDriver.cpp FuzzerExtFunctions.def FuzzerExtFunctions.h FuzzerExtFunctionsDlsym.cpp FuzzerExtFunctionsDlsymWin.cpp FuzzerExtFunctionsWeak.cpp FuzzerExtFunctionsWeakAlias.cpp FuzzerExtraCounters.cpp FuzzerFlags.def FuzzerIO.cpp FuzzerIO.h FuzzerIOPosix.cpp FuzzerIOWindows.cpp FuzzerInterface.h FuzzerInternal.h FuzzerLoop.cpp FuzzerMain.cpp FuzzerMerge.cpp FuzzerMerge.h FuzzerMutate.cpp FuzzerMutate.h FuzzerOptions.h FuzzerRandom.h FuzzerSHA1.cpp FuzzerSHA1.h FuzzerShmem.h FuzzerShmemPosix.cpp FuzzerShmemWindows.cpp FuzzerTracePC.cpp FuzzerTracePC.h FuzzerUtil.cpp FuzzerUtil.h FuzzerUtilDarwin.cpp FuzzerUtilLinux.cpp FuzzerUtilPosix.cpp FuzzerUtilWindows.cpp FuzzerValueBitMap.h build.sh cxx.dict src/external/bsd/llvm/dist/llvm/lib/Fuzzer/afl [LLVM]: afl_driver.cpp src/external/bsd/llvm/dist/llvm/lib/Fuzzer/standalone [LLVM]: StandaloneFuzzTargetMain.c src/external/bsd/llvm/dist/llvm/lib/Fuzzer/test [LLVM]: AFLDriverTest.cpp AbsNegAndConstant64Test.cpp AbsNegAndConstantTest.cpp AccumulateAllocationsTest.cpp BadStrcmpTest.cpp BogusInitializeTest.cpp BufferOverflowOnInput.cpp CMakeLists.txt CallerCalleeTest.cpp CleanseTest.cpp CounterTest.cpp CustomCrossOverAndMutateTest.cpp CustomCrossOverTest.cpp CustomMutatorTest.cpp CxxStringEqTest.cpp DSO1.cpp DSO2.cpp DSOTestExtra.cpp DSOTestMain.cpp DivTest.cpp EmptyTest.cpp EquivalenceATest.cpp EquivalenceBTest.cpp FlagsTest.cpp
CVS commit: src/sys/arch/evbarm/fdt
Module Name:src Committed By: christos Date: Tue Jul 17 19:12:55 UTC 2018 Modified Files: src/sys/arch/evbarm/fdt: fdt_machdep.c Log Message: restore type of uboot_args To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/sys/arch/evbarm/fdt/fdt_machdep.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/evbarm/fdt/fdt_machdep.c diff -u src/sys/arch/evbarm/fdt/fdt_machdep.c:1.26 src/sys/arch/evbarm/fdt/fdt_machdep.c:1.27 --- src/sys/arch/evbarm/fdt/fdt_machdep.c:1.26 Tue Jul 17 14:41:01 2018 +++ src/sys/arch/evbarm/fdt/fdt_machdep.c Tue Jul 17 15:12:55 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: fdt_machdep.c,v 1.26 2018/07/17 18:41:01 christos Exp $ */ +/* $NetBSD: fdt_machdep.c,v 1.27 2018/07/17 19:12:55 christos Exp $ */ /*- * Copyright (c) 2015-2017 Jared McNeill @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: fdt_machdep.c,v 1.26 2018/07/17 18:41:01 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: fdt_machdep.c,v 1.27 2018/07/17 19:12:55 christos Exp $"); #include "opt_machdep.h" #include "opt_bootconfig.h" @@ -97,7 +97,7 @@ char bootargs[FDT_MAX_BOOT_STRING] = ""; char *boot_args = NULL; /* filled in before cleaning bss. keep in .data */ -u_int uboot_args[4] __attribute__((__section__(".data"))); +u_long uboot_args[4] __attribute__((__section__(".data"))); const uint8_t *fdt_addr_r = (const uint8_t *)0xdeadc0de;
CVS commit: src/doc
Module Name:src Committed By: joerg Date: Tue Jul 17 19:11:47 UTC 2018 Modified Files: src/doc: 3RDPARTY Log Message: Update LLVM entry. To generate a diff of this commit: cvs rdiff -u -r1.1531 -r1.1532 src/doc/3RDPARTY Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/3RDPARTY diff -u src/doc/3RDPARTY:1.1531 src/doc/3RDPARTY:1.1532 --- src/doc/3RDPARTY:1.1531 Wed Jun 27 19:49:47 2018 +++ src/doc/3RDPARTY Tue Jul 17 19:11:47 2018 @@ -1,4 +1,4 @@ -# $NetBSD: 3RDPARTY,v 1.1531 2018/06/27 19:49:47 jmcneill Exp $ +# $NetBSD: 3RDPARTY,v 1.1532 2018/07/17 19:11:47 joerg Exp $ # # This file contains a list of the software that has been integrated into # NetBSD where we are not the primary maintainer. @@ -750,8 +750,8 @@ Notes: .so'ing only. Copy the rest to man. Package: llvm -Version: 5.0.0RC1+ (r309604) -Current Vers.: 6.0.0svn +Version: 7.0.0svn (r337282) +Current Vers.: 7.0.0svn Maintainer: llvm-...@lists.llvm.org Home Page: https://llvm.org Responsible: joerg
CVS commit: src/sys/lib/libunwind
Module Name:src Committed By: joerg Date: Tue Jul 17 19:01:16 UTC 2018 Modified Files: src/sys/lib/libunwind: UnwindCursor.hpp libunwind.cxx Log Message: The semantics of DW_CFA_GNU_args_size have changed subtile over the years. Adopt the new convention that it is call-site specific and that it should be applied before moving the IP by personality routines, but not during normal unwinding. Further discussion can be found in LLVM's phabricator review D38680. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/lib/libunwind/UnwindCursor.hpp cvs rdiff -u -r1.9 -r1.10 src/sys/lib/libunwind/libunwind.cxx Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/lib/libunwind/UnwindCursor.hpp diff -u src/sys/lib/libunwind/UnwindCursor.hpp:1.3 src/sys/lib/libunwind/UnwindCursor.hpp:1.4 --- src/sys/lib/libunwind/UnwindCursor.hpp:1.3 Mon Apr 28 13:39:23 2014 +++ src/sys/lib/libunwind/UnwindCursor.hpp Tue Jul 17 19:01:16 2018 @@ -61,9 +61,6 @@ public: this->setInfoBasedOnIPRegister(true); if (fUnwindInfoMissing) return UNW_STEP_END; - - if (fInfo.extra_args) -setSP(getSP() + fInfo.extra_args); return UNW_STEP_SUCCESS; } __builtin_unreachable(); Index: src/sys/lib/libunwind/libunwind.cxx diff -u src/sys/lib/libunwind/libunwind.cxx:1.9 src/sys/lib/libunwind/libunwind.cxx:1.10 --- src/sys/lib/libunwind/libunwind.cxx:1.9 Tue Feb 17 21:02:33 2015 +++ src/sys/lib/libunwind/libunwind.cxx Tue Jul 17 19:01:16 2018 @@ -277,6 +277,8 @@ void _Unwind_SetIP(struct _Unwind_Contex unw_proc_info_t info; cursor->getInfo(); cursor->setInfoBasedOnIPRegister(false); + if (info.extra_args) +cursor->setSP(cursor->getSP() + info.extra_args); } uintptr_t _Unwind_GetRegionStart(struct _Unwind_Context *context) {
CVS commit: [LLVM] src/external/bsd/llvm/dist/clang
Module Name:src Committed By: joerg Date: Tue Jul 17 19:10:01 UTC 2018 Removed Files: src/external/bsd/llvm/dist/clang/include/clang/Analysis [LLVM]: AnalysisContext.h src/external/bsd/llvm/dist/clang/include/clang/Basic [LLVM]: VersionTuple.h src/external/bsd/llvm/dist/clang/include/clang/Sema [LLVM]: AttributeList.h PrettyDeclStackTrace.h src/external/bsd/llvm/dist/clang/include/clang/StaticAnalyzer/Core/BugReporter [LLVM]: BugReporterVisitor.h src/external/bsd/llvm/dist/clang/include/clang/Tooling/Core [LLVM]: QualTypeNames.h src/external/bsd/llvm/dist/clang/lib/Analysis [LLVM]: BodyFarm.h src/external/bsd/llvm/dist/clang/lib/Basic [LLVM]: VersionTuple.cpp src/external/bsd/llvm/dist/clang/lib/Driver/ToolChains [LLVM]: Bitrig.cpp Bitrig.h src/external/bsd/llvm/dist/clang/lib/Sema [LLVM]: AttributeList.cpp src/external/bsd/llvm/dist/clang/lib/StaticAnalyzer/Core [LLVM]: RangedConstraintManager.h src/external/bsd/llvm/dist/clang/lib/Tooling/Core [LLVM]: QualTypeNames.cpp src/external/bsd/llvm/dist/clang/test [LLVM]: lit.cfg lit.site.cfg.in src/external/bsd/llvm/dist/clang/test/Analysis/diagnostics [LLVM]: diag-cross-file-boundaries.c diag-cross-file-boundaries.h src/external/bsd/llvm/dist/clang/test/CodeGen [LLVM]: 2005-07-20-SqrtNoErrno.c address-safety-attr-kasan.cpp blocks-opencl.cl vld_dup.c src/external/bsd/llvm/dist/clang/test/CodeGenObjC [LLVM]: debug-info-block-captured-self.m src/external/bsd/llvm/dist/clang/test/CodeGenOpenCL [LLVM]: amdgpu-env-amdgiz.cl src/external/bsd/llvm/dist/clang/test/Driver [LLVM]: bitrig.c mingw-useld.c r600-mcpu.cl src/external/bsd/llvm/dist/clang/test/Driver/Inputs/basic_myriad_tree/sparc-myriad-elf/include/c++/4.8.2 [LLVM]: .keep src/external/bsd/llvm/dist/clang/test/Driver/Inputs/mingw_ubuntu_tree/usr/include/c++/4.8/86_64-w64-mingw32 [LLVM]: .keep src/external/bsd/llvm/dist/clang/test/Driver/Inputs/resource_dir [LLVM]: asan_blacklist.txt vtables_blacklist.txt src/external/bsd/llvm/dist/clang/test/Driver/Inputs/sparc-sun-solaris2.11/usr/lib [LLVM]: ld.so.1 src/external/bsd/llvm/dist/clang/test/Frontend [LLVM]: backend-option.c src/external/bsd/llvm/dist/clang/test/Misc [LLVM]: thinlto.c src/external/bsd/llvm/dist/clang/test/Modules/Inputs/implicit-private-with-different-name/A.framework/Headers [LLVM]: aprivate.h src/external/bsd/llvm/dist/clang/test/OpenMP [LLVM]: target_teams_distribute_parallel_for_linear_messages.cpp teams_distribute_parallel_for_linear_messages.cpp src/external/bsd/llvm/dist/clang/test/Preprocessor/Inputs/headermap-rel [LLVM]: foo.hmap src/external/bsd/llvm/dist/clang/test/Preprocessor/Inputs/headermap-rel2 [LLVM]: project-headers.hmap src/external/bsd/llvm/dist/clang/test/Preprocessor/Inputs/nonportable-hmaps [LLVM]: foo.hmap src/external/bsd/llvm/dist/clang/test/Rewriter [LLVM]: objc-modern-metadata-visibility2.mm src/external/bsd/llvm/dist/clang/test/SemaCXX [LLVM]: warn-self-assign.cpp src/external/bsd/llvm/dist/clang/test/SemaOpenCL [LLVM]: extern.cl src/external/bsd/llvm/dist/clang/test/Unit [LLVM]: lit.cfg lit.site.cfg.in src/external/bsd/llvm/dist/clang/test/clang-rename [LLVM]: Field.cpp src/external/bsd/llvm/dist/clang/unittests/AST [LLVM]: PostOrderASTVisitor.cpp src/external/bsd/llvm/dist/clang/unittests/Tooling [LLVM]: RecursiveASTVisitorTest.cpp RecursiveASTVisitorTestCallVisitor.cpp RecursiveASTVisitorTestExprVisitor.cpp Log Message: Mark files not tagged with clang-337282 as dead To generate a diff of this commit: cvs rdiff -u -r1.1.1.7 -r0 \ src/external/bsd/llvm/dist/clang/include/clang/Analysis/AnalysisContext.h cvs rdiff -u -r1.1.1.5 -r0 \ src/external/bsd/llvm/dist/clang/include/clang/Basic/VersionTuple.h cvs rdiff -u -r1.1.1.11 -r0 \ src/external/bsd/llvm/dist/clang/include/clang/Sema/AttributeList.h cvs rdiff -u -r1.1.1.3 -r0 \ src/external/bsd/llvm/dist/clang/include/clang/Sema/PrettyDeclStackTrace.h cvs rdiff -u -r1.1.1.5 -r0 \ src/external/bsd/llvm/dist/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h cvs rdiff -u -r1.1.1.1 -r0 \ src/external/bsd/llvm/dist/clang/include/clang/Tooling/Core/QualTypeNames.h cvs rdiff -u -r1.1.1.5 -r0 \ src/external/bsd/llvm/dist/clang/lib/Analysis/BodyFarm.h cvs rdiff -u -r1.1.1.3 -r0 \ src/external/bsd/llvm/dist/clang/lib/Basic/VersionTuple.cpp cvs rdiff -u -r1.1.1.1 -r0
CVS commit: src
Module Name:src Committed By: joerg Date: Tue Jul 17 18:55:31 UTC 2018 Modified Files: src/distrib/sets/lists/base: mi src/distrib/sets/lists/comp: ad.aarch64 ad.arm ad.mips ad.powerpc md.amd64 md.i386 mi src/etc/mtree: NetBSD.dist.base src/external/bsd/llvm: Makefile.inc src/external/bsd/llvm/bin/bugpoint: Makefile src/external/bsd/llvm/bin/clang: Makefile src/external/bsd/llvm/bin/clang-format: Makefile src/external/bsd/llvm/bin/clang-tblgen: Makefile src/external/bsd/llvm/bin/llc: Makefile src/external/bsd/llvm/bin/lldb: Makefile src/external/bsd/llvm/bin/lli: Makefile src/external/bsd/llvm/bin/llvm-ar: Makefile src/external/bsd/llvm/bin/llvm-as: Makefile src/external/bsd/llvm/bin/llvm-dwarfdump: Makefile src/external/bsd/llvm/bin/llvm-dwp: Makefile src/external/bsd/llvm/bin/llvm-mc: Makefile src/external/bsd/llvm/bin/llvm-nm: Makefile src/external/bsd/llvm/bin/llvm-objdump: Makefile src/external/bsd/llvm/bin/llvm-readobj: Makefile src/external/bsd/llvm/bin/llvm-xray: Makefile src/external/bsd/llvm/bin/opt: Makefile src/external/bsd/llvm/bin/sancov: Makefile src/external/bsd/llvm/bin/tblgen: Makefile src/external/bsd/llvm/config/clang/Config: config.h src/external/bsd/llvm/config/llvm/Config: config.h.in src/external/bsd/llvm/include: Makefile src/external/bsd/llvm/lib: Makefile src/external/bsd/llvm/lib/libLLVMAArch64CodeGen: Makefile src/external/bsd/llvm/lib/libLLVMARMCodeGen: Makefile src/external/bsd/llvm/lib/libLLVMAnalysis: Makefile src/external/bsd/llvm/lib/libLLVMAsmPrinter: Makefile src/external/bsd/llvm/lib/libLLVMBinaryFormat: Makefile src/external/bsd/llvm/lib/libLLVMCodeGen: Makefile src/external/bsd/llvm/lib/libLLVMDebugInfoCodeView: Makefile src/external/bsd/llvm/lib/libLLVMDebugInfoDWARF: Makefile src/external/bsd/llvm/lib/libLLVMDebugInfoPDBNative: Makefile src/external/bsd/llvm/lib/libLLVMGlobalISel: Makefile src/external/bsd/llvm/lib/libLLVMIR: Makefile src/external/bsd/llvm/lib/libLLVMInstCombine: Makefile src/external/bsd/llvm/lib/libLLVMInstrumentation: Makefile src/external/bsd/llvm/lib/libLLVMMC: Makefile src/external/bsd/llvm/lib/libLLVMMipsCodeGen: Makefile src/external/bsd/llvm/lib/libLLVMObjectYAML: Makefile src/external/bsd/llvm/lib/libLLVMOrc: Makefile src/external/bsd/llvm/lib/libLLVMPasses: Makefile src/external/bsd/llvm/lib/libLLVMPowerPCCodeGen: Makefile src/external/bsd/llvm/lib/libLLVMProfileData: Makefile src/external/bsd/llvm/lib/libLLVMScalarOpts: Makefile src/external/bsd/llvm/lib/libLLVMSupport: Makefile src/external/bsd/llvm/lib/libLLVMTableGen: Makefile src/external/bsd/llvm/lib/libLLVMTransformsUtils: Makefile src/external/bsd/llvm/lib/libLLVMVectorize: Makefile src/external/bsd/llvm/lib/libLLVMX86AsmPrinter: Makefile src/external/bsd/llvm/lib/libLLVMX86CodeGen: Makefile src/external/bsd/llvm/lib/libLLVMX86MCTargetDesc: Makefile src/external/bsd/llvm/lib/libLLVMipo: Makefile src/external/bsd/llvm/lib/libclangAST: Makefile src/external/bsd/llvm/lib/libclangAnalysis: Makefile src/external/bsd/llvm/lib/libclangBasic: Makefile src/external/bsd/llvm/lib/libclangCodeGen: Makefile src/external/bsd/llvm/lib/libclangDriver: Makefile src/external/bsd/llvm/lib/libclangFrontend: Makefile src/external/bsd/llvm/lib/libclangSema: Makefile src/external/bsd/llvm/lib/libclangStaticAnalyzerCheckers: Makefile src/external/bsd/llvm/lib/libclangStaticAnalyzerCore: Makefile src/external/bsd/llvm/lib/libclangTooling: Makefile src/external/bsd/llvm/lib/libclangToolingCore: Makefile src/external/bsd/llvm/lib/libclangToolingRefactoring: Makefile Added Files: src/external/bsd/llvm/bin/llvm-objcopy: Makefile src/external/bsd/llvm/lib/libLLVMARMUtils: Makefile src/external/bsd/llvm/lib/libLLVMDebugInfoPDBDIA: Makefile src/external/bsd/llvm/lib/libLLVMTransformsAggressiveInstCombine: Makefile src/external/bsd/llvm/lib/libclangCrossTU: Makefile src/external/bsd/llvm/lib/libclangToolingASTDiff: Makefile src/external/bsd/llvm/lib/libclangToolingInclusions: Makefile src/tools/llvm-lib/libLLVMARMUtils: Makefile src/tools/llvm-lib/libLLVMTransformsAggressiveInstCombine: Makefile src/tools/llvm-lib/libclangCrossTU: Makefile Log Message: Update LLVM/Clang build system to r337282. To generate a diff of this commit: cvs rdiff -u -r1.1179 -r1.1180 src/distrib/sets/lists/base/mi cvs rdiff -u -r1.22 -r1.23 src/distrib/sets/lists/comp/ad.aarch64
CVS commit: src/external/bsd/elftosb
Module Name:src Committed By: joerg Date: Tue Jul 17 18:56:58 UTC 2018 Modified Files: src/external/bsd/elftosb: Makefile.inc Log Message: Explicitly build as C++03 source. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/bsd/elftosb/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/external/bsd/elftosb/Makefile.inc diff -u src/external/bsd/elftosb/Makefile.inc:1.2 src/external/bsd/elftosb/Makefile.inc:1.3 --- src/external/bsd/elftosb/Makefile.inc:1.2 Fri Nov 29 23:02:49 2013 +++ src/external/bsd/elftosb/Makefile.inc Tue Jul 17 18:56:58 2018 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.2 2013/11/29 23:02:49 joerg Exp $ +# $NetBSD: Makefile.inc,v 1.3 2018/07/17 18:56:58 joerg Exp $ .include @@ -16,6 +16,7 @@ LDADD+= -L${LIBELFTOSBOBJDIR} -lelftosb CPPFLAGS+= -I${DIST}/common CPPFLAGS+= -I${DIST}/elftosb2 CPPFLAGS+= -DLinux +CXXFLAGS+= -std=gnu++03 CWARNFLAGS+= -Wno-multichar CWARNFLAGS.clang+= -Wno-switch -Wno-error=delete-non-virtual-dtor \
CVS commit: src/external/bsd/libc++/dist/libcxx/include
Module Name:src Committed By: joerg Date: Tue Jul 17 18:57:25 UTC 2018 Modified Files: src/external/bsd/libc++/dist/libcxx/include: __hash_table Log Message: Provide consistent exception specifiers. To generate a diff of this commit: cvs rdiff -u -r1.1.1.5 -r1.2 \ src/external/bsd/libc++/dist/libcxx/include/__hash_table Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/bsd/libc++/dist/libcxx/include/__hash_table diff -u src/external/bsd/libc++/dist/libcxx/include/__hash_table:1.1.1.5 src/external/bsd/libc++/dist/libcxx/include/__hash_table:1.2 --- src/external/bsd/libc++/dist/libcxx/include/__hash_table:1.1.1.5 Thu Aug 20 09:31:48 2015 +++ src/external/bsd/libc++/dist/libcxx/include/__hash_table Tue Jul 17 18:57:25 2018 @@ -1135,6 +1135,7 @@ __hash_table<_Tp, _Hash, _Equal, _Alloc> _NOEXCEPT_( is_nothrow_default_constructible<__bucket_list>::value && is_nothrow_default_constructible<__first_node>::value && +is_nothrow_default_constructible<__node_allocator>::value && is_nothrow_default_constructible::value && is_nothrow_default_constructible::value) : __p2_(0), @@ -1203,6 +1204,7 @@ __hash_table<_Tp, _Hash, _Equal, _Alloc> _NOEXCEPT_( is_nothrow_move_constructible<__bucket_list>::value && is_nothrow_move_constructible<__first_node>::value && +is_nothrow_move_constructible<__node_allocator>::value && is_nothrow_move_constructible::value && is_nothrow_move_constructible::value) : __bucket_list_(_VSTD::move(__u.__bucket_list_)),
CVS commit: src/sys/lib/libunwind
Module Name:src Committed By: joerg Date: Tue Jul 17 18:58:58 UTC 2018 Modified Files: src/sys/lib/libunwind: DwarfInstructions.hpp Log Message: Remove redundant setIP call overwritten a few lines later. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/lib/libunwind/DwarfInstructions.hpp Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/lib/libunwind/DwarfInstructions.hpp diff -u src/sys/lib/libunwind/DwarfInstructions.hpp:1.6 src/sys/lib/libunwind/DwarfInstructions.hpp:1.7 --- src/sys/lib/libunwind/DwarfInstructions.hpp:1.6 Sat Sep 27 12:08:46 2014 +++ src/sys/lib/libunwind/DwarfInstructions.hpp Tue Jul 17 18:58:58 2018 @@ -153,7 +153,6 @@ step_result DwarfInstructions::ste // The CFA is defined as the stack pointer at the call site. // Therefore the SP is restored by setting it to the CFA. newRegisters.setSP(cfa); - newRegisters.setIP(returnAddress + R::RETURN_OFFSET); returnAddress += R::RETURN_OFFSET; returnAddress &= ~R::RETURN_MASK; newRegisters.setIP(returnAddress);
CVS commit: src/crypto/external/bsd/openssl/dist
Module Name:src Committed By: joerg Date: Tue Jul 17 18:56:24 UTC 2018 Modified Files: src/crypto/external/bsd/openssl/dist: e_os.h Log Message: Drop special case for clang/aarch64. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/crypto/external/bsd/openssl/dist/e_os.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/crypto/external/bsd/openssl/dist/e_os.h diff -u src/crypto/external/bsd/openssl/dist/e_os.h:1.9 src/crypto/external/bsd/openssl/dist/e_os.h:1.10 --- src/crypto/external/bsd/openssl/dist/e_os.h:1.9 Mon Jul 16 00:47:54 2018 +++ src/crypto/external/bsd/openssl/dist/e_os.h Tue Jul 17 18:56:24 2018 @@ -32,8 +32,7 @@ extern "C" { /* * BIO_printf format modifier for [u]int64_t. */ -# if !(defined(__aarch64__) && defined(__clang__)) && (defined(__LP64__) || \ - (defined(__SIZEOF_LONG__) && __SIZEOF_LONG__ == 8)) +# if __SIZEOF_LONG__ - 0 == 8 # define BIO_PRI64 "l" /* 'll' does work "universally", but 'l' is * here to shut -Wformat warnings in LP64... */ # else
CVS commit: src/external/bsd/libc++/lib
Module Name:src Committed By: joerg Date: Tue Jul 17 18:58:10 UTC 2018 Modified Files: src/external/bsd/libc++/lib: Makefile Log Message: Ignore atomic alignment warnings on ARM. The compiler doesn't know that the library implementation will be fine. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/external/bsd/libc++/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/external/bsd/libc++/lib/Makefile diff -u src/external/bsd/libc++/lib/Makefile:1.11 src/external/bsd/libc++/lib/Makefile:1.12 --- src/external/bsd/libc++/lib/Makefile:1.11 Wed Jun 6 12:02:43 2018 +++ src/external/bsd/libc++/lib/Makefile Tue Jul 17 18:58:10 2018 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2018/06/06 12:02:43 kamil Exp $ +# $NetBSD: Makefile,v 1.12 2018/07/17 18:58:10 joerg Exp $ LIB= c++ WARNS= 4 @@ -48,4 +48,8 @@ CWARNFLAGS.clang+= -Wno-error=implicit-e LDFLAGS+= -Wl,-z,defs .endif +.if !empty(MACHINE_ARCH:Marm*) || !empty(MACHINE_ARCH:Mearm*) +CWARNFLAGS+= -Wno-atomic-alignment +.endif + .include
CVS commit: src/sys/arch/evbarm
Module Name:src Committed By: christos Date: Tue Jul 17 18:41:01 UTC 2018 Modified Files: src/sys/arch/evbarm/amlogic: amlogic_machdep.c src/sys/arch/evbarm/bcm53xx: bcm53xx_machdep.c src/sys/arch/evbarm/beagle: beagle_machdep.c src/sys/arch/evbarm/fdt: fdt_machdep.c src/sys/arch/evbarm/hawk: hawk_machdep.c src/sys/arch/evbarm/imx7: imx7_machdep.c src/sys/arch/evbarm/nitrogen6: nitrogen6_machdep.c src/sys/arch/evbarm/zynq: zynq_machdep.c Log Message: make sure uboot_args is in the data segment by saying so, as opposed to depending on initializing it to 0. To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/sys/arch/evbarm/amlogic/amlogic_machdep.c cvs rdiff -u -r1.9 -r1.10 src/sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c cvs rdiff -u -r1.70 -r1.71 src/sys/arch/evbarm/beagle/beagle_machdep.c cvs rdiff -u -r1.25 -r1.26 src/sys/arch/evbarm/fdt/fdt_machdep.c cvs rdiff -u -r1.1 -r1.2 src/sys/arch/evbarm/hawk/hawk_machdep.c cvs rdiff -u -r1.6 -r1.7 src/sys/arch/evbarm/imx7/imx7_machdep.c cvs rdiff -u -r1.7 -r1.8 src/sys/arch/evbarm/nitrogen6/nitrogen6_machdep.c cvs rdiff -u -r1.1 -r1.2 src/sys/arch/evbarm/zynq/zynq_machdep.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/evbarm/amlogic/amlogic_machdep.c diff -u src/sys/arch/evbarm/amlogic/amlogic_machdep.c:1.22 src/sys/arch/evbarm/amlogic/amlogic_machdep.c:1.23 --- src/sys/arch/evbarm/amlogic/amlogic_machdep.c:1.22 Tue Jun 5 04:03:28 2018 +++ src/sys/arch/evbarm/amlogic/amlogic_machdep.c Tue Jul 17 14:41:00 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: amlogic_machdep.c,v 1.22 2018/06/05 08:03:28 hkenken Exp $ */ +/* $NetBSD: amlogic_machdep.c,v 1.23 2018/07/17 18:41:00 christos Exp $ */ /* * Machine dependent functions for kernel setup for TI OSK5912 board. @@ -125,7 +125,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: amlogic_machdep.c,v 1.22 2018/06/05 08:03:28 hkenken Exp $"); +__KERNEL_RCSID(0, "$NetBSD: amlogic_machdep.c,v 1.23 2018/07/17 18:41:00 christos Exp $"); #include "opt_machdep.h" #include "opt_ddb.h" @@ -200,7 +200,9 @@ BootConfig bootconfig; /* Boot config s static char bootargs[AMLOGIC_MAX_BOOT_STRING]; char *boot_args = NULL; char *boot_file = NULL; -u_int uboot_args[4] = { 0 }; /* filled in by amlogic_start.S (not in bss) */ + +/* filled in before cleaning bss. keep in .data */ +u_int uboot_args[4] __attribute__((__section__(".data"))); /* Same things, but for the free (unused by the kernel) memory. */ Index: src/sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c diff -u src/sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c:1.9 src/sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c:1.10 --- src/sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c:1.9 Fri Jul 17 16:29:29 2015 +++ src/sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c Tue Jul 17 14:41:01 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: bcm53xx_machdep.c,v 1.9 2015/07/17 20:29:29 matt Exp $ */ +/* $NetBSD: bcm53xx_machdep.c,v 1.10 2018/07/17 18:41:01 christos Exp $ */ /*- * Copyright (c) 2012 The NetBSD Foundation, Inc. @@ -33,7 +33,7 @@ #define IDM_PRIVATE #include -__KERNEL_RCSID(0, "$NetBSD: bcm53xx_machdep.c,v 1.9 2015/07/17 20:29:29 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bcm53xx_machdep.c,v 1.10 2018/07/17 18:41:01 christos Exp $"); #include "opt_evbarm_boardtype.h" #include "opt_broadcom.h" @@ -83,7 +83,8 @@ BootConfig bootconfig; static char bootargs[MAX_BOOT_STRING]; char *boot_args = NULL; -u_int uboot_args[4] = { 0 }; +/* filled in before cleaning bss. keep in .data */ +u_int uboot_args[4] __attribute__((__section__(".data"))); static void bcm53xx_system_reset(void); Index: src/sys/arch/evbarm/beagle/beagle_machdep.c diff -u src/sys/arch/evbarm/beagle/beagle_machdep.c:1.70 src/sys/arch/evbarm/beagle/beagle_machdep.c:1.71 --- src/sys/arch/evbarm/beagle/beagle_machdep.c:1.70 Sun Jul 15 01:16:41 2018 +++ src/sys/arch/evbarm/beagle/beagle_machdep.c Tue Jul 17 14:41:01 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: beagle_machdep.c,v 1.70 2018/07/15 05:16:41 maxv Exp $ */ +/* $NetBSD: beagle_machdep.c,v 1.71 2018/07/17 18:41:01 christos Exp $ */ /* * Machine dependent functions for kernel setup for TI OSK5912 board. @@ -125,7 +125,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: beagle_machdep.c,v 1.70 2018/07/15 05:16:41 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: beagle_machdep.c,v 1.71 2018/07/17 18:41:01 christos Exp $"); #include "opt_machdep.h" #include "opt_ddb.h" @@ -222,7 +222,8 @@ char *boot_file = NULL; static uint8_t beagle_edid[128]; /* EDID storage */ -u_int uboot_args[4] = { 0 }; /* filled in by beagle_start.S (not in bss) */ +/* filled in before cleaning bss. keep in .data */ +u_int uboot_args[4] __attribute__((__section__(".data"))); /* Same things, but for the free (unused by the kernel) memory. */ Index: src/sys/arch/evbarm/fdt/fdt_machdep.c diff -u
CVS commit: src/distrib/sets/lists
Module Name:src Committed By: christos Date: Tue Jul 17 18:27:31 UTC 2018 Modified Files: src/distrib/sets/lists/base: ad.aarch64 src/distrib/sets/lists/comp: ad.aarch64 Log Message: fix sets for clang aarch64 To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/distrib/sets/lists/base/ad.aarch64 cvs rdiff -u -r1.21 -r1.22 src/distrib/sets/lists/comp/ad.aarch64 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.aarch64 diff -u src/distrib/sets/lists/base/ad.aarch64:1.27 src/distrib/sets/lists/base/ad.aarch64:1.28 --- src/distrib/sets/lists/base/ad.aarch64:1.27 Mon Jul 16 21:47:20 2018 +++ src/distrib/sets/lists/base/ad.aarch64 Tue Jul 17 14:27:31 2018 @@ -1,38 +1,38 @@ -# $NetBSD: ad.aarch64,v 1.27 2018/07/17 01:47:20 christos Exp $ -./lib/eabi base-compat-lib compat,gcc -./lib/eabi/npf base-compat-lib compat,gcc -./lib/eabihf base-compat-lib compat,gcc -./lib/eabihf/npfbase-compat-lib compat,gcc -./lib/oabi base-compat-lib compat,gcc -./lib/oabi/npf base-compat-lib compat,gcc +# $NetBSD: ad.aarch64,v 1.28 2018/07/17 18:27:31 christos Exp $ +./lib/eabi base-compat-lib compat +./lib/eabi/npf base-compat-lib compat +./lib/eabihf base-compat-lib compat +./lib/eabihf/npfbase-compat-lib compat +./lib/oabi base-compat-lib compat +./lib/oabi/npf base-compat-lib compat ./libexec/ld.elf_so-eabi base-compat-shlib compat,pic,llvm ./libexec/ld.elf_so-eabihf base-compat-shlib compat,pic,llvm ./libexec/ld.elf_so-oabi base-sysutil-bin compat,pic,llvm -./usr/lib/eabi base-compat-lib compat,gcc -./usr/lib/eabi/i18nbase-compat-lib compat,gcc +./usr/lib/eabi base-compat-lib compat +./usr/lib/eabi/i18nbase-compat-lib compat ./usr/lib/eabi/libarm.so.0 base-compat-shlib compat,pic,llvm ./usr/lib/eabi/libarm.so.0.0 base-compat-shlib compat,pic,llvm ./usr/lib/eabi/libc_vfp.so.0 base-compat-shlib compat,pic,llvm ./usr/lib/eabi/libc_vfp.so.0.0 base-compat-shlib compat,pic,llvm -./usr/lib/eabi/luabase-compat-lib compat,gcc -./usr/lib/eabi/lua/5.3base-compat-lib compat,gcc -./usr/lib/eabi/securitybase-compat-lib compat,gcc -./usr/lib/eabihfbase-compat-lib compat,gcc -./usr/lib/eabihf/i18nbase-compat-lib compat,gcc +./usr/lib/eabi/luabase-compat-lib compat +./usr/lib/eabi/lua/5.3base-compat-lib compat +./usr/lib/eabi/securitybase-compat-lib compat +./usr/lib/eabihfbase-compat-lib compat +./usr/lib/eabihf/i18nbase-compat-lib compat ./usr/lib/eabihf/libarm.so.0 base-compat-shlib compat,pic,llvm ./usr/lib/eabihf/libarm.so.0.0 base-compat-shlib compat,pic,llvm ./usr/lib/eabihf/luabase-compat-lib compat,gcc -./usr/lib/eabihf/lua/5.3 base-compat-lib compat,gcc -./usr/lib/eabihf/security base-compat-lib compat,gcc -./usr/lib/oabi base-compat-lib compat,gcc -./usr/lib/oabi/i18nbase-compat-lib compat,gcc +./usr/lib/eabihf/lua/5.3 base-compat-lib compat +./usr/lib/eabihf/security base-compat-lib compat +./usr/lib/oabi base-compat-lib compat +./usr/lib/oabi/i18nbase-compat-lib compat ./usr/lib/oabi/libarm.so.0 base-compat-shlib compat,pic,llvm ./usr/lib/oabi/libarm.so.0.0 base-compat-shlib compat,pic,llvm ./usr/lib/oabi/libc_vfp.so.0 base-compat-shlib compat,pic,llvm ./usr/lib/oabi/libc_vfp.so.0.0 base-compat-shlib compat,pic,llvm -./usr/lib/oabi/luabase-compat-lib compat,gcc -./usr/lib/oabi/lua/5.3base-compat-lib compat,gcc -./usr/lib/oabi/securitybase-compat-lib compat,gcc +./usr/lib/oabi/luabase-compat-lib compat +./usr/lib/oabi/lua/5.3base-compat-lib compat +./usr/lib/oabi/securitybase-compat-lib compat ./usr/libexec/ld.elf_so-eabi base-compat-shlib compat,pic,llvm ./usr/libexec/ld.elf_so-eabihf base-compat-shlib compat,pic,llvm ./usr/libexec/ld.elf_so-oabi base-sysutil-bin compat,pic,llvm Index: src/distrib/sets/lists/comp/ad.aarch64 diff -u src/distrib/sets/lists/comp/ad.aarch64:1.21 src/distrib/sets/lists/comp/ad.aarch64:1.22 --- src/distrib/sets/lists/comp/ad.aarch64:1.21 Mon Jul 16 21:47:20 2018 +++ src/distrib/sets/lists/comp/ad.aarch64 Tue Jul 17 14:27:31 2018 @@ -1,4 +1,4 @@ -# $NetBSD: ad.aarch64,v 1.21 2018/07/17 01:47:20 christos Exp $ +# $NetBSD: ad.aarch64,v 1.22 2018/07/17 18:27:31 christos Exp $ ./usr/include/aarch64comp-c-include ./usr/include/aarch64/ansi.h comp-c-include ./usr/include/aarch64/aout_machdep.h comp-c-include @@ -123,9 +123,9 @@ ./usr/include/evbarm64comp-obsolete obsolete ./usr/include/evbarm64/disklabel.h comp-obsolete obsolete ./usr/include/evbarm64/intr.h comp-obsolete obsolete -./usr/include/g++/bits/aarch64 comp-c-include gcccmds,gcc=6 +./usr/include/g++/bits/aarch64 comp-c-include ./usr/include/g++/bits/aarch64/c++config.h comp-c-include gcccmds,gcc=6
CVS commit: src/sys/arch/aarch64
Module Name:src Committed By: christos Date: Tue Jul 17 18:08:37 UTC 2018 Modified Files: src/sys/arch/aarch64/aarch64: copyinout.S cpuswitch.S fusu.S locore.S src/sys/arch/aarch64/include: asm.h Log Message: centralize fp,lr definitions To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/aarch64/aarch64/copyinout.S \ src/sys/arch/aarch64/aarch64/fusu.S cvs rdiff -u -r1.3 -r1.4 src/sys/arch/aarch64/aarch64/cpuswitch.S cvs rdiff -u -r1.12 -r1.13 src/sys/arch/aarch64/aarch64/locore.S cvs rdiff -u -r1.2 -r1.3 src/sys/arch/aarch64/include/asm.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/aarch64/aarch64/copyinout.S diff -u src/sys/arch/aarch64/aarch64/copyinout.S:1.4 src/sys/arch/aarch64/aarch64/copyinout.S:1.5 --- src/sys/arch/aarch64/aarch64/copyinout.S:1.4 Tue Jul 17 06:01:59 2018 +++ src/sys/arch/aarch64/aarch64/copyinout.S Tue Jul 17 14:08:36 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: copyinout.S,v 1.4 2018/07/17 10:01:59 ryo Exp $ */ +/* $NetBSD: copyinout.S,v 1.5 2018/07/17 18:08:36 christos Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -32,10 +32,7 @@ #include #include "assym.h" -RCSID("$NetBSD: copyinout.S,v 1.4 2018/07/17 10:01:59 ryo Exp $"); - -#define fp x29 -#define lr x30 +RCSID("$NetBSD: copyinout.S,v 1.5 2018/07/17 18:08:36 christos Exp $"); .macro enter_cpu_onfault stp fp, lr, [sp, #-16]! /* save fp, lr */ Index: src/sys/arch/aarch64/aarch64/fusu.S diff -u src/sys/arch/aarch64/aarch64/fusu.S:1.4 src/sys/arch/aarch64/aarch64/fusu.S:1.5 --- src/sys/arch/aarch64/aarch64/fusu.S:1.4 Tue Jul 17 06:01:59 2018 +++ src/sys/arch/aarch64/aarch64/fusu.S Tue Jul 17 14:08:36 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: fusu.S,v 1.4 2018/07/17 10:01:59 ryo Exp $ */ +/* $NetBSD: fusu.S,v 1.5 2018/07/17 18:08:36 christos Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -32,10 +32,7 @@ #include #include "assym.h" -RCSID("$NetBSD: fusu.S,v 1.4 2018/07/17 10:01:59 ryo Exp $"); - -#define fp x29 -#define lr x30 +RCSID("$NetBSD: fusu.S,v 1.5 2018/07/17 18:08:36 christos Exp $"); .macro enter_cpu_onfault stp fp, lr, [sp, #-16]! /* save fp, lr */ Index: src/sys/arch/aarch64/aarch64/cpuswitch.S diff -u src/sys/arch/aarch64/aarch64/cpuswitch.S:1.3 src/sys/arch/aarch64/aarch64/cpuswitch.S:1.4 --- src/sys/arch/aarch64/aarch64/cpuswitch.S:1.3 Tue Jul 17 06:01:59 2018 +++ src/sys/arch/aarch64/aarch64/cpuswitch.S Tue Jul 17 14:08:36 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: cpuswitch.S,v 1.3 2018/07/17 10:01:59 ryo Exp $ */ +/* $NetBSD: cpuswitch.S,v 1.4 2018/07/17 18:08:36 christos Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -35,9 +35,7 @@ #include "opt_ddb.h" -RCSID("$NetBSD: cpuswitch.S,v 1.3 2018/07/17 10:01:59 ryo Exp $") - -#define lr x30 +RCSID("$NetBSD: cpuswitch.S,v 1.4 2018/07/17 18:08:36 christos Exp $") /* * At IPL_SCHED: Index: src/sys/arch/aarch64/aarch64/locore.S diff -u src/sys/arch/aarch64/aarch64/locore.S:1.12 src/sys/arch/aarch64/aarch64/locore.S:1.13 --- src/sys/arch/aarch64/aarch64/locore.S:1.12 Tue Jul 17 06:01:59 2018 +++ src/sys/arch/aarch64/aarch64/locore.S Tue Jul 17 14:08:36 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: locore.S,v 1.12 2018/07/17 10:01:59 ryo Exp $ */ +/* $NetBSD: locore.S,v 1.13 2018/07/17 18:08:36 christos Exp $ */ /* * Copyright (c) 2017 Ryo Shimizu @@ -35,7 +35,7 @@ #include #include "assym.h" -RCSID("$NetBSD: locore.S,v 1.12 2018/07/17 10:01:59 ryo Exp $") +RCSID("$NetBSD: locore.S,v 1.13 2018/07/17 18:08:36 christos Exp $") /* #define DEBUG_LOCORE */ /* #define DEBUG_MMU */ @@ -60,9 +60,6 @@ RCSID("$NetBSD: locore.S,v 1.12 2018/07/ #define VERBOSE(string) #endif -#define fp x29 -#define lr x30 - /* load far effective address (pc relative) */ .macro ADDR, reg, addr adrp \reg, \addr Index: src/sys/arch/aarch64/include/asm.h diff -u src/sys/arch/aarch64/include/asm.h:1.2 src/sys/arch/aarch64/include/asm.h:1.3 --- src/sys/arch/aarch64/include/asm.h:1.2 Sun Apr 1 00:35:03 2018 +++ src/sys/arch/aarch64/include/asm.h Tue Jul 17 14:08:37 2018 @@ -1,8 +1,11 @@ -/* $NetBSD: asm.h,v 1.2 2018/04/01 04:35:03 ryo Exp $ */ +/* $NetBSD: asm.h,v 1.3 2018/07/17 18:08:37 christos Exp $ */ #ifndef _AARCH64_ASM_H_ #define _AARCH64_ASM_H_ #include +#define fp x29 +#define lr x30 + #endif /* !_AARCH64_ASM_H_ */
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Tue Jul 17 18:04:57 UTC 2018 Modified Files: src/share/mk: bsd.own.mk Log Message: Let's build gdb for aarch64. To generate a diff of this commit: cvs rdiff -u -r1.1069 -r1.1070 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.1069 src/share/mk/bsd.own.mk:1.1070 --- src/share/mk/bsd.own.mk:1.1069 Mon Jul 16 10:14:37 2018 +++ src/share/mk/bsd.own.mk Tue Jul 17 14:04:57 2018 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1069 2018/07/16 14:14:37 christos Exp $ +# $NetBSD: bsd.own.mk,v 1.1070 2018/07/17 18:04:57 christos Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -781,8 +781,7 @@ MKGCC:= no MKGCC:= no .endif -# No GDB support for aarch64 -MKGDB.aarch64= no +# No GDB support for aarch64eb MKGDB.aarch64eb=no MKGDB.or1k= no MKGDB.riscv32= no
CVS commit: src/sys/arch/aarch64/include
Module Name:src Committed By: kamil Date: Tue Jul 17 16:21:43 UTC 2018 Modified Files: src/sys/arch/aarch64/include: reg.h Log Message: Use __uint128_t conditionally in aarch64 reg.h Check whether __uint128_t is available checking __SIZEOF_INT128__ in preprocessor. Move __aligned attribute to the whole structure. No functional change for current NetBSD/aarch64 users of GCC and Clang. This change allows to use the aarch64 target with rumpkernel on Linux aarch64 hosts, in a toolchain configuration with 128-bit variables. OK from and To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/aarch64/include/reg.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/aarch64/include/reg.h diff -u src/sys/arch/aarch64/include/reg.h:1.2 src/sys/arch/aarch64/include/reg.h:1.3 --- src/sys/arch/aarch64/include/reg.h:1.2 Sun Apr 1 04:35:03 2018 +++ src/sys/arch/aarch64/include/reg.h Tue Jul 17 16:21:43 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: reg.h,v 1.2 2018/04/01 04:35:03 ryo Exp $ */ +/* $NetBSD: reg.h,v 1.3 2018/07/17 16:21:43 kamil Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -44,14 +44,16 @@ struct reg { union fpelem { uint64_t u64[2]; - __uint128_t u128[1] __aligned(16); +#ifdef __SIZEOF_INT128__ + __uint128_t u128[1]; +#endif }; struct fpreg { union fpelem fp_reg[32]; uint32_t fpcr; uint32_t fpsr; -}; +} __aligned(16); #elif defined(__arm__)
CVS commit: src/lib/libc_vfp
Module Name:src Committed By: joerg Date: Tue Jul 17 15:03:48 UTC 2018 Modified Files: src/lib/libc_vfp: Makefile vfpdf.S vfpsf.S Log Message: Push FPU choice into the assembler sources themselve. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/lib/libc_vfp/Makefile cvs rdiff -u -r1.2 -r1.3 src/lib/libc_vfp/vfpdf.S src/lib/libc_vfp/vfpsf.S 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_vfp/Makefile diff -u src/lib/libc_vfp/Makefile:1.4 src/lib/libc_vfp/Makefile:1.5 --- src/lib/libc_vfp/Makefile:1.4 Wed Jul 8 01:08:24 2015 +++ src/lib/libc_vfp/Makefile Tue Jul 17 15:03:48 2018 @@ -1,16 +1,10 @@ -# $NetBSD: Makefile,v 1.4 2015/07/08 01:08:24 matt Exp $ +# $NetBSD: Makefile,v 1.5 2018/07/17 15:03:48 joerg Exp $ # LIB= c_vfp USE_SHLIBDIR= yes -.include - -CPUFLAGS+= -mfpu=vfp -marm - SRCS= vfpsf.S vfpdf.S -AFLAGS.vfpsf.S+= -mfpu=vfp -AFLAGS.vfpdf.S+= -mfpu=vfp .include Index: src/lib/libc_vfp/vfpdf.S diff -u src/lib/libc_vfp/vfpdf.S:1.2 src/lib/libc_vfp/vfpdf.S:1.3 --- src/lib/libc_vfp/vfpdf.S:1.2 Sun Jun 23 06:19:55 2013 +++ src/lib/libc_vfp/vfpdf.S Tue Jul 17 15:03:48 2018 @@ -29,7 +29,7 @@ #include -RCSID("$NetBSD: vfpdf.S,v 1.2 2013/06/23 06:19:55 matt Exp $") +RCSID("$NetBSD: vfpdf.S,v 1.3 2018/07/17 15:03:48 joerg Exp $") /* * This file provides softfloat compatible routines which use VFP instructions @@ -39,6 +39,8 @@ RCSID("$NetBSD: vfpdf.S,v 1.2 2013/06/23 * This file implements the double precision floating point routines. */ +.fpu vfp2 + #ifdef __ARMEL__ #define vmov_arg0 vmov d0, r0, r1 #define vmov_arg1 vmov d1, r2, r3 Index: src/lib/libc_vfp/vfpsf.S diff -u src/lib/libc_vfp/vfpsf.S:1.2 src/lib/libc_vfp/vfpsf.S:1.3 --- src/lib/libc_vfp/vfpsf.S:1.2 Sun Jun 23 06:19:55 2013 +++ src/lib/libc_vfp/vfpsf.S Tue Jul 17 15:03:48 2018 @@ -30,7 +30,7 @@ #include #include -RCSID("$NetBSD: vfpsf.S,v 1.2 2013/06/23 06:19:55 matt Exp $") +RCSID("$NetBSD: vfpsf.S,v 1.3 2018/07/17 15:03:48 joerg Exp $") /* * This file provides softfloat compatible routines which use VFP instructions @@ -40,6 +40,8 @@ RCSID("$NetBSD: vfpsf.S,v 1.2 2013/06/23 * This file implements the single precision floating point routines. */ +.fpu vfp2 + #ifdef __ARM_EABI__ #define __addsf3 __aeabi_fadd #define __divsf3 __aeabi_fdiv
CVS commit: [netbsd-8] src
Module Name:src Committed By: martin Date: Tue Jul 17 14:59:51 UTC 2018 Modified Files: src/doc [netbsd-8]: CHANGES-8.0 src/sys/sys [netbsd-8]: param.h Log Message: Welcome to 8.0! To generate a diff of this commit: cvs rdiff -u -r1.1.2.231 -r1.1.2.232 src/doc/CHANGES-8.0 cvs rdiff -u -r1.542.2.3 -r1.542.2.4 src/sys/sys/param.h 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-8.0 diff -u src/doc/CHANGES-8.0:1.1.2.231 src/doc/CHANGES-8.0:1.1.2.232 --- src/doc/CHANGES-8.0:1.1.2.231 Tue Jul 17 14:36:41 2018 +++ src/doc/CHANGES-8.0 Tue Jul 17 14:59:51 2018 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-8.0,v 1.1.2.231 2018/07/17 14:36:41 martin Exp $ +# $NetBSD: CHANGES-8.0,v 1.1.2.232 2018/07/17 14:59:51 martin Exp $ A complete list of changes from the initial NetBSD 8.0 branch on 2017-06-04 until the 8.0 release: @@ -14286,3 +14286,7 @@ usr.sbin/arp/arp.c1.62 arp(8): warn when failing to delete a specified arp entry. [ozaki-r, ticket #925] +distrib/notes/common/main (manually edited) +sys/sys/param.h (manually edited) + + Welcome to 8.0! Index: src/sys/sys/param.h diff -u src/sys/sys/param.h:1.542.2.3 src/sys/sys/param.h:1.542.2.4 --- src/sys/sys/param.h:1.542.2.3 Sun Jun 24 09:51:46 2018 +++ src/sys/sys/param.h Tue Jul 17 14:59:51 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.542.2.3 2018/06/24 09:51:46 martin Exp $ */ +/* $NetBSD: param.h,v 1.542.2.4 2018/07/17 14:59:51 martin Exp $ */ /*- * Copyright (c) 1982, 1986, 1989, 1993 @@ -67,7 +67,7 @@ * 2.99.9 (299000900) */ -#define __NetBSD_Version__ 8 /* NetBSD 8.0_RC2 */ +#define __NetBSD_Version__ 8 /* NetBSD 8.0 */ #define __NetBSD_Prereq__(M,m,p) (M) * 1) + \ (m) * 100) + (p) * 100) <= __NetBSD_Version__)
CVS commit: [netbsd-8] src/distrib/notes/common
Module Name:src Committed By: martin Date: Tue Jul 17 14:54:09 UTC 2018 Modified Files: src/distrib/notes/common [netbsd-8]: main Log Message: Update for 8.0 release. To generate a diff of this commit: cvs rdiff -u -r1.535.2.2 -r1.535.2.3 src/distrib/notes/common/main Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/notes/common/main diff -u src/distrib/notes/common/main:1.535.2.2 src/distrib/notes/common/main:1.535.2.3 --- src/distrib/notes/common/main:1.535.2.2 Sun Jun 24 09:23:48 2018 +++ src/distrib/notes/common/main Tue Jul 17 14:54:09 2018 @@ -1,4 +1,4 @@ -.\" $NetBSD: main,v 1.535.2.2 2018/06/24 09:23:48 martin Exp $ +.\" $NetBSD: main,v 1.535.2.3 2018/07/17 14:54:09 martin Exp $ .\" .\" Copyright (c) 1999-2012 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -50,7 +50,7 @@ .as MACHINE_LIST " sgimips shark sparc sparc64 sun2 sun3 vax x68k xen zaurus . .so \*[.CURDIR]/../common/macros . -.Dd May 9, 2015 +.Dd July 17, 2018 .Dt INSTALL 8 .Os NetBSD .Sh NAME @@ -513,10 +513,10 @@ went into the \*V release. The complete list of changes can be found in the CHANGES: -.Lk https://cdn.netbsd.org/pub/NetBSD/NetBSD-8.0_RC2/CHANGES +.Lk https://cdn.netbsd.org/pub/NetBSD/NetBSD-8.0/CHANGES and CHANGES-8.0: -.Lk https://cdn.netbsd.org/pub/NetBSD/NetBSD-8.0_RC2/CHANGES-8.0 +.Lk https://cdn.netbsd.org/pub/NetBSD/NetBSD-8.0/CHANGES-8.0 files in the top level directory of the NetBSD 8.0 release tree. .Pp The release anouncements, status, updates and links to other resources
CVS commit: [netbsd-8] src/doc
Module Name:src Committed By: martin Date: Tue Jul 17 14:36:41 UTC 2018 Modified Files: src/doc [netbsd-8]: CHANGES-8.0 Log Message: Note ticket #925 To generate a diff of this commit: cvs rdiff -u -r1.1.2.230 -r1.1.2.231 src/doc/CHANGES-8.0 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-8.0 diff -u src/doc/CHANGES-8.0:1.1.2.230 src/doc/CHANGES-8.0:1.1.2.231 --- src/doc/CHANGES-8.0:1.1.2.230 Mon Jul 16 13:33:04 2018 +++ src/doc/CHANGES-8.0 Tue Jul 17 14:36:41 2018 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-8.0,v 1.1.2.230 2018/07/16 13:33:04 sborrill Exp $ +# $NetBSD: CHANGES-8.0,v 1.1.2.231 2018/07/17 14:36:41 martin Exp $ A complete list of changes from the initial NetBSD 8.0 branch on 2017-06-04 until the 8.0 release: @@ -14281,3 +14281,8 @@ crypto/external/bsd/heimdal/lib/libkadm5 amd64). [martin, ticket #924] +usr.sbin/arp/arp.c1.62 + + arp(8): warn when failing to delete a specified arp entry. + [ozaki-r, ticket #925] +
CVS commit: src/bin/cp
Module Name:src Committed By: darcy Date: Tue Jul 17 13:04:58 UTC 2018 Modified Files: src/bin/cp: utils.c Log Message: Re-order the code to short circuit all the opens and closes if linking. Discussed on tech-userlevel and agreed to by christos@. Testing suggests an order of magnitude improvement when linking. To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/bin/cp/utils.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/bin/cp/utils.c diff -u src/bin/cp/utils.c:1.45 src/bin/cp/utils.c:1.46 --- src/bin/cp/utils.c:1.45 Mon Feb 29 04:22:21 2016 +++ src/bin/cp/utils.c Tue Jul 17 13:04:58 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: utils.c,v 1.45 2016/02/29 04:22:21 mrg Exp $ */ +/* $NetBSD: utils.c,v 1.46 2018/07/17 13:04:58 darcy Exp $ */ /*- * Copyright (c) 1991, 1993, 1994 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)utils.c 8.3 (Berkeley) 4/1/94"; #else -__RCSID("$NetBSD: utils.c,v 1.45 2016/02/29 04:22:21 mrg Exp $"); +__RCSID("$NetBSD: utils.c,v 1.46 2018/07/17 13:04:58 darcy Exp $"); #endif #endif /* not lint */ @@ -99,7 +99,17 @@ copy_file(FTSENT *entp, int dne) int ch, checkch, from_fd, rcount, rval, to_fd, tolnk, wcount; char *p; off_t ptotal = 0; - + + /* if hard linking then simply link and return */ + if (lflag) { + (void)unlink(to.p_path); + if (link(entp->fts_path, to.p_path)) { + warn("%s", to.p_path); + return (1); + } + return (0); + } + if ((from_fd = open(entp->fts_path, O_RDONLY, 0)) == -1) { warn("%s", entp->fts_path); return (1); @@ -164,18 +174,6 @@ copy_file(FTSENT *entp, int dne) rval = 0; - /* if hard linking then simply close the open fds, link and return */ - if (lflag) { - (void)close(from_fd); - (void)close(to_fd); - (void)unlink(to.p_path); - if (link(entp->fts_path, to.p_path)) { - warn("%s", to.p_path); - return (1); - } - return (0); - } - /* * There's no reason to do anything other than close the file * now if it's empty, so let's not bother.
CVS commit: src/sys/arch/aarch64/aarch64
Module Name:src Committed By: christos Date: Tue Jul 17 12:40:00 UTC 2018 Modified Files: src/sys/arch/aarch64/aarch64: aarch64_machdep.c Log Message: Keep in .data by using a section attribute. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/arch/aarch64/aarch64/aarch64_machdep.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/aarch64/aarch64/aarch64_machdep.c diff -u src/sys/arch/aarch64/aarch64/aarch64_machdep.c:1.6 src/sys/arch/aarch64/aarch64/aarch64_machdep.c:1.7 --- src/sys/arch/aarch64/aarch64/aarch64_machdep.c:1.6 Tue Jul 17 07:12:41 2018 +++ src/sys/arch/aarch64/aarch64/aarch64_machdep.c Tue Jul 17 08:40:00 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: aarch64_machdep.c,v 1.6 2018/07/17 11:12:41 ryo Exp $ */ +/* $NetBSD: aarch64_machdep.c,v 1.7 2018/07/17 12:40:00 christos Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(1, "$NetBSD: aarch64_machdep.c,v 1.6 2018/07/17 11:12:41 ryo Exp $"); +__KERNEL_RCSID(1, "$NetBSD: aarch64_machdep.c,v 1.7 2018/07/17 12:40:00 christos Exp $"); #include "opt_arm_debug.h" #include "opt_ddb.h" @@ -82,7 +82,8 @@ struct vm_map *phys_map; /* XXX */ vaddr_t physical_start; vaddr_t physical_end; -u_long kern_vtopdiff = 0; /* filled in before cleaning bss. keep in .data */ +/* filled in before cleaning bss. keep in .data */ +u_long kern_vtopdiff __attribute__((__section__(".data"))); /*
CVS commit: src/sys/arch/arm/arm32
Module Name:src Committed By: christos Date: Tue Jul 17 12:31:17 UTC 2018 Modified Files: src/sys/arch/arm/arm32: bus_dma.c Log Message: use unintmax_t instead of u_quad_t. To generate a diff of this commit: cvs rdiff -u -r1.110 -r1.111 src/sys/arch/arm/arm32/bus_dma.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/arm32/bus_dma.c diff -u src/sys/arch/arm/arm32/bus_dma.c:1.110 src/sys/arch/arm/arm32/bus_dma.c:1.111 --- src/sys/arch/arm/arm32/bus_dma.c:1.110 Tue Jul 17 01:29:07 2018 +++ src/sys/arch/arm/arm32/bus_dma.c Tue Jul 17 08:31:16 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: bus_dma.c,v 1.110 2018/07/17 05:29:07 martin Exp $ */ +/* $NetBSD: bus_dma.c,v 1.111 2018/07/17 12:31:16 christos Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. @@ -36,7 +36,7 @@ #include "opt_cputypes.h" #include -__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.110 2018/07/17 05:29:07 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.111 2018/07/17 12:31:16 christos Exp $"); #include #include @@ -1496,7 +1496,7 @@ _bus_dmamem_mmap(bus_dma_tag_t t, bus_dm for (i = 0; i < nsegs; i++) { KASSERTMSG((off & PAGE_MASK) == 0, - "off %#qx (%#x)", (u_quad_t)off, (int)off & PAGE_MASK); + "off %#jx (%#x)", (uintmax_t)off, (int)off & PAGE_MASK); KASSERTMSG((segs[i].ds_addr & PAGE_MASK) == 0, "ds_addr %#lx (%#x)", segs[i].ds_addr, (int)segs[i].ds_addr & PAGE_MASK);
CVS commit: src/sys/arch/aarch64/include
Module Name:src Committed By: joerg Date: Tue Jul 17 11:55:55 UTC 2018 Modified Files: src/sys/arch/aarch64/include: types.h Log Message: Be consistent and explicitly size register32_t too. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/arch/aarch64/include/types.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/aarch64/include/types.h diff -u src/sys/arch/aarch64/include/types.h:1.10 src/sys/arch/aarch64/include/types.h:1.11 --- src/sys/arch/aarch64/include/types.h:1.10 Tue Jul 17 00:34:11 2018 +++ src/sys/arch/aarch64/include/types.h Tue Jul 17 11:55:55 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: types.h,v 1.10 2018/07/17 00:34:11 christos Exp $ */ +/* $NetBSD: types.h,v 1.11 2018/07/17 11:55:55 joerg Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -55,9 +55,9 @@ typedef unsigned long vsize_t; #define PRIuVSIZE "lu" typedef __uint64_t register_t; -typedef unsigned int register32_t; +typedef __uint32_t register32_t; #define PRIxREGISTER PRIx64 -#define PRIxREGISTER32 "x" +#define PRIxREGISTER32 PRIx32 typedef unsigned short tlb_asid_t;
CVS commit: src/sys/arch/aarch64/aarch64
Module Name:src Committed By: ryo Date: Tue Jul 17 11:12:41 UTC 2018 Modified Files: src/sys/arch/aarch64/aarch64: aarch64_machdep.c Log Message: kern_vtopdiff is stored in fdt_start.S. that is before cleaning bss. decl "kern_vtopdiff = 0" for keep in .data section. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/arch/aarch64/aarch64/aarch64_machdep.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/aarch64/aarch64/aarch64_machdep.c diff -u src/sys/arch/aarch64/aarch64/aarch64_machdep.c:1.5 src/sys/arch/aarch64/aarch64/aarch64_machdep.c:1.6 --- src/sys/arch/aarch64/aarch64/aarch64_machdep.c:1.5 Tue Jul 17 00:29:20 2018 +++ src/sys/arch/aarch64/aarch64/aarch64_machdep.c Tue Jul 17 11:12:41 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: aarch64_machdep.c,v 1.5 2018/07/17 00:29:20 christos Exp $ */ +/* $NetBSD: aarch64_machdep.c,v 1.6 2018/07/17 11:12:41 ryo Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(1, "$NetBSD: aarch64_machdep.c,v 1.5 2018/07/17 00:29:20 christos Exp $"); +__KERNEL_RCSID(1, "$NetBSD: aarch64_machdep.c,v 1.6 2018/07/17 11:12:41 ryo Exp $"); #include "opt_arm_debug.h" #include "opt_ddb.h" @@ -82,7 +82,7 @@ struct vm_map *phys_map; /* XXX */ vaddr_t physical_start; vaddr_t physical_end; -u_long kern_vtopdiff; +u_long kern_vtopdiff = 0; /* filled in before cleaning bss. keep in .data */ /*
CVS commit: src/sys/arch
Module Name:src Committed By: bouyer Date: Tue Jul 17 10:18:32 UTC 2018 Modified Files: src/sys/arch/amd64/conf: XEN3_DOMU src/sys/arch/i386/conf: XEN3_DOMU Log Message: Put back trace in DDB_COMMANDONENTER; in seems that the sysctl is not functionnal early in boot. To generate a diff of this commit: cvs rdiff -u -r1.84 -r1.85 src/sys/arch/amd64/conf/XEN3_DOMU cvs rdiff -u -r1.89 -r1.90 src/sys/arch/i386/conf/XEN3_DOMU 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/amd64/conf/XEN3_DOMU diff -u src/sys/arch/amd64/conf/XEN3_DOMU:1.84 src/sys/arch/amd64/conf/XEN3_DOMU:1.85 --- src/sys/arch/amd64/conf/XEN3_DOMU:1.84 Sat Feb 17 01:31:01 2018 +++ src/sys/arch/amd64/conf/XEN3_DOMU Tue Jul 17 10:18:32 2018 @@ -1,4 +1,4 @@ -# $NetBSD: XEN3_DOMU,v 1.84 2018/02/17 01:31:01 sevan Exp $ +# $NetBSD: XEN3_DOMU,v 1.85 2018/07/17 10:18:32 bouyer Exp $ include "arch/amd64/conf/std.xen" @@ -10,7 +10,7 @@ options INCLUDE_CONFIG_FILE # embed con #options UVMHIST_PRINT #options SYSCALL_DEBUG -#ident "XEN3_DOMU-$Revision: 1.84 $" +#ident "XEN3_DOMU-$Revision: 1.85 $" maxusers 32 # estimated number of users @@ -55,7 +55,7 @@ options DDB_HISTORY_SIZE=512 # enable h #options KGDB_DEVNAME="\"com\"",KGDB_DEVADDR=0x2f8,KGDB_DEVRATE=57600 #makeoptions DEBUG="-g" # compile full symbol table makeoptions COPTS="-O2 -fno-omit-frame-pointer" -options DDB_COMMANDONENTER="show registers" +options DDB_COMMANDONENTER="trace;show registers" # Compatibility options include "conf/compat_netbsd15.config" Index: src/sys/arch/i386/conf/XEN3_DOMU diff -u src/sys/arch/i386/conf/XEN3_DOMU:1.89 src/sys/arch/i386/conf/XEN3_DOMU:1.90 --- src/sys/arch/i386/conf/XEN3_DOMU:1.89 Sat Feb 17 01:34:45 2018 +++ src/sys/arch/i386/conf/XEN3_DOMU Tue Jul 17 10:18:32 2018 @@ -1,4 +1,4 @@ -# $NetBSD: XEN3_DOMU,v 1.89 2018/02/17 01:34:45 sevan Exp $ +# $NetBSD: XEN3_DOMU,v 1.90 2018/07/17 10:18:32 bouyer Exp $ include "arch/xen/conf/std.xen" @@ -59,7 +59,7 @@ options DDB_HISTORY_SIZE=512 # enable h #options KGDB # remote debugger #options KGDB_DEVNAME="\"com\"",KGDB_DEVADDR=0x2f8,KGDB_DEVRATE=57600 #makeoptions DEBUG="-g" # compile full symbol table -options DDB_COMMANDONENTER="show registers" +options DDB_COMMANDONENTER="trace;show registers" # Compatibility options include "conf/compat_netbsd09.config"
CVS commit: src/sys/arch/aarch64
Module Name:src Committed By: ryo Date: Tue Jul 17 10:07:49 UTC 2018 Modified Files: src/sys/arch/aarch64/aarch64: db_disasm.c disasm.c fault.c src/sys/arch/aarch64/include: db_machdep.h Log Message: use panic() instead of some printf to show fault status. useful for ddb "show panic" command. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/aarch64/aarch64/db_disasm.c \ src/sys/arch/aarch64/aarch64/disasm.c \ src/sys/arch/aarch64/aarch64/fault.c cvs rdiff -u -r1.5 -r1.6 src/sys/arch/aarch64/include/db_machdep.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/aarch64/aarch64/db_disasm.c diff -u src/sys/arch/aarch64/aarch64/db_disasm.c:1.2 src/sys/arch/aarch64/aarch64/db_disasm.c:1.3 --- src/sys/arch/aarch64/aarch64/db_disasm.c:1.2 Sun Apr 1 04:35:03 2018 +++ src/sys/arch/aarch64/aarch64/db_disasm.c Tue Jul 17 10:07:49 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: db_disasm.c,v 1.2 2018/04/01 04:35:03 ryo Exp $ */ +/* $NetBSD: db_disasm.c,v 1.3 2018/07/17 10:07:49 ryo Exp $ */ /* * Copyright (c) 2017 Ryo Shimizu @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.2 2018/04/01 04:35:03 ryo Exp $"); +__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.3 2018/07/17 10:07:49 ryo Exp $"); #include #include @@ -63,3 +63,60 @@ db_disasm(db_addr_t loc, bool altfmt) { return disasm(_disasm_interface, loc); } + + +static char *strdisasm_ptr; +static char strdisasm_buf[256]; + +static uint32_t +strdisasm_readword(uintptr_t address) +{ + return *(uint32_t *)address; +} + +static void +strdisasm_printf(const char *fmt, ...) +{ + va_list ap; + int len; + + /* calculation spaces to append a string */ + len = strdisasm_buf + sizeof(strdisasm_buf) - strdisasm_ptr; + + va_start(ap, fmt); + len = vsnprintf(strdisasm_ptr, len, fmt, ap); + va_end(ap); + + strdisasm_ptr += len; +} + +static void +strdisasm_printaddr(uintptr_t address) +{ + strdisasm_printf("0x%lx", address); +} + +static const disasm_interface_t strdisasm_interface = { + .di_readword = strdisasm_readword, + .di_printaddr = strdisasm_printaddr, + .di_printf = strdisasm_printf +}; + +const char * +strdisasm(vaddr_t pc) +{ + char *p; + + strdisasm_ptr = strdisasm_buf; + disasm(_interface, (db_addr_t)pc); + + /* replace tab to space, and chomp '\n' */ + for (p = strdisasm_buf; *p != '\0'; p++) { + if (*p == '\t') + *p = ' '; + } + if ((p > strdisasm_buf) && (p[-1] == '\n')) + p[-1] = '\0'; + + return strdisasm_buf; +} Index: src/sys/arch/aarch64/aarch64/disasm.c diff -u src/sys/arch/aarch64/aarch64/disasm.c:1.2 src/sys/arch/aarch64/aarch64/disasm.c:1.3 --- src/sys/arch/aarch64/aarch64/disasm.c:1.2 Thu Jun 14 08:27:10 2018 +++ src/sys/arch/aarch64/aarch64/disasm.c Tue Jul 17 10:07:49 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: disasm.c,v 1.2 2018/06/14 08:27:10 ryo Exp $ */ +/* $NetBSD: disasm.c,v 1.3 2018/07/17 10:07:49 ryo Exp $ */ /* * Copyright (c) 2018 Ryo Shimizu @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: disasm.c,v 1.2 2018/06/14 08:27:10 ryo Exp $"); +__KERNEL_RCSID(0, "$NetBSD: disasm.c,v 1.3 2018/07/17 10:07:49 ryo Exp $"); #include #include @@ -708,8 +708,13 @@ DecodeShift(uint64_t shift) return SHIFTOP4(shift, "lsl", "lsr", "asr", "ror"); } +#ifdef DISASM_WITH_COMMENT #define UNDEFINED(pc, insn, comment) \ PRINTF(".insn\t0x%08x\t# %s\n", insn, comment); +#else +#define UNDEFINED(pc, insn, comment) \ + PRINTF(".insn\t0x%08x\n", insn); +#endif static void extendreg_common(const disasm_interface_t *di, uint64_t pc, uint32_t insn, Index: src/sys/arch/aarch64/aarch64/fault.c diff -u src/sys/arch/aarch64/aarch64/fault.c:1.2 src/sys/arch/aarch64/aarch64/fault.c:1.3 --- src/sys/arch/aarch64/aarch64/fault.c:1.2 Tue Jul 17 00:31:46 2018 +++ src/sys/arch/aarch64/aarch64/fault.c Tue Jul 17 10:07:49 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: fault.c,v 1.2 2018/07/17 00:31:46 christos Exp $ */ +/* $NetBSD: fault.c,v 1.3 2018/07/17 10:07:49 ryo Exp $ */ /* * Copyright (c) 2017 Ryo Shimizu @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: fault.c,v 1.2 2018/07/17 00:31:46 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: fault.c,v 1.3 2018/07/17 10:07:49 ryo Exp $"); #include "opt_ddb.h" #include "opt_uvmhist.h" @@ -128,11 +128,12 @@ data_abort_handler(struct trapframe *tf, vaddr_t va; uint32_t esr, fsc, rw; vm_prot_t ftype; - int error = 0; + int error = 0, len; const bool user = (__SHIFTOUT(tf->tf_spsr, SPSR_M) == SPSR_M_EL0T) ? true : false; bool fatalabort; const char *faultstr; + static char panicinfo[256]; UVMHIST_FUNC(__func__); UVMHIST_CALLED(pmaphist); @@ -294,36 +295,56 @@ data_abort_handler(struct trapframe *tf, } /* - * fatal abort. dump trapframe and panic + * fatal abort. analyze fault status code to show by panic() */ - printf("Trap: %s:", trapname); + len = snprintf(panicinfo,
CVS commit: src/sys/arch/aarch64
Module Name:src Committed By: ryo Date: Tue Jul 17 10:01:59 UTC 2018 Modified Files: src/sys/arch/aarch64/aarch64: copyinout.S cpuswitch.S fusu.S genassym.cf locore.S vectors.S src/sys/arch/aarch64/include: pte.h Log Message: fix build with aarch64 gcc/gas To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/aarch64/aarch64/copyinout.S \ src/sys/arch/aarch64/aarch64/fusu.S cvs rdiff -u -r1.2 -r1.3 src/sys/arch/aarch64/aarch64/cpuswitch.S cvs rdiff -u -r1.4 -r1.5 src/sys/arch/aarch64/aarch64/genassym.cf cvs rdiff -u -r1.11 -r1.12 src/sys/arch/aarch64/aarch64/locore.S cvs rdiff -u -r1.5 -r1.6 src/sys/arch/aarch64/aarch64/vectors.S cvs rdiff -u -r1.3 -r1.4 src/sys/arch/aarch64/include/pte.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/aarch64/aarch64/copyinout.S diff -u src/sys/arch/aarch64/aarch64/copyinout.S:1.3 src/sys/arch/aarch64/aarch64/copyinout.S:1.4 --- src/sys/arch/aarch64/aarch64/copyinout.S:1.3 Sun Apr 1 04:35:03 2018 +++ src/sys/arch/aarch64/aarch64/copyinout.S Tue Jul 17 10:01:59 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: copyinout.S,v 1.3 2018/04/01 04:35:03 ryo Exp $ */ +/* $NetBSD: copyinout.S,v 1.4 2018/07/17 10:01:59 ryo Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -32,8 +32,10 @@ #include #include "assym.h" -RCSID("$NetBSD: copyinout.S,v 1.3 2018/04/01 04:35:03 ryo Exp $"); +RCSID("$NetBSD: copyinout.S,v 1.4 2018/07/17 10:01:59 ryo Exp $"); +#define fp x29 +#define lr x30 .macro enter_cpu_onfault stp fp, lr, [sp, #-16]! /* save fp, lr */ Index: src/sys/arch/aarch64/aarch64/fusu.S diff -u src/sys/arch/aarch64/aarch64/fusu.S:1.3 src/sys/arch/aarch64/aarch64/fusu.S:1.4 --- src/sys/arch/aarch64/aarch64/fusu.S:1.3 Sun Apr 1 04:35:03 2018 +++ src/sys/arch/aarch64/aarch64/fusu.S Tue Jul 17 10:01:59 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: fusu.S,v 1.3 2018/04/01 04:35:03 ryo Exp $ */ +/* $NetBSD: fusu.S,v 1.4 2018/07/17 10:01:59 ryo Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -32,7 +32,10 @@ #include #include "assym.h" -RCSID("$NetBSD: fusu.S,v 1.3 2018/04/01 04:35:03 ryo Exp $"); +RCSID("$NetBSD: fusu.S,v 1.4 2018/07/17 10:01:59 ryo Exp $"); + +#define fp x29 +#define lr x30 .macro enter_cpu_onfault stp fp, lr, [sp, #-16]! /* save fp, lr */ Index: src/sys/arch/aarch64/aarch64/cpuswitch.S diff -u src/sys/arch/aarch64/aarch64/cpuswitch.S:1.2 src/sys/arch/aarch64/aarch64/cpuswitch.S:1.3 --- src/sys/arch/aarch64/aarch64/cpuswitch.S:1.2 Mon Jul 9 06:11:12 2018 +++ src/sys/arch/aarch64/aarch64/cpuswitch.S Tue Jul 17 10:01:59 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: cpuswitch.S,v 1.2 2018/07/09 06:11:12 ryo Exp $ */ +/* $NetBSD: cpuswitch.S,v 1.3 2018/07/17 10:01:59 ryo Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -35,7 +35,9 @@ #include "opt_ddb.h" -RCSID("$NetBSD: cpuswitch.S,v 1.2 2018/07/09 06:11:12 ryo Exp $") +RCSID("$NetBSD: cpuswitch.S,v 1.3 2018/07/17 10:01:59 ryo Exp $") + +#define lr x30 /* * At IPL_SCHED: Index: src/sys/arch/aarch64/aarch64/genassym.cf diff -u src/sys/arch/aarch64/aarch64/genassym.cf:1.4 src/sys/arch/aarch64/aarch64/genassym.cf:1.5 --- src/sys/arch/aarch64/aarch64/genassym.cf:1.4 Tue Jul 10 08:35:58 2018 +++ src/sys/arch/aarch64/aarch64/genassym.cf Tue Jul 17 10:01:59 2018 @@ -1,4 +1,4 @@ -# $NetBSD: genassym.cf,v 1.4 2018/07/10 08:35:58 ryo Exp $ +# $NetBSD: genassym.cf,v 1.5 2018/07/17 10:01:59 ryo Exp $ #- # Copyright (c) 2014 The NetBSD Foundation, Inc. # All rights reserved. @@ -50,6 +50,7 @@ include include include include +include if defined(_KERNEL_OPT) include "opt_multiprocessor.h" @@ -102,6 +103,61 @@ define USPACE (UPAGES * PAGE_SIZE) #define L2_C L2_C #define L2_AP_KRW L2_AP(AP_KRW) +define L0_ADDR_BITS L0_ADDR_BITS +define L0_SHIFT L0_SHIFT +define L0_TABLE L0_TABLE +define L1_ADDR_BITS L1_ADDR_BITS +define L1_BLOCK L1_BLOCK +define L1_SHIFT L1_SHIFT +define L1_SIZE L1_SIZE +define L1_TABLE L1_TABLE +define L2_ADDR_BITS L2_ADDR_BITS +define L2_BLK_OA L2_BLK_OA +define L2_BLOCK L2_BLOCK +define L2_BLOCK_MASK L2_BLOCK_MASK +define L2_SHIFT L2_SHIFT +define L2_SIZE L2_SIZE +define LX_BLKPAG_UXN LX_BLKPAG_UXN +define LX_BLKPAG_PXN LX_BLKPAG_PXN +define LX_BLKPAG_AF LX_BLKPAG_AF +define LX_BLKPAG_AP_RW LX_BLKPAG_AP_RW +define LX_BLKPAG_SH_IS LX_BLKPAG_SH_IS +define LX_BLKPAG_ATTR_INDX_0 LX_BLKPAG_ATTR_INDX_0 +define LX_BLKPAG_ATTR_INDX_1 LX_BLKPAG_ATTR_INDX_1 +define LX_BLKPAG_ATTR_INDX_2 LX_BLKPAG_ATTR_INDX_2 +define LX_BLKPAG_ATTR_INDX_3 LX_BLKPAG_ATTR_INDX_3 +define Ln_ENTRIES Ln_ENTRIES + +define TCR_AS64K TCR_AS64K +define TCR_TG1_16KB TCR_TG1_16KB +define TCR_TG1_4KB TCR_TG1_4KB +define TCR_TG1_64KB TCR_TG1_64KB +define TCR_TG0_16KB TCR_TG0_16KB +define TCR_TG0_4KB TCR_TG0_4KB +define TCR_TG0_64KB TCR_TG0_64KB +define TCR_SH1_OUTER
CVS commit: src/sys/arch/aarch64/aarch64
Module Name:src Committed By: ryo Date: Tue Jul 17 09:58:14 UTC 2018 Modified Files: src/sys/arch/aarch64/aarch64: pmap.c Log Message: Use __debugused To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/aarch64/aarch64/pmap.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/aarch64/aarch64/pmap.c diff -u src/sys/arch/aarch64/aarch64/pmap.c:1.9 src/sys/arch/aarch64/aarch64/pmap.c:1.10 --- src/sys/arch/aarch64/aarch64/pmap.c:1.9 Tue Jul 17 00:33:32 2018 +++ src/sys/arch/aarch64/aarch64/pmap.c Tue Jul 17 09:58:14 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.9 2018/07/17 00:33:32 christos Exp $ */ +/* $NetBSD: pmap.c,v 1.10 2018/07/17 09:58:14 ryo Exp $ */ /* * Copyright (c) 2017 Ryo Shimizu @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.9 2018/07/17 00:33:32 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.10 2018/07/17 09:58:14 ryo Exp $"); #include "opt_arm_debug.h" #include "opt_ddb.h" @@ -235,7 +235,7 @@ static vsize_t _pmap_map_chunk(pd_entry_t *l2, vaddr_t va, paddr_t pa, vsize_t size, vm_prot_t prot, u_int flags) { - pd_entry_t oldpte; + pd_entry_t oldpte __debugused; pt_entry_t attr; vsize_t resid;
CVS commit: src/tests/lib/libc/sys
Module Name:src Committed By: martin Date: Tue Jul 17 06:13:08 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Comment out two tests that regularily hang on SMP machines (with unkillable helper/child processes, so ATF timeout does not help). Kamil knows about the SMP race in traced exit path and said he'll handle it. I would have skipped them on SMP machines only, but got lost in the macro labyrinth - kamil, please feel free to improve ;-) To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64 src/tests/lib/libc/sys/t_ptrace_wait.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/lib/libc/sys/t_ptrace_wait.c diff -u src/tests/lib/libc/sys/t_ptrace_wait.c:1.63 src/tests/lib/libc/sys/t_ptrace_wait.c:1.64 --- src/tests/lib/libc/sys/t_ptrace_wait.c:1.63 Wed Jun 6 13:18:44 2018 +++ src/tests/lib/libc/sys/t_ptrace_wait.c Tue Jul 17 06:13:08 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: t_ptrace_wait.c,v 1.63 2018/06/06 13:18:44 kamil Exp $ */ +/* $NetBSD: t_ptrace_wait.c,v 1.64 2018/07/17 06:13:08 martin Exp $ */ /*- * Copyright (c) 2016 The NetBSD Foundation, Inc. @@ -27,7 +27,7 @@ */ #include -__RCSID("$NetBSD: t_ptrace_wait.c,v 1.63 2018/06/06 13:18:44 kamil Exp $"); +__RCSID("$NetBSD: t_ptrace_wait.c,v 1.64 2018/07/17 06:13:08 martin Exp $"); #include #include @@ -5646,8 +5646,9 @@ ATF_TP_ADD_TCS(tp) ATF_TP_ADD_TC_HAVE_PID(tp, vfork4); ATF_TP_ADD_TC(tp, vfork5); ATF_TP_ADD_TC_HAVE_PID(tp, vfork6); - ATF_TP_ADD_TC_HAVE_PID(tp, vfork7); - ATF_TP_ADD_TC_HAVE_PID(tp, vfork8); +// thes tests hang on SMP machines, disable them for now +// ATF_TP_ADD_TC_HAVE_PID(tp, vfork7); +// ATF_TP_ADD_TC_HAVE_PID(tp, vfork8); ATF_TP_ADD_TC(tp, bytes_transfer_piod_read_d_8); ATF_TP_ADD_TC(tp, bytes_transfer_piod_read_d_16);