Re: svn commit: r306319 - head/sys/i386/i386

2016-09-25 Thread Bruce Evans
On Sun, 25 Sep 2016, Colin Percival wrote: On 09/25/16 11:39, Bruce Evans wrote: Author: bde Date: Sun Sep 25 18:39:24 2016 New Revision: 306319 URL: https://svnweb.freebsd.org/changeset/base/306319 Log: Minor fixes for 160-bit disassembly: I thought the x86 architecture was limited to 120

svn commit: r306333 - head/usr.bin/mkimg

2016-09-25 Thread Marcel Moolenaar
Author: marcel Date: Mon Sep 26 04:14:00 2016 New Revision: 306333 URL: https://svnweb.freebsd.org/changeset/base/306333 Log: Portability changes: 1. macOS nor Linux have MAP_NOCORE nor MAP_NOSYNC. Define as 0. 2. macOS doesn't have SEEK_DATA nor SEEK_HOLE. Define as -1 so that lseek

Re: svn commit: r306330 - head/usr.bin/mkimg

2016-09-25 Thread Marcel Moolenaar
On September 25, 2016 at 7:13:21 PM, Adrian Chadd (adrian.ch...@gmail.com) wrote: Hi,  Yeah, for portable-y stuff, I'd recommend:  #include "endian.h" -> #ifdef __FreeBSD__ #include   #elif __Apple__ etc, etc.  That way we don't duplicate contents.  Same with sys/queue.h, etc.  We may even

svn commit: r306332 - head/lib/libc/db/btree

2016-09-25 Thread Pedro F. Giffuni
Author: pfg Date: Mon Sep 26 02:29:28 2016 New Revision: 306332 URL: https://svnweb.freebsd.org/changeset/base/306332 Log: btree(3): don't shortcut closing if the metadata is dirty. Obtained from:NetBSD (from krb5 tree) MFC after:3 weeks Modified: head/lib/libc/db/btree/

Re: svn commit: r306330 - head/usr.bin/mkimg

2016-09-25 Thread Adrian Chadd
Hi, Yeah, for portable-y stuff, I'd recommend: #include "endian.h" -> #ifdef __FreeBSD__ #include #elif __Apple__ etc, etc. That way we don't duplicate contents. Same with sys/queue.h, etc. -adrian On 25 September 2016 at 18:06, Marcel Moolenaar wrote: > Author: marcel > Date: Mon Sep 26

svn commit: r306331 - head/sys/dev/ath/ath_hal

2016-09-25 Thread Adrian Chadd
Author: adrian Date: Mon Sep 26 02:05:02 2016 New Revision: 306331 URL: https://svnweb.freebsd.org/changeset/base/306331 Log: [ath_hal] add a new regdomain flag - I think this means "yes, you can use this NIC in channel 144 if you're in FCC6." I have to go figure out more details about th

svn commit: r306330 - head/usr.bin/mkimg

2016-09-25 Thread Marcel Moolenaar
Author: marcel Date: Mon Sep 26 01:06:32 2016 New Revision: 306330 URL: https://svnweb.freebsd.org/changeset/base/306330 Log: Avoid depending on the header for le*enc and be*enc. Not only is the header unportable, the encoding/decoding functions are as well. Instead, duplicate the handful

svn commit: r306329 - head/usr.bin/mkimg

2016-09-25 Thread Marcel Moolenaar
Author: marcel Date: Mon Sep 26 00:41:08 2016 New Revision: 306329 URL: https://svnweb.freebsd.org/changeset/base/306329 Log: Eliminate the use of EDOOFUS. The error code was used to signal programming errors, but is really a poor substitute for assert. And less portable as well. Modified:

Re: svn commit: r306325 - head/usr.bin/mkimg

2016-09-25 Thread Conrad Meyer
On Sun, Sep 25, 2016 at 5:09 PM, Marcel Moolenaar wrote: > On September 25, 2016 at 4:52:17 PM, Conrad Meyer (c...@freebsd.org) wrote: > > > What's the motivation for this? This seems worse. > > Portability. We need mkimg to compile on other OSes besides FreeBSD. In > particular, macOS and Linux

Re: svn commit: r306312 - head

2016-09-25 Thread Marcel Moolenaar
On September 25, 2016 at 10:41:32 AM, Andrey V. Elsukov (bu7c...@yandex.ru) wrote: On 25.09.16 19:39, Marcel Moolenaar wrote:  > +20160924:  > + Relocatable object files with the extension of .So have been renamed  > + to use an extension of .pico instead. The purpose of this change is

Re: svn commit: r306325 - head/usr.bin/mkimg

2016-09-25 Thread Marcel Moolenaar
On September 25, 2016 at 4:52:17 PM, Conrad Meyer (c...@freebsd.org) wrote: What's the motivation for this? This seems worse.  Portability.  We need mkimg to compile on other OSes besides FreeBSD.  In particular, macOS and Linux.  It’s ok that constructors are not 100% portable… signature.

Re: svn commit: r306325 - head/usr.bin/mkimg

2016-09-25 Thread Conrad Meyer
What's the motivation for this? This seems worse. Best, Conrad On Sun, Sep 25, 2016 at 3:57 PM, Marcel Moolenaar wrote: > Author: marcel > Date: Sun Sep 25 22:57:59 2016 > New Revision: 306325 > URL: https://svnweb.freebsd.org/changeset/base/306325 > > Log: > Replace the use of linker sets wi

svn commit: r306328 - head/sys/arm/nvidia

2016-09-25 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sun Sep 25 23:48:15 2016 New Revision: 306328 URL: https://svnweb.freebsd.org/changeset/base/306328 Log: Update PCI driver to match new dts tree In new dts tree phy is a property of port, not the controller node, also the name was changed from "pcie" to "pcie-0" Modif

svn commit: r306327 - head/sys/arm/nvidia

2016-09-25 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sun Sep 25 23:45:49 2016 New Revision: 306327 URL: https://svnweb.freebsd.org/changeset/base/306327 Log: Update AHCI driver to match new dts tree phy name parameter was changed from "sata-phy" to "sata-0" in new dts tree introduced in r306197 Modified: head/sys/arm/

svn commit: r306325 - head/usr.bin/mkimg

2016-09-25 Thread Marcel Moolenaar
Author: marcel Date: Sun Sep 25 22:57:59 2016 New Revision: 306325 URL: https://svnweb.freebsd.org/changeset/base/306325 Log: Replace the use of linker sets with constructors for both the formats and schemes. Formats and schemes are registered at runtime now, rather than collected at link t

svn commit: r306324 - head/sys/dev/ath/ath_hal

2016-09-25 Thread Adrian Chadd
Author: adrian Date: Sun Sep 25 22:17:46 2016 New Revision: 306324 URL: https://svnweb.freebsd.org/changeset/base/306324 Log: [ath_hal] add a comment for the channel 144 regdomain flag. I'm .. still trying to figure out what's going on. Modified: head/sys/dev/ath/ath_hal/ah_regdomain.c

svn commit: r306323 - in head/sys/dev/ath/ath_hal: . ah_regdomain

2016-09-25 Thread Adrian Chadd
Author: adrian Date: Sun Sep 25 22:07:41 2016 New Revision: 306323 URL: https://svnweb.freebsd.org/changeset/base/306323 Log: [ath_hal] Add FCC6_FCCA regulatory domain (0x0014). Tested: * TP-Link N900, AR9380, regdomain 0x0014 (FCC6_FCCA). Modified: head/sys/dev/ath/ath_hal/ah_inter

Re: svn commit: r306319 - head/sys/i386/i386

2016-09-25 Thread Colin Percival
On 09/25/16 11:39, Bruce Evans wrote: > Author: bde > Date: Sun Sep 25 18:39:24 2016 > New Revision: 306319 > URL: https://svnweb.freebsd.org/changeset/base/306319 > > Log: > Minor fixes for 160-bit disassembly: I thought the x86 architecture was limited to 120-bit instructions? -- Colin Perc

svn commit: r306320 - head/sys/dev/usb/wlan

2016-09-25 Thread Andriy Voskoboinyk
Author: avos Date: Sun Sep 25 19:13:07 2016 New Revision: 306320 URL: https://svnweb.freebsd.org/changeset/base/306320 Log: rsu: do not restart calibration task when going out of RUN state. Clear 'sc_calibrating' flag and stop calibration task when interface is not associated; this fixes

svn commit: r306319 - head/sys/i386/i386

2016-09-25 Thread Bruce Evans
Author: bde Date: Sun Sep 25 18:39:24 2016 New Revision: 306319 URL: https://svnweb.freebsd.org/changeset/base/306319 Log: Minor fixes for 160-bit disassembly: (1) Print the default segment %ss before adresses relative to %bp. This is too cluttered for me, but so is printing some othe

svn commit: r306318 - head/sys/i386/i386

2016-09-25 Thread Tijl Coosemans
Author: tijl Date: Sun Sep 25 18:29:02 2016 New Revision: 306318 URL: https://svnweb.freebsd.org/changeset/base/306318 Log: MFamd64: r266901 Allocate a zeroed LDT. Failing to do this might result in the LDT appearing to run out of free descriptors because of random junk in the descri

Re: svn commit: r306312 - head

2016-09-25 Thread Andrey V. Elsukov
On 25.09.16 19:39, Marcel Moolenaar wrote: > +20160924: > + Relocatable object files with the extension of .So have been renamed > + to use an extension of .pico instead. The purpose of this change is > + to avoid a name clash with shared libraries on case-insensitive file > + syst

svn commit: r306313 - head/share/mk

2016-09-25 Thread Marcel Moolenaar
Author: marcel Date: Sun Sep 25 16:50:31 2016 New Revision: 306313 URL: https://svnweb.freebsd.org/changeset/base/306313 Log: Document the ".pico" extension for object files. Suggested by: emaste@ Modified: head/share/mk/bsd.README Modified: head/share/mk/bsd.README

svn commit: r306312 - head

2016-09-25 Thread Marcel Moolenaar
Author: marcel Date: Sun Sep 25 16:39:18 2016 New Revision: 306312 URL: https://svnweb.freebsd.org/changeset/base/306312 Log: Relocatable object files are renamed from *.So to *.pico Reminder by: imp@ Modified: head/UPDATING Modified: head/UPDATING =

svn commit: r306311 - in head: share/man/man4 sys/ddb sys/i386/i386 sys/i386/include

2016-09-25 Thread Bruce Evans
Author: bde Date: Sun Sep 25 16:30:29 2016 New Revision: 306311 URL: https://svnweb.freebsd.org/changeset/base/306311 Log: Determine the operand/address size of %cs in a new function db_segsize(). Use db_segsize() to set the default operand/address size for disassembling. Allow overrid

svn commit: r306310 - in head/sys: amd64/amd64 i386/i386

2016-09-25 Thread Bruce Evans
Author: bde Date: Sun Sep 25 14:56:24 2016 New Revision: 306310 URL: https://svnweb.freebsd.org/changeset/base/306310 Log: Fix vm86 initialization, part 3 of 2 and a half. (Actually, just fix early printfs and debugging of vm86 initialization and some other early initialization in some case

svn commit: r306307 - head/sys/arm/conf

2016-09-25 Thread Andrew Turner
Author: andrew Date: Sun Sep 25 07:48:08 2016 New Revision: 306307 URL: https://svnweb.freebsd.org/changeset/base/306307 Log: Add the start of a GENERIC armv6 kernel config. This supports the Allwinner SMP SoCs and qemu virt. Further SoCs can be supported if they support the PLATFORM, PLATFO