NetBSD/src QDp6gyRsys/arch/hp300/conf files.hp300, sys/arch/hp300/include hp300spu.h cpu.h

   Use the new M68K_EC_VAC and M68K_EC_PAC options, based on configured
   model.

   As a transitional step, ensure that the new options are consistent with
   the legacy CACHE_HAVE_{PAC,VAC} defines.
VersionDeltaFile
1.57+11-4sys/arch/news68k/include/cpu.h
1.102+7-7sys/arch/hp300/conf/files.hp300
1.18+13-1sys/arch/hp300/include/hp300spu.h
1.80+5-4sys/arch/hp300/include/cpu.h
1.43+2-2sys/arch/news68k/conf/files.news68k
+38-185 files

NetBSD/src pcEDRr7sys/arch/m68k/conf files.m68k

   Add 3 new arch options:
   - M68K_EC -- platform has an external cache
   - M68K_EC_PAC -- platform has an external cache that's physically addressed
   - M68K_EC_VAC -- platform has an external cache that's virtually addressed

   M68K_EC_PAC and M68K_EC_VAC are to be used by individual platforms to
   indicate their cache configuration options, M68K_EC is inferred by either.
VersionDeltaFile
1.62+5-2sys/arch/m68k/conf/files.m68k
+5-21 files

NetBSD/src S7sHEVDsys/uvm uvm_pdaemon.c

   uvmpd_scan_queue: remove ENABLE_UNRELIABLE_CHECK_PR_56764 block

   while this condition is true in most of times, we can't
   assert it here because these counters are not always
   updated in-sync.

   for example, consider a removal of a large tmpfs file which is
   mostly swapped out. because uao_dropswap_range() batches swpgonly
   updates, swpgonly can be temporarily larger than swpginuse.

   the original symptom reported in PR/56764 ("uvmexp.swpgonly > 0")
   looks like a different issue though.

   https://gnats.netbsd.org/56764
VersionDeltaFile
1.138+2-7sys/uvm/uvm_pdaemon.c
+2-71 files

NetBSD/src mCdCA4eexternal/cddl/osnet/dist/uts/common/fs/zfs zfs_vnops.c

   zfs_putapage: don't try to write to zfs in the page daemon context

   basically zfs is not prepared to be called safely for page daemon.

   for now, if we found the page dirty, (thus we need to push it into zfs)
   just punt with ENOMEM. hopefully the page daemon will find some other
   pages to reclaim.

   if the system is already full of dirty pages backed by zfs, i suppose
   there is no good way to recover. for a longer term, we probably need
   some dirty-page throttling mechanism to avoid the situation in the
   first place.
VersionDeltaFile
1.95+12-0external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c
+12-01 files

NetBSD/src 5TsMiyDexternal/cddl/osnet/dist/uts/common/fs/zfs zfs_vnops.c

   zfs: don't commit the zil for FSYNC_LAZY

   FSYNC_LAZY is meant for periodic syncer activity.
   unlike fsync() system call, it doesn't give any promises
   about data integrity to users.
VersionDeltaFile
1.94+3-1external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c
+3-11 files

NetBSD/src bO8pPWSexternal/cddl/osnet/dist/uts/common/fs/zfs zfs_vnops.c

   zfs: flush mmap pages on fsync

   it seems the logic to flush page cache in fsync has been removed
   during the initial port to netbsd. at that point it was probably ok
   because we simply didn't support mmap. since then, mmap support has
   been added. but the fsync logic has not been restored. it means that
   mmap-modified pages are left dirty basically forever, unless the
   application explicitly performs msync on them or page daemon tries
   to reclaim them on system memory shortage. it's bad especially for
   a file system like zfs because writing data to zfs involves complex
   locking and memory allocations, and thus not safe in the context of
   the page daemon.

   this commit fixes (well, at least improves the situation a bit) by
   putting back the page flushing logic.

   ideally netbsd needs to have some throttling mechanism on
   page-dirtying activities. i suppose such a mechanism can be
   implemented in a mostly filesystem-independent manner.
   (it was one of my motivations of yamt-pagecache branch.)
VersionDeltaFile
1.93+18-2external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c
+18-21 files

NetBSD/src 9q0GryOsys/dev/usb usb.h

   sort UICLASS_* defines
VersionDeltaFile
1.126+6-6sys/dev/usb/usb.h
+6-61 files

NetBSD/src WQMjVpWsys/arch/atari/atari locore.s atari_init.c

   Use the fake exception frame created by pmap_bootstrap2() by
   capturing its return value and passing it along as the return
   value from start_c().
VersionDeltaFile
1.139+5-26sys/arch/atari/atari/locore.s
1.117+7-5sys/arch/atari/atari/atari_init.c
+12-312 files

NetBSD/src rqojU6Gsys/arch/amiga/amiga locore.s amiga_init.c

   Use the fake exception frame created by pmap_bootstrap2() by
   capturing its return value and passing it along as the return
   value from start_c_finish().
VersionDeltaFile
1.183+5-28sys/arch/amiga/amiga/locore.s
1.137+7-5sys/arch/amiga/amiga/amiga_init.c
+12-332 files

NetBSD/src tVoJDnksys/arch/mac68k/mac68k locore.s, sys/arch/mvme68k/mvme68k locore.s

   Make sure debugger back-traces terminate correctly by setting %a6
   to 0 before calling main().
VersionDeltaFile
1.122+2-2sys/arch/sun3/sun3/locore.s
1.86+2-2sys/arch/sun3/sun3x/locore.s
1.49+2-2sys/arch/sun2/sun2/locore.s
1.204+2-1sys/arch/mac68k/mac68k/locore.s
1.161+2-1sys/arch/mvme68k/mvme68k/locore.s
1.109+2-1sys/arch/news68k/news68k/locore.s
+12-96 files not shown
+24-1512 files

NetBSD/src nExyUbEsys/arch/sun2/sun2 locore.s locore2.c, sys/arch/sun3/sun3 locore.s locore2.c

   Move initialization of %dfc and %sfc into _bootstrap() (which will
   eventually itself be re-factored to reduce duplication).  Also, catch
   up with the others: no need to initialize %usp before calling main().
VersionDeltaFile
1.48+1-17sys/arch/sun2/sun2/locore.s
1.121+1-17sys/arch/sun3/sun3/locore.s
1.85+1-17sys/arch/sun3/sun3x/locore.s
1.31+10-2sys/arch/sun2/sun2/locore2.c
1.106+10-2sys/arch/sun3/sun3/locore2.c
1.45+10-2sys/arch/sun3/sun3x/locore2.c
+33-576 files

NetBSD/src wpRdCnrsys/arch/virt68k/virt68k locore.s

   paravirt_membar_sync(): "moveq #0,%d0" is faster on real hardware than
   "clrl %d0", and may be faster in some emulators, too, so use that.
VersionDeltaFile
1.43+2-2sys/arch/virt68k/virt68k/locore.s
+2-21 files

NetBSD/src L9yT8Bjsys/arch/cesfic/cesfic locore.s, sys/arch/hp300/hp300 locore.s

   For many many years now, it has been unnecessary to initialize the user
   stack pointer before calling main().  TL;DR - %usp comes from the exception
   frame and is restored in the syscall stub (always) or rei (if an AST is
   pending).  For newly-forked processes, those take the non-AST path through
   rei, but lwp_trampoline() takes care of it in that case.
VersionDeltaFile
1.42+1-5sys/arch/virt68k/virt68k/locore.s
1.155+1-5sys/arch/x68k/x68k/locore.s
1.107+1-5sys/arch/luna68k/luna68k/locore.s
1.64+1-5sys/arch/cesfic/cesfic/locore.s
1.211+1-5sys/arch/hp300/hp300/locore.s
1.203+1-5sys/arch/mac68k/mac68k/locore.s
+6-302 files not shown
+8-408 files

NetBSD/src CiC3M4Asys/arch/sun2/sun2 locore2.c locore.s, sys/arch/sun3/sun3 locore2.c locore.s

   Set up the fake exception frame and initialize lwp0.l_md.md_regs in
   _vm_init() and return the new lwp0 stack pointer via _bootstrap().
VersionDeltaFile
1.30+21-19sys/arch/sun2/sun2/locore2.c
1.105+19-17sys/arch/sun3/sun3/locore2.c
1.44+19-16sys/arch/sun3/sun3x/locore2.c
1.47+6-18sys/arch/sun2/sun2/locore.s
1.84+6-18sys/arch/sun3/sun3x/locore.s
1.120+6-18sys/arch/sun3/sun3/locore.s
+77-1066 files

NetBSD/src xJZNAd6bin/sh expand.c expand.h

   PR bin/60099 - Fix unquoted $* ($@) expansion

   Make unquoted $* (or $@) when used in a context where field
   splitting happens (which requires unquoted of course) generate
   the same result, always, as would have been obtained had the
   number of params been known, and
        $1 $2 $3 ... ${n}               (n is the value of $#)
   been used instead of $* - so for x$*y, for any strings x & y
   (including empty), the equivalent would be
        x$1 $2 $3 ... ${n}y

   This must hold, whatever the setting of IFS (which affects
   how the fields generated are field split after they appear,
   but should not affect the generation of those fields).

   The bug this fixes is (in practice) never encountered, which is
   how it has persisted for so long, and in so many different shells.
   The method that was previously used to expand $* in this situation
   would work perfectly, if the first character of ${IFS} was an IFS

    [28 lines not shown]
VersionDeltaFile
1.148+224-80bin/sh/expand.c
1.27+12-10bin/sh/expand.h
+236-902 files

NetBSD/src VNF3lTUbin/sh parser.h

   Minor cleanups

   Cleanup CTLccc char definitions (layout only):
        #define [space|tab] consistency, align value column,
        add hex equivalents (in comments) for octal char values

   Minor changes to comments.

   NFC.
VersionDeltaFile
1.32+22-18bin/sh/parser.h
+22-181 files

NetBSD/src lgaPXm1bin/sh shell.h

   Add DEBUG_ONLY() to include anything in DEBUG code

   DEBUG_ONLY(x) expands to its arg, which should not contain commas
   (outside parens) only in DEBUG mode compiles, most useful for var
   declarations, and similar.  Nb: code only, not outside functions.

   Some cleanups/additions to comments.

   By itself, this is a NFC change (until something uses DEBUG_ONLY()
   for DEBUG mode code alteration).
VersionDeltaFile
1.35+9-2bin/sh/shell.h
+9-21 files

NetBSD/src nwiCvmTlib/libc/gen unvis.c

   PR lib/60111 - Add some bounds checking

   As requested by the PR, bounds checking on the two obvious
   places I could see where overflow looks possible has been added.
   Detected overflow should generate a decode error.
VersionDeltaFile
1.47+15-4lib/libc/gen/unvis.c
+15-41 files

NetBSD/src MsGKmLDdistrib/utils/embedded mkimage

   PR 60119 - don't set -o pipefail (revert previous)

   I was going to make the setting of the pipefail option check if
   the executing shell supports the option or not (all should really,
   and up to date dash does - it is a standard option) - but then I
   looked at the script, and couldn't find a pipe used anywhere.

   The option is useless here.   So, bye-bye pipefail.
VersionDeltaFile
1.95+1-1distrib/utils/embedded/mkimage
+1-11 files

NetBSD/src I3yeyNdbin/sh option.list

   Reorder slightly for correctness

   The "pipefail" option is now a POSIX standard option, move it
   from the extensions section to the standard options section.

   The (very fake) "r" option is not a standard option, though it
   is a command line only "option" - move it away from -s, -c
   the other (but standard) command line only options, and to a
   section of its own (our first non-standard command line only option).

   NFC - the order of options in this definition file is for human
   (those who view this file) purposes only, all is reordered by
   mkoptions.sh before being included with the shell sources.
VersionDeltaFile
1.13+4-3bin/sh/option.list
+4-31 files

NetBSD/src p707EZ3bin/sh arith_token.c parser.c

   Use sh internal char typing, not <ctype.h>

   That is, use the internal shell is_digit() rather than isdigit().

   No practical functional change (a digit is a digit).
VersionDeltaFile
1.8+3-3bin/sh/arith_token.c
1.186+3-3bin/sh/parser.c
+6-62 files

NetBSD/src D2orA6fbin/sh parser.c parser.h

   Sprinkle some const

   NFC - the functions treated the arg as const anyway,
   it just was not previously declared.
VersionDeltaFile
1.185+7-7bin/sh/parser.c
1.31+4-4bin/sh/parser.h
+11-112 files

NetBSD/src Yo7g84tsys/arch/hp300/hp300 locore.s, sys/arch/luna68k/luna68k locore.s

   Rather than pmap_boostrap2() returning the address of the lwp0 uarea,
   let pmap_bootstrap2() construct the fake exception frame, initialize
   lwp0.l_md.md_regs, and return the new lwp0 stack pointer, thus removing
   a bunch of duplicated asm code in each platform's locore.s.

   XXX amiga and atari TBD, but the changes will be less mechanical.

   XXX sun2/sun3/sun3x TBD, require a slightly different set of mechanical
   changes.
VersionDeltaFile
1.202+12-22sys/arch/mac68k/mac68k/locore.s
1.106+7-22sys/arch/luna68k/luna68k/locore.s
1.210+8-20sys/arch/hp300/hp300/locore.s
1.106+8-20sys/arch/next68k/next68k/locore.s
1.154+7-19sys/arch/x68k/x68k/locore.s
1.159+7-19sys/arch/mvme68k/mvme68k/locore.s
+49-1225 files not shown
+90-18411 files

NetBSD/src LEiJ9pTsys/arch/m68k/include pmap_motorola.h

   Bring over the PMAP_BOOTSTRAP_*() relocation macros from pmap_68k.h
   so that virt68k can continue to be built using the Hibler pmap for
   testing.
VersionDeltaFile
1.51+48-1sys/arch/m68k/include/pmap_motorola.h
+48-11 files

NetBSD/src nSpofkJsys/arch/sun2/sun2 locore.s, sys/arch/sun3/sun3 locore.s

   Reduce diffs with other m68k platforms in the runnup-to-main() code.
VersionDeltaFile
1.46+9-9sys/arch/sun2/sun2/locore.s
1.119+9-9sys/arch/sun3/sun3/locore.s
+18-182 files

NetBSD/src FNqLJbusys/arch/mvme68k/mvme68k locore.s

   Tidy up a comment.
VersionDeltaFile
1.158+5-6sys/arch/mvme68k/mvme68k/locore.s
+5-61 files

NetBSD/src 1fch1n4sys/arch/luna68k/luna68k locore.s

   Correct a comment.
VersionDeltaFile
1.105+4-7sys/arch/luna68k/luna68k/locore.s
+4-71 files

NetBSD/src 9d7xHf1sys/arch/cesfic/cesfic locore.s, sys/arch/hp300/hp300 locore.s

   main() does not (and, indeed, **cannot** when you get there via "jra"
   rather than "jbsr") return, so there doesn't need to be any code
   to handle such.
VersionDeltaFile
1.62+1-9sys/arch/cesfic/cesfic/locore.s
1.105+2-5sys/arch/next68k/next68k/locore.s
1.153+1-5sys/arch/x68k/x68k/locore.s
1.201+1-4sys/arch/mac68k/mac68k/locore.s
1.209+1-4sys/arch/hp300/hp300/locore.s
1.106+1-3sys/arch/news68k/news68k/locore.s
+7-306 files

NetBSD/src 5N9H2rssys/arch/amiga/amiga locore.s, sys/arch/atari/atari locore.s

   It has been decades since proc 1 entered user-space via main()
   returning.  Update the comments and code to reflect this reality.
VersionDeltaFile
1.138+16-35sys/arch/atari/atari/locore.s
1.182+9-29sys/arch/amiga/amiga/locore.s
+25-642 files

NetBSD/src 5KfVCxqexternal/cddl/osnet/dist/uts/common/fs/zfs zfs_vnops.c zfs_znode.c, external/cddl/osnet/dist/uts/common/fs/zfs/sys zfs_znode.h

   zfs: fix "slow rm" issue

   * stop commiting zil in zfs_netbsd_reclaim and other operations
     in vnode reclaim path.

   * retire zfs_zget_cleaner/VN_RELE_CLEANER.
     instead, just use normal zfs_zget and vrele_async.

   note that these two changes depend on each other:

   * zfs_zget_cleaner relies on zil_commit in zfs_netbsd_reclaim to
     ensure that the znode referenced by TX_WRITE itx is always in-core.

   * otoh, zfs_zget_clear makes zil_commit in the vnode reclaim path
     possible. that is, zfs_netbsd_reclaim (VOP_RECLAIM) is called with
     the vnode in VS_RECLAIMING state, which would make vcache_vget
     block.
     if the vnode being reclaimed happened to have TX_WRITE itx on the
     zil, it deadlocks.

    [20 lines not shown]
VersionDeltaFile
1.92+25-16external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c
1.36+0-37external/cddl/osnet/dist/uts/common/fs/zfs/zfs_znode.c
1.33+20-3external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vfsops.c
1.10+0-1external/cddl/osnet/dist/uts/common/fs/zfs/sys/zfs_znode.h
+45-574 files