NetBSD/src qpPjfca — sys/modules/compat_13 Makefile, sys/modules/compat_16 Makefile

   Need ${CPPFLAGS} when building m68k asm sources.
VersionDeltaFile
1.5+2-2sys/modules/compat_16/Makefile
1.6+2-2sys/modules/compat_13/Makefile
+4-42 files

NetBSD/src 4gbm43C — sys/arch/m68k/include asm.h

   Continue to provide INTERRUPT_{SAVE,RESTORE}REG to user-space.
VersionDeltaFile
1.46+15-9sys/arch/m68k/include/asm.h
+15-91 files

NetBSD/src JnXFCcy — lib/libc/compat/arch/m68k/sys compat_sigreturn.S compat___sigreturn14.S

   Revert previous; I'll fix this a different way.
VersionDeltaFile
1.4+2-2lib/libc/compat/arch/m68k/sys/compat_sigreturn.S
1.4+2-2lib/libc/compat/arch/m68k/sys/compat___sigreturn14.S
+4-42 files

NetBSD/src InJrhvL — lib/libc/compat/arch/m68k/sys compat_sigreturn.S compat___sigreturn14.S

   Update for changes to <m68k/asm.h>
VersionDeltaFile
1.3+4-4lib/libc/compat/arch/m68k/sys/compat_sigreturn.S
1.3+4-4lib/libc/compat/arch/m68k/sys/compat___sigreturn14.S
+8-82 files

NetBSD/src hhlKDC8 — sys/arch/m68k/m68k locore_data.s genassym.cf, sys/arch/virt68k/include pmap.h

   For platforms that can support multiple processors, arrange to put
   every CPU's cpu_info at the same virtual address (enabled by that
   platform defining CPUINFO_VA in <machine/pmap.h>).  The cpu_info_store
   symbol is aliased to this so curcpu() works the same way on UP vs MP
   configurations for the sake of loadable modules.

   Enable this on virt68k (even on uniprocessor configurations).

   (Actual work to set this up on MP systems is TBD.)
VersionDeltaFile
1.47+15-6sys/arch/virt68k/virt68k/machdep.c
1.55+10-1sys/arch/virt68k/virt68k/locore.s
1.7+7-1sys/arch/virt68k/include/pmap.h
1.9+7-1sys/arch/m68k/m68k/genassym.cf
1.2+5-1sys/arch/m68k/m68k/locore_data.s
+44-105 files

NetBSD/src yaY6Urg — sys/arch/m68k/include cpu.h

   No need for different implements of curcpu() in with new cpu_info scheme.
VersionDeltaFile
1.35+2-9sys/arch/m68k/include/cpu.h
+2-91 files

NetBSD/src 3ZgjMsT — sys/arch/cesfic/cesfic locore.s, sys/arch/hp300/hp300 locore.s

   Centralize the declaration of tmpstk and use the same region of memory
   for the primary CPU's cpu_info structure.

   For UP systems, &cpu_info_store is equivalent to &cpu_info_primary.

   On future MP systems, &cpu_info_store will always point to the referencing
   CPU's cpu_info using VM chicanery.
VersionDeltaFile
1.1+68-0sys/arch/m68k/m68k/locore_data.s
1.28+7-14sys/arch/m68k/m68k/m68k_machdep.c
1.94+5-11sys/arch/sun3/sun3x/locore.s
1.119+3-11sys/arch/luna68k/luna68k/locore.s
1.222+3-11sys/arch/hp300/hp300/locore.s
1.78+3-11sys/arch/cesfic/cesfic/locore.s
+89-5811 files not shown
+120-14617 files

NetBSD/src fcSJVII — sys/arch/hpcmips/vr rtc.c

   s/interrurpt/interrupt/ in comment.
VersionDeltaFile
1.38+3-3sys/arch/hpcmips/vr/rtc.c
+3-31 files

NetBSD/src tZhsvdw — sys/arch/m68k/m68k genassym.cf

   cpu_switchto(): Don't bother with tmpstk.  Just restore the %sp
   from the PCB first before restoring the other regs.

   (missed in previous commit to switch_subr.s)
VersionDeltaFile
1.8+2-1sys/arch/m68k/m68k/genassym.cf
+2-11 files

NetBSD/src E5s92FB — sys/dev/i2c ihidev.c

   ihidev: fix typo
VersionDeltaFile
1.36+5-5sys/dev/i2c/ihidev.c
+5-51 files

NetBSD/src 8uHT7Rb — sys/arch/m68k/m68k switch_subr.s

   cpu_switchto(): Don't bother with tmpstk.  Just restore the %sp
   from the PCB first before restoring the other regs.
VersionDeltaFile
1.55+3-8sys/arch/m68k/m68k/switch_subr.s
+3-81 files

NetBSD/src fnlvc7w — sys/arch/amiga/amiga locore.s, sys/arch/atari/atari locore.s

   Re-work AST processing, eliminating the global "astpending" variable.
   The need for an AST is now tracked on a per-LWP basis (patterned after
   the Alpha port).

   The elimination of the "astpending" global necessitated an overhaul
   of the code flow for checking for them.  The old rei code block leveraged
   that "astpending" could be checked without having to use a register.
   Now, a register must be used, so the check for pending ASTs needs to
   be done before registers are restored after a trap.  So, a couple of
   new asm macros are introduced to aid in this split-duty regime:

   - CHECK_ASTPENDING() uses the specified scratch register to check for
     pending ASTs and sets the Z flag accordingly (Z set == no pending AST).
   - RTE_AST replaces the old pattern of unconditionally branching to the
     rei code block and instead conditionally branches to the now-renamed-to-
     rte_ast code block and perfors an RTE if the branch is not taken.  This
     makes the code ever so slightly larger, but actually eliminates a branch
     in the case where an AST was not pending.


    [21 lines not shown]
VersionDeltaFile
1.147+35-66sys/arch/atari/atari/locore.s
1.45+52-15sys/arch/m68k/include/asm.h
1.193+19-40sys/arch/amiga/amiga/locore.s
1.31+32-21sys/arch/m68k/m68k/trap_subr.s
1.166+17-22sys/arch/x68k/x68k/locore.s
1.122+13-24sys/arch/news68k/news68k/locore.s
+168-18823 files not shown
+262-31929 files

NetBSD/src BnXFELd — external/gpl3/gdb/dist/gdb netbsd-nat.c

   in gdb lid == 0 means the main process, so convert back to 0 if pid == lid
VersionDeltaFile
1.9+1-1external/gpl3/gdb/dist/gdb/netbsd-nat.c
+1-11 files

NetBSD/src nb9deZV — lib/libedit eln.c el.c, lib/libedit/TEST wtc1.c

   Allocate display rows on demand (Hua Zhong)

   libedit (unlike readline) allocates a buffer for the entire terminal width *
   height from the beginning, which is often wasteful as most of the time very
   few rows are needed. This change introduces delayed allocation for row buffers.
   Initially, the row-pointer array is allocated with NULL pointers. When we need
   row N, we allocate all row buffers up to that row.

   Display buffer allocation failures are reported through existing API errors.
   A subsequent API call such as el_gets() retries the allocation if needed.
VersionDeltaFile
1.48+81-52lib/libedit/terminal.c
1.110+34-3lib/libedit/read.c
1.62+29-7lib/libedit/refresh.c
1.106+12-2lib/libedit/el.c
1.41+3-6lib/libedit/eln.c
1.9+6-0lib/libedit/TEST/wtc1.c
+165-702 files not shown
+170-728 files

NetBSD/src YBUehjS — external/mpl/bind/dist/lib/dns zone.c

   PR/60833: Showta Ishizaki: fix ILP32 flag setting.
VersionDeltaFile
1.31+5-3external/mpl/bind/dist/lib/dns/zone.c
+5-31 files

NetBSD/src G7VtnJM — tests/usr.bin/xlint/lint1 decl.c, usr.bin/xlint/lint1 lint1.h debug.c

   lint: treat weakref function declarations as defined

   Seen in lib/libc.
VersionDeltaFile
1.431+5-3usr.bin/xlint/lint1/decl.c
1.38+7-1tests/usr.bin/xlint/lint1/decl.c
1.85+4-3usr.bin/xlint/lint1/debug.c
1.540+5-2usr.bin/xlint/lint1/cgram.y
1.242+3-1usr.bin/xlint/lint1/lint1.h
+24-105 files

NetBSD/src xPbf3Tt — sys/arch/mac68k/obio obio.c

   Add rescan functions for obio(4) bus.

   Allows obio attachments to be modules.

   Patch and testing by Ray Tran.

   Addreses PR/60694.

   Next thing to do is to make modules of non-critical obio devices...
VersionDeltaFile
1.28+38-4sys/arch/mac68k/obio/obio.c
+38-41 files

NetBSD/src RwOYGrd — lib/libc/regex regcomp.c

   g->charjump was adjusted to &g->charjump[-(CHAR_MIN)] in computejumps() so
   that it can be indexed by signed chars (all archs except arm); undo the
   adjustment before freeing it, same as regfree() does.
VersionDeltaFile
1.50+3-3lib/libc/regex/regcomp.c
+3-31 files

NetBSD/src wgjqFNH — sys/arch/mac68k/dev adb_direct.c

   Poll for more data on keyboard or mouse if present.

   Patch and testing by Ray Tran.

   Addresses PR/60692.
VersionDeltaFile
1.76+16-3sys/arch/mac68k/dev/adb_direct.c
+16-31 files

NetBSD/src FhmIGkO — sys/dev/wsfb genfb.c

   Save and restore color palette at 8bpp.

   Patch and testing by Ray Tran.

   Addresses PR/60696.
   Addresses PR/40643.
   Should address PR/46574 also.
VersionDeltaFile
1.95+19-2sys/dev/wsfb/genfb.c
+19-21 files

NetBSD/src XBBoYG8 — sys/arch/m68k/include asm.h cpu.h, sys/arch/m68k/m68k genassym.cf m68k_machdep.c

   Start laying the foundation for MP support:
   - curlwp does into struct cpu_info
   - cpu_info gets cache line aware layout based on field access patterns
     (with some reserved slots for future work).
   - cpu_number() and curlwp are now implemented in terms of curcpu().
   - curcpu() remains streamlined for UP systems, and an ABI-stable
     version is provided if _MODULE so that modules will work with UP or MP.
VersionDeltaFile
1.33+35-6sys/arch/m68k/include/cpu.h
1.27+16-4sys/arch/m68k/m68k/m68k_machdep.c
1.6+5-2sys/arch/m68k/m68k/genassym.cf
1.44+3-3sys/arch/m68k/include/asm.h
+59-154 files

NetBSD/src 4Cl7fAN — tests/usr.bin/xlint/lint1 msg_129.c, usr.bin/xlint/lint1 tree.c

   lint: reading from a volatile pointer has a side effect

   Seen in jemalloc.
VersionDeltaFile
1.718+25-37usr.bin/xlint/lint1/tree.c
1.13+10-2tests/usr.bin/xlint/lint1/msg_129.c
+35-392 files

NetBSD/src qcUu2cR — bin/csh csh.h set.c

   csh: remove obsolete lint workaround
VersionDeltaFile
1.41+2-23bin/csh/set.c
1.31+2-1bin/csh/csh.h
+4-242 files

NetBSD/src 2CaPwmW — tests/usr.bin/xlint/lint1 msg_129.c, usr.bin/xlint/lint1 tree.c

   lint: do not warn about '(void)&arg' having a null effect
VersionDeltaFile
1.12+10-7tests/usr.bin/xlint/lint1/msg_129.c
1.717+3-3usr.bin/xlint/lint1/tree.c
+13-102 files

NetBSD/src uTD160S — sys/arch/hb68k/pg68k pmap_pgmmu.c, sys/arch/m68k/m68k pmap_motorola.c pmap_68k.c

   No need to do the initial assignment of curlwp here.
VersionDeltaFile
1.114+4-5sys/arch/m68k/m68k/pmap_motorola.c
1.93+4-5sys/arch/m68k/m68k/pmap_68k.c
1.4+3-4sys/arch/hb68k/pg68k/pmap_pgmmu.c
1.49+2-3sys/arch/sun3/sun3x/locore2.c
1.112+2-3sys/arch/sun3/sun3/locore2.c
1.37+2-3sys/arch/sun2/sun2/locore2.c
+17-236 files

NetBSD/src qqvs2rz — sys/arch/m68k/include asm.h, sys/arch/m68k/m68k switch_subr.s

   Put setting curlwp behind a macro just like getting curlwp.
VersionDeltaFile
1.43+4-1sys/arch/m68k/include/asm.h
1.53+2-2sys/arch/m68k/m68k/switch_subr.s
+6-32 files

NetBSD/src RX2hhpB — sys/arch/m68k/m68k switch_subr.s

   Optimize cpu_switchto()'s handling of restartable atomic sequences:
   - We can us any callee-saved register we want, since we've already
     saved them in the outgoing PCB, so so this to avoid having to
     re-load curlwp, etc. from memory.  This let's us to eliminate a
     branch target.
   - ras_lookup() returns a pointer in %a0, but also returns the same
     value in %d0.  We don't care about the pointer-ness of the return
     value, so just use the %d0 return and shave off several insns.
VersionDeltaFile
1.52+23-20sys/arch/m68k/m68k/switch_subr.s
+23-201 files

NetBSD/src Jk4N3mR — sys/arch/m68k/060sp netbsd060sp.S, sys/arch/m68k/include asm.h

   G/C the curpcb global on m68k.  It's redundant (the current PCB can always
   be accessed via the current LWP) and its presence means wasted work in
   cpu_switchto().

   For cases where asm code does need to get to to it, add a GET_CURPCB()
   macro that places curlwp's PCB pointer into the specified register.
VersionDeltaFile
1.52+15-21sys/arch/m68k/m68k/copy.s
1.9+7-7sys/arch/m68k/060sp/netbsd060sp.S
1.51+2-9sys/arch/m68k/m68k/switch_subr.s
1.113+4-5sys/arch/m68k/m68k/pmap_motorola.c
1.92+4-5sys/arch/m68k/m68k/pmap_68k.c
1.42+8-1sys/arch/m68k/include/asm.h
+40-4810 files not shown
+62-8616 files

NetBSD/src NE1As52 — sys/arch/amiga/amiga machdep.c, sys/arch/atari/atari intr.c

   G/C the intr_depth global and just use the ci_idepth field in cpu_info
   that's just been hanging out there unused for years and years.
VersionDeltaFile
1.32+9-23sys/arch/m68k/include/cpu.h
1.38+6-14sys/arch/mac68k/mac68k/intr.c
1.234+2-11sys/arch/x68k/x68k/machdep.c
1.281+2-11sys/arch/amiga/amiga/machdep.c
1.6+2-10sys/arch/virt68k/virt68k/intr.c
1.36+2-10sys/arch/atari/atari/intr.c
+23-799 files not shown
+49-11215 files

NetBSD/src heMfAfS — sys/arch/hp300/hp300 locore.s, sys/arch/luna68k/luna68k locore.s

   Use INTR_DEPTH_{INCR,DECR}
VersionDeltaFile
1.165+9-9sys/arch/x68k/x68k/locore.s
1.121+9-9sys/arch/news68k/news68k/locore.s
1.117+4-4sys/arch/luna68k/luna68k/locore.s
1.220+3-3sys/arch/hp300/hp300/locore.s
+25-254 files