CVS commit: src/sys/uvm

2020-08-15 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Sat Aug 15 07:24:10 UTC 2020

Modified Files:
src/sys/uvm: uvm_object.c

Log Message:
use uint64_t rather than int for storing the index of a page within an object.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/uvm/uvm_object.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/mips

2020-08-15 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Aug 15 07:42:07 UTC 2020

Modified Files:
src/sys/arch/mips/conf: files.mips
src/sys/arch/mips/include: locore.h
src/sys/arch/mips/mips: db_interface.c db_trace.c trap.c
Added Files:
src/sys/arch/mips/include: stacktrace.h
src/sys/arch/mips/mips: mips_stacktrace.c

Log Message:
move stacktrace_subr() from trap.c into new mips_stacktrace.c so
it can be shared between ddb, other mips kernel components (see
locore), and an upcoming crash(8) port.

remove second copy of kdbpeek() (hidden by old DDB_TRACE
option, but they're functionally equivalent.)

tested on octeon.

ok simonb@


To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 src/sys/arch/mips/conf/files.mips
cvs rdiff -u -r1.113 -r1.114 src/sys/arch/mips/include/locore.h
cvs rdiff -u -r0 -r1.1 src/sys/arch/mips/include/stacktrace.h
cvs rdiff -u -r1.88 -r1.89 src/sys/arch/mips/mips/db_interface.c
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/mips/mips/db_trace.c
cvs rdiff -u -r0 -r1.1 src/sys/arch/mips/mips/mips_stacktrace.c
cvs rdiff -u -r1.255 -r1.256 src/sys/arch/mips/mips/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/dev/cgd

2020-08-15 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Sat Aug 15 10:03:10 UTC 2020

Modified Files:
src/tests/dev/cgd: t_cgd_3des.c t_cgd_adiantum.c t_cgd_aes.c
t_cgd_blowfish.c

Log Message:
Plaintext buffers are used directly for write() operations to the raw device.
Align them to the needs of cgd(4).


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/dev/cgd/t_cgd_3des.c \
src/tests/dev/cgd/t_cgd_blowfish.c
cvs rdiff -u -r1.3 -r1.4 src/tests/dev/cgd/t_cgd_adiantum.c
cvs rdiff -u -r1.7 -r1.8 src/tests/dev/cgd/t_cgd_aes.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man8

2020-08-15 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Sat Aug 15 13:25:14 UTC 2020

Modified Files:
src/share/man/man8: afterboot.8

Log Message:
afterboot.8: Explain how connecting to open WiFi works with wpa_supplicant


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/share/man/man8/afterboot.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man8

2020-08-15 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Sat Aug 15 13:32:26 UTC 2020

Modified Files:
src/share/man/man8: afterboot.8

Log Message:
afterboot.8: Explain how to install pkgin on a fresh system


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/share/man/man8/afterboot.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/arm/arm32

2020-08-15 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sat Aug 15 13:33:54 UTC 2020

Modified Files:
src/sys/arch/arm/arm32: cpuswitch.S

Log Message:
#ifdef _ARM_ARCH_7 the dmbs


To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 src/sys/arch/arm/arm32/cpuswitch.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man8

2020-08-15 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Sat Aug 15 13:35:12 UTC 2020

Modified Files:
src/share/man/man8: afterboot.8

Log Message:
afterboot.8: Be clearer about exactly when you might need to login as root


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/share/man/man8/afterboot.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man8

2020-08-15 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Sat Aug 15 13:44:14 UTC 2020

Modified Files:
src/share/man/man8: afterboot.8

Log Message:
afterboot.8: Explain devpubd


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/share/man/man8/afterboot.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man8

2020-08-15 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Sat Aug 15 13:49:09 UTC 2020

Modified Files:
src/share/man/man8: afterboot.8

Log Message:
afterboot.8: Mention mdnsd


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/share/man/man8/afterboot.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man8

2020-08-15 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Sat Aug 15 14:42:02 UTC 2020

Modified Files:
src/share/man/man8: afterboot.8

Log Message:
afterboot.8: Use cdn. Don't be arch specific. Requested by leot.


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/share/man/man8/afterboot.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man8

2020-08-15 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Sat Aug 15 14:45:31 UTC 2020

Modified Files:
src/share/man/man8: afterboot.8

Log Message:
afterboot.8: Correct URL directory order


To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/share/man/man8/afterboot.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/etc/root

2020-08-15 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Sat Aug 15 14:47:28 UTC 2020

Modified Files:
src/etc/root: dot.profile

Log Message:
Use sysctl -n hw.machine_arch so this works on e.g. aarch64

Ues HTTPS


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/etc/root/dot.profile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/alpha/alpha

2020-08-15 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Aug 15 16:09:07 UTC 2020

Modified Files:
src/sys/arch/alpha/alpha: ipifuncs.c

Log Message:
Convert some #ifdef DIAGNOSTIC checks to KASSERTs.  NFCI.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/arch/alpha/alpha/ipifuncs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/uvm

2020-08-15 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Sun Aug 16 00:24:41 UTC 2020

Modified Files:
src/sys/uvm: uvm_vnode.c

Log Message:
in uvm_findpage(), when uvm_page_array_fill_and_peek() returns a page
that is not the one we want and we make an assertion about dirtiness,
check the dirty status of the page we wanted rather than the page we got.


To generate a diff of this commit:
cvs rdiff -u -r1.116 -r1.117 src/sys/uvm/uvm_vnode.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/usb

2020-08-15 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun Aug 16 02:33:17 UTC 2020

Modified Files:
src/sys/dev/usb: ugen.c

Log Message:
Remove UGEN_ASLP microoptimization.

cv_signal already has this microoptimization.

While here, make the lock cover the relevant things we're issuing
cv_signal about -- progress toward real MP-safety.


To generate a diff of this commit:
cvs rdiff -u -r1.151 -r1.152 src/sys/dev/usb/ugen.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/usb

2020-08-15 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun Aug 16 02:34:20 UTC 2020

Modified Files:
src/sys/dev/usb: ugen.c

Log Message:
Hold the lock over access to the data structures it covers.

Still not MPSAFE, but progress.


To generate a diff of this commit:
cvs rdiff -u -r1.152 -r1.153 src/sys/dev/usb/ugen.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/usb

2020-08-15 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun Aug 16 02:34:54 UTC 2020

Modified Files:
src/sys/dev/usb: ugen.c

Log Message:
Convert DIAGNOSTIC prints to KASSERTs.


To generate a diff of this commit:
cvs rdiff -u -r1.153 -r1.154 src/sys/dev/usb/ugen.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/usb

2020-08-15 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun Aug 16 02:37:19 UTC 2020

Modified Files:
src/sys/dev/usb: ugen.c

Log Message:
Share unit numbering for ugen and ugenif.

This way putting ugenif in kernel config actually works to wire it to
the /dev/ugenN.MM device nodes in userland.

Not a fully fleshed out solution to the ugen problem -- there's no
way for a userland driver to kick out a kernel driver and take over,
but this will let us, e.g., use uhidev(4) for Yubikey OTP/U2F/FIDO2
but ugen(4), with pcscd(8), for Yubikey CCID.

Fix various MP-safety issues while here (still not MPSAFE, but more
progress).


To generate a diff of this commit:
cvs rdiff -u -r1.154 -r1.155 src/sys/dev/usb/ugen.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/usb

2020-08-15 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun Aug 16 02:38:06 UTC 2020

Modified Files:
src/sys/dev/usb: usbdevices.config

Log Message:
Expose Yubikey CCID interface to userland via ugenif.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/dev/usb/usbdevices.config

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/arm/ti

2020-08-15 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun Aug 16 03:48:59 UTC 2020

Modified Files:
src/sys/arch/arm/ti: ti_iic.c

Log Message:
Initialize the i2c controller before using it.

Fixes mutex uninitialized panic in LOCKDEBUG.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/arm/ti/ti_iic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/usb

2020-08-15 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun Aug 16 06:17:31 UTC 2020

Modified Files:
src/sys/dev/usb: ugen.c

Log Message:
Fix sloppy mistakes in previous.

1. Give the offset of the rbnode, not some other random members to
   overwrite with garbage.

2. Don't try to unlock a mutex at NULL.

3. Make sure all paths out after ugenif_acquire go via
   ugenif_release.


To generate a diff of this commit:
cvs rdiff -u -r1.155 -r1.156 src/sys/dev/usb/ugen.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x68k/stand

2020-08-15 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Sun Aug 16 06:43:44 UTC 2020

Modified Files:
src/sys/arch/x68k/stand/libiocs: iocscall.h
src/sys/arch/x68k/stand/xxboot: Makefile.xxboot boot.S bootmain.c
consio1.c version xx.c xxboot.h xxboot.ldscript
src/sys/arch/x68k/stand/xxboot/xxboot_ffsv1: Makefile
src/sys/arch/x68k/stand/xxboot/xxboot_ffsv2: Makefile
src/sys/arch/x68k/stand/xxboot/xxboot_lfsv1: Makefile
src/sys/arch/x68k/stand/xxboot/xxboot_lfsv2: Makefile
Added Files:
src/sys/arch/x68k/stand/xxboot: ashldi3.S ashrdi3.S memcmp.S memcpy.S
memset.S
src/sys/arch/x68k/stand/xxboot/fdboot_ustarfs: Makefile

Log Message:
Overhaul xxboot.  And merge floppy boot, taken from boot_ustar.
- Rewrite boot.S completely.
  boot.S now supports boot from SCSI HD/CD and floppy.
- Use IOCS call to identify the floppy format, instead of chkfmt.s which
  accesses hardware directly.
- Import print_hex() debug function from boot_ufs.
- Import a feature that displays initial registers (for debug) from boot_ufs,
  and restore it (this in boot_ufs has been broken).
- Add size optimized alternatives for some libkern routines.
- Stop linking libsa to prevent to link unexpected objects.
- Bump version to 2.0.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/x68k/stand/libiocs/iocscall.h
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/x68k/stand/xxboot/Makefile.xxboot
cvs rdiff -u -r0 -r1.1 src/sys/arch/x68k/stand/xxboot/ashldi3.S \
src/sys/arch/x68k/stand/xxboot/ashrdi3.S \
src/sys/arch/x68k/stand/xxboot/memcmp.S \
src/sys/arch/x68k/stand/xxboot/memcpy.S \
src/sys/arch/x68k/stand/xxboot/memset.S
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/x68k/stand/xxboot/boot.S
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/x68k/stand/xxboot/bootmain.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/x68k/stand/xxboot/consio1.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/x68k/stand/xxboot/version \
src/sys/arch/x68k/stand/xxboot/xx.c \
src/sys/arch/x68k/stand/xxboot/xxboot.h
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/x68k/stand/xxboot/xxboot.ldscript
cvs rdiff -u -r0 -r1.1 src/sys/arch/x68k/stand/xxboot/fdboot_ustarfs/Makefile
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/x68k/stand/xxboot/xxboot_ffsv1/Makefile
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/x68k/stand/xxboot/xxboot_ffsv2/Makefile
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/x68k/stand/xxboot/xxboot_lfsv1/Makefile
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/x68k/stand/xxboot/xxboot_lfsv2/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/mk

2020-08-15 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Aug 16 06:43:05 UTC 2020

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
switch netbsd/m68k to GCC 8.

special thanks to rin@ for fixing many things and figuring out
what was the major issue (STACK_BOUNDARY.)


To generate a diff of this commit:
cvs rdiff -u -r1.1203 -r1.1204 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.