CVS: cvs.openbsd.org: src

2018-07-01 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2018/07/01 23:37:18

Modified files:
sys/arch/amd64/amd64: vmm.c 

Log message:
vmm: wrap a long line and prefix a hex value printed in a debug printf
with 0x



CVS: cvs.openbsd.org: src

2018-07-01 Thread Alexandre Ratchov
CVSROOT:/cvs
Module name:src
Changes by: ratc...@cvs.openbsd.org 2018/07/01 23:13:35

src/usr.bin/midicat

Update of /cvs/src/usr.bin/midicat
In directory cvs.openbsd.org:/tmp/cvs-serv56324/midicat

Log Message:
Directory /cvs/src/usr.bin/midicat added to the repository



CVS: cvs.openbsd.org: src

2018-07-01 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2018/07/01 22:26:58

Modified files:
sys/arch/i386/i386: mainbus.c 

Log message:
clarify what is actually needed from a header file being included
(previous comment was wrong, or outdated)



CVS: cvs.openbsd.org: src

2018-07-01 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/07/01 15:05:07

Modified files:
sys/arch/arm64/conf: GENERIC.MP 

Log message:
Revert bit I didn't intend to commit.



CVS: cvs.openbsd.org: src

2018-07-01 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/01 15:00:18

Modified files:
distrib/miniroot: install.sub 

Log message:
Comments



CVS: cvs.openbsd.org: src

2018-07-01 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/01 14:45:22

Modified files:
distrib/miniroot: install.sub 

Log message:
Explain and demystify some darker corners of the installer script.



CVS: cvs.openbsd.org: src

2018-07-01 Thread Rob Pierce
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/01 14:03:48

Modified files:
usr.bin/ldap   : ber.c 
usr.sbin/ldapd : ber.c 
usr.sbin/snmpd : ber.c 
usr.sbin/ypldap: ber.c 

Log message:
s/constructive/constructed in DPRINTF output.



CVS: cvs.openbsd.org: src

2018-07-01 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2018/07/01 13:40:49

Modified files:
sys/dev/acpi   : acpiac.c acpiasus.c acpibat.c acpibtn.c 
 acpiec.c acpithinkpad.c acpitoshiba.c tpm.c 

Log message:
acpi: clean up some inconsistent style in the hid matching arrays

ok millert, kettenis, jcs, phessler, deraadt, mpi



CVS: cvs.openbsd.org: src

2018-07-01 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/07/01 13:30:37

Modified files:
sys/arch/arm64/conf: GENERIC GENERIC.MP RAMDISK files.arm64 
Added files:
sys/arch/arm64/arm64: acpi_machdep.c 

Log message:
Hook up acpi(4) on arm64.  Various bits of driver glue are still missing
but this is enough to boot multi-user on the mcbin with suitable firmware.

ok mlarkin@



CVS: cvs.openbsd.org: src

2018-07-01 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/07/01 12:58:06

Modified files:
sys/dev/fdt: dwpcie.c 

Log message:
Use generated string for the bus number extent.



CVS: cvs.openbsd.org: src

2018-07-01 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2018/07/01 10:33:15

Modified files:
sys/kern   : kern_descrip.c kern_sysctl.c uipc_usrreq.c 

Log message:
Lock the file descriptor table when accessing the `fd_ofileflags' array.
This prevents the array from being freed too early. In the function
unp_internalize(), the locking also ensures the per-fdp flags stay
coherent with the file instance.

OK mpi@



CVS: cvs.openbsd.org: src

2018-07-01 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2018/07/01 10:02:12

Modified files:
sys/arch/amd64/amd64: vector.S 
sys/arch/amd64/include: asm.h 

Log message:
Update IDTVEC, KIDTVEC, and KUENTRY to align with _ALIGN_TRAPS instead of
ALIGN_TEXT.  For the places where IDTVEC and KIDTVEC are used in ways that
would fail if a trap was inserted, provide IDTVEC_NOALIGN for use directly
after other IDTVEC uses, and KIDTVEC_FALLTHROUGH for places where the code
intentionally falls through to a KIDTVEC.  "objdump -d" shows that this
just converts nop-sleds to trap-sleds immediately after an unconditional
jmp, or a retq, iretq, or sysretq.

ok mortimer@ kettenis@ deraadt@



CVS: cvs.openbsd.org: src

2018-07-01 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/07/01 09:54:59

Modified files:
sys/dev/acpi   : files.acpi 
Added files:
sys/dev/acpi   : ahci_acpi.c 

Log message:
Allow ahci(4) to attach to acpi(4).

ok deraadt@



CVS: cvs.openbsd.org: src

2018-07-01 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/07/01 09:52:12

Modified files:
sys/arch/amd64/amd64: acpi_machdep.c 
sys/arch/amd64/conf: files.amd64 
sys/arch/i386/conf: files.i386 
sys/arch/i386/i386: acpi_machdep.c 
sys/dev/acpi   : acpi.c files.acpi 

Log message:
Move acpi(4) attach glue into acpi_machdep.c.

ok guenther@, deraadt@



CVS: cvs.openbsd.org: src

2018-07-01 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2018/07/01 09:42:37

Modified files:
usr.sbin/route6d: route6d.c 

Log message:
more RTM_LOCK removals



CVS: cvs.openbsd.org: src

2018-07-01 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2018/07/01 06:59:33

Modified files:
sbin/disklabel : editor.c 

Log message:
Rework partition offset/size rounding logic, removing it from
getuint64() which struggled to know what to do. Add it to the
places rounding is actually wanted by creating and using
alignpartition() which takes parameters to determine what is rounded,
to what boundaries and in what direction.

Simplifies and clarifies logic.

Various minor verbiage tweaks and shuffling of output under
expert mode to improve output during alignments.

Been in snaps for a couple of weeks.

much back & forth with and ok otto@



CVS: cvs.openbsd.org: src

2018-07-01 Thread Todd Mortimer
CVSROOT:/cvs
Module name:src
Changes by: morti...@cvs.openbsd.org2018/07/01 06:13:50

Modified files:
sys/arch/amd64/include: asm.h 

Log message:
Add retguard asm macros.
ok guenther@



CVS: cvs.openbsd.org: src

2018-07-01 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/07/01 06:12:14

Modified files:
sys/dev/pci/drm: drm_linux.c 

Log message:
Use fnew() to allocate a struct file.  Simplifies the code.

ok mpi@, visa@



CVS: cvs.openbsd.org: src

2018-07-01 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/07/01 05:37:11

Modified files:
sys/dev/acpi   : dwiic_acpi.c sdhc_acpi.c 

Log message:
Remove semicolon before printing the AML name.

spotted by deraadt@



CVS: cvs.openbsd.org: src

2018-07-01 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/07/01 04:29:30

Modified files:
sys/dev/acpi   : files.acpi 
Added files:
sys/dev/acpi   : com_acpi.c 

Log message:
Allow com(4) to attach to acpi(4).  For now we will only use this on arm64
where this is needed to support serial console in ACPI mode.

ok mlarkin@



CVS: cvs.openbsd.org: src

2018-07-01 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/07/01 04:27:34

Modified files:
sys/dev/acpi   : acpi.c acpivar.h 

Log message:
Add support for _DSD Device Properties.

ok mlarkin@



CVS: cvs.openbsd.org: src

2018-07-01 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/07/01 04:26:17

Modified files:
sys/dev/acpi   : acpireg.h 

Log message:
Add definitions for SPCR tables.

ok mlarkin@



CVS: cvs.openbsd.org: src

2018-07-01 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2018/07/01 02:53:03

Modified files:
sbin/route : route.c 
usr.sbin/route6d: route6d.c 
sys/net: rtsock.c route.h 

Log message:
Retire support for unused RTM_LOCK messages, it's redundant w/ RTM_CHANGE.

ok tb@, sthen@



CVS: cvs.openbsd.org: src

2018-07-01 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2018/07/01 02:51:50

Modified files:
usr.sbin/usbdevs: usbdevs.8 usbdevs.c 

Log message:
Tweak output to behave more like pcidump(8):

- Display port info with -vv or more
- Always print the corresponding USB controller

ok sthen@, deraadt@



CVS: cvs.openbsd.org: src

2018-07-01 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2018/07/01 02:24:21

Modified files:
usr.sbin/pkg_add/OpenBSD/Dependencies: SolverBase.pm 

Log message:
ahah. complex tag changes show I need to use the same algorithm as for libs