svn commit: r349714 - head/sys/dev/proto

2019-07-03 Thread Marcel Moolenaar
3 22:41:54 2019(r349713) +++ head/sys/dev/proto/proto.h Thu Jul 4 02:51:34 2019(r349714) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2014, 2015 Marcel Moolenaar + * Copyright (c) 2014, 2015, 2019 Marcel Moolenaar * All rights reserved. * * Redistribution and use in source and

svn commit: r349551 - in head/tools/bus_space: Python examples

2019-06-29 Thread Marcel Moolenaar
Author: marcel Date: Sun Jun 30 02:29:12 2019 New Revision: 349551 URL: https://svnweb.freebsd.org/changeset/base/349551 Log: Add support for Python 3 and make it the default. Python 2.7 will retire on Januari 1, 2020. Modified: head/tools/bus_space/Python/Makefile head/tools/bus_space

svn commit: r344957 - head/usr.bin/mkimg/tests

2019-03-08 Thread Marcel Moolenaar
Author: marcel Date: Sat Mar 9 02:03:07 2019 New Revision: 344957 URL: https://svnweb.freebsd.org/changeset/base/344957 Log: Don't compress and uuencode the "hexdump -C" output files. Just save them with the $FreeBSD$ tag prepended. Changes to these files are now a lot easier to comprehen

svn commit: r344826 - in head/usr.bin/mkimg: . tests

2019-03-05 Thread Marcel Moolenaar
Author: marcel Date: Tue Mar 5 22:55:33 2019 New Revision: 344826 URL: https://svnweb.freebsd.org/changeset/base/344826 Log: Round # partitions up to fill the last GPT table sector Set the number of partitions entries in the GPT header to a multiple of the number of entries that fit in a

svn commit: r344790 - head/sys/geom/part

2019-03-04 Thread Marcel Moolenaar
Author: marcel Date: Tue Mar 5 04:15:34 2019 New Revision: 344790 URL: https://svnweb.freebsd.org/changeset/base/344790 Log: Revert revision 254095 In revision 254095, gpt_entries is not set to match the on-disk hdr_entries, but rather is computed based on available space. There are 2

Re: svn commit: r326045 - head/sys/powerpc/booke

2017-11-20 Thread Marcel Moolenaar
king this on the P5020 (e5500 core) yields a 300% throughput > improvement on dtsec(4) (115Mbit/s -> 460Mbit/s) measured with iperf. > > Benchmarked on the P1022 (e500v2 core, 16 TLB1 entries) yields a 50% > throughput improvement on tsec(4) (~93Mbit/s -> 165Mbit/s) meas

svn commit: r324369 - head/sbin/geom/class/part

2017-10-06 Thread Marcel Moolenaar
Author: marcel Date: Fri Oct 6 16:38:00 2017 New Revision: 324369 URL: https://svnweb.freebsd.org/changeset/base/324369 Log: Fix alignment of 'last' in autofill. 'last' is the sector number of the last usable sector. Sector numbers start with 0. As such, 'last' is always 1 less than th

Re: svn commit: r319295 - head/usr.bin/mkimg/tests

2017-06-01 Thread Marcel Moolenaar
> On Jun 1, 2017, at 8:32 AM, Alan Somers wrote: > > On Thu, Jun 1, 2017 at 9:11 AM, Marcel Moolenaar wrote: >> >> On May 31, 2017, at 11:06 PM, Ngie Cooper (yaneurabeya) >> wrote: >> >> >> On May 31, 2017, at 10:03 PM, Brooks Davis wrote: &g

Re: svn commit: r319295 - head/usr.bin/mkimg/tests

2017-06-01 Thread Marcel Moolenaar
it as spammy and a tail of garbage. It’s just a knee-jerk reaction to seeing something that isn’t understood, I think. As such, there’s no reason to change — in fact, changing would be bloating the repo. -- Marcel Moolenaar mar...@xcllnt.net ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

svn commit: r309787 - head/sys/netpfil/pf

2016-12-09 Thread Marcel Moolenaar
Author: marcel Date: Sat Dec 10 03:31:38 2016 New Revision: 309787 URL: https://svnweb.freebsd.org/changeset/base/309787 Log: Improve upon r309394 Instead of taking an extra reference to deal with pfsync_q_ins() and pfsync_q_del() taken and dropping a reference (resp,) make it optional

Re: svn commit: r309394 - head/sys/netpfil/pf

2016-12-09 Thread Marcel Moolenaar
> On Dec 8, 2016, at 2:48 PM, Gleb Smirnoff <mailto:gleb...@freebsd.org>> wrote: > > Marcel, > > On Wed, Dec 07, 2016 at 05:06:08PM -0800, Marcel Moolenaar wrote: > M> > thanks for the fixes. While the problem with the first chunk > M> > in pfsync

Re: svn commit: r309394 - head/sys/netpfil/pf

2016-12-07 Thread Marcel Moolenaar
ce count drops to 0 and the state is deleted (read: memory freed). But the same state is subsequently added to the PFSYNC_S_DEL queue — i.e. after the memory was freed. HTH, -- Marcel Moolenaar mar...@xcllnt.net <mailto:mar...@xcllnt.net> ___ svn-

Re: svn commit: r309394 - head/sys/netpfil/pf

2016-12-07 Thread Marcel Moolenaar
ce count drops to 0 and the state is deleted (read: memory freed). But the same state is subsequently added to the PFSYNC_S_DEL queue — i.e. after the memory was freed. HTH, -- Marcel Moolenaar mar...@xcllnt.net <mailto:mar...@xcllnt.net> ___ svn-

svn commit: r309394 - head/sys/netpfil/pf

2016-12-01 Thread Marcel Moolenaar
Author: marcel Date: Fri Dec 2 06:15:59 2016 New Revision: 309394 URL: https://svnweb.freebsd.org/changeset/base/309394 Log: Fix use-after-free bugs in pfsync(4) Use after free happens for state that is deleted. The reference count is what prevents the state from being freed. When the

svn commit: r308344 - head/usr.sbin/makefs

2016-11-05 Thread Marcel Moolenaar
Author: marcel Date: Sat Nov 5 16:23:33 2016 New Revision: 308344 URL: https://svnweb.freebsd.org/changeset/base/308344 Log: Assign a random number to di_gen (for FFS), instead of extracting it from struct stat. We don't necessarily have permissions to see the generation number and the hos

svn commit: r307967 - head/usr.sbin/config

2016-10-26 Thread Marcel Moolenaar
Author: marcel Date: Wed Oct 26 15:58:41 2016 New Revision: 307967 URL: https://svnweb.freebsd.org/changeset/base/307967 Log: Allow config to be compiled from another source directory, such as one for building tools. This boils down to replacing ${.CURDIR} with ${SRCDIR}, where the latter is

svn commit: r307927 - in head/usr.sbin/makefs: . cd9660 ffs

2016-10-25 Thread Marcel Moolenaar
Author: marcel Date: Tue Oct 25 16:29:15 2016 New Revision: 307927 URL: https://svnweb.freebsd.org/changeset/base/307927 Log: Be more precise when including headers so that we're less likely to depend on namespace pollution and as such become more portable. This means including headers like

svn commit: r307923 - in head/usr.sbin/makefs: . cd9660 ffs

2016-10-25 Thread Marcel Moolenaar
Author: marcel Date: Tue Oct 25 16:21:38 2016 New Revision: 307923 URL: https://svnweb.freebsd.org/changeset/base/307923 Log: Allow building makefs(8) from another Makefile (such as one in a seperate directory hierarchy used to build tools). This boils down to replacing the use of ${.CURDIR}

svn commit: r307874 - head/sys/ufs/ffs

2016-10-24 Thread Marcel Moolenaar
Author: marcel Date: Mon Oct 24 18:12:57 2016 New Revision: 307874 URL: https://svnweb.freebsd.org/changeset/base/307874 Log: Include explicitly instead of depending on that header being included by . When compiled as part of makefs(8) and on macOS or Linux, is not our own. Modified:

svn commit: r307873 - head/sys/kern

2016-10-24 Thread Marcel Moolenaar
Author: marcel Date: Mon Oct 24 18:03:04 2016 New Revision: 307873 URL: https://svnweb.freebsd.org/changeset/base/307873 Log: Include instead of when compiled as part of libsbuf. The former is the standard header, and allows us to compile libsbuf on macOS/linux. Modified: head/sys/kern/

svn commit: r307872 - head/share/mk

2016-10-24 Thread Marcel Moolenaar
Author: marcel Date: Mon Oct 24 17:59:25 2016 New Revision: 307872 URL: https://svnweb.freebsd.org/changeset/base/307872 Log: Detect clang on macOS. The version string is slightly different. Modified: head/share/mk/bsd.compiler.mk Modified: head/share/mk/bsd.compiler.mk =

svn commit: r307871 - head/lib/libnetbsd

2016-10-24 Thread Marcel Moolenaar
Author: marcel Date: Mon Oct 24 17:57:46 2016 New Revision: 307871 URL: https://svnweb.freebsd.org/changeset/base/307871 Log: Include "util.h", not . The header is in the same directory as the C file. There may be a on the host when compiling on macOS or Linux, causing conflicts. Modified:

svn commit: r307870 - head/lib/libnetbsd/sys

2016-10-24 Thread Marcel Moolenaar
Author: marcel Date: Mon Oct 24 17:56:08 2016 New Revision: 307870 URL: https://svnweb.freebsd.org/changeset/base/307870 Log: When compiling on macOS or Linux, __dead can be defined already. Conditionally define __dead. Modified: head/lib/libnetbsd/sys/cdefs.h Modified: head/lib/libnetbsd/

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

2016-10-17 Thread Marcel Moolenaar
On October 17, 2016 at 8:34:11 PM, Ngie Cooper (yaneurab...@gmail.com) wrote: > On Oct 17, 2016, at 18:55, Marcel Moolenaar wrote:  > *snip* > +CFLAGS+=-I${SRCTOP}/sys/sys/disk  Isn't it a better app idea to maintain the disk/ namespace for includes?  Thanks!  You mean, add -I

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

2016-10-17 Thread Marcel Moolenaar
3) +++ head/usr.bin/mkimg/pc98.c Tue Oct 18 01:55:07 2016(r307544) @@ -33,7 +33,7 @@ __FBSDID("$FreeBSD$"); #include #include -#include +#include #include "endian.h" #include "image.h" Added: head/usr.bin/mkimg/uuid.c ==

svn commit: r307543 - head/share/mk

2016-10-17 Thread Marcel Moolenaar
Author: marcel Date: Tue Oct 18 01:42:42 2016 New Revision: 307543 URL: https://svnweb.freebsd.org/changeset/base/307543 Log: Add LORDER, TSORT and TSORTFLAGS variables and replace the hardcoded utility names and tsort flags. Modified: head/share/mk/bsd.lib.mk head/share/mk/sys.mk Modifi

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

2016-10-15 Thread Marcel Moolenaar
Author: marcel Date: Sun Oct 16 02:55:52 2016 New Revision: 307387 URL: https://svnweb.freebsd.org/changeset/base/307387 Log: Switch to using the portable partition scheme headers. Modified: head/usr.bin/mkimg/Makefile head/usr.bin/mkimg/apm.c head/usr.bin/mkimg/bsd.c head/usr.bin/mkimg

svn commit: r307386 - in head: etc/mtree include sys/sys sys/sys/disk

2016-10-15 Thread Marcel Moolenaar
(r307386) @@ -1,69 +1,5 @@ /*- - * Copyright (c) 2007 Marcel Moolenaar - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source

svn commit: r307385 - in head: etc/mtree include sys/sys sys/sys/disk

2016-10-15 Thread Marcel Moolenaar
, copy of r306810, head/sys/sys/apm.h) @@ -0,0 +1,69 @@ +/*- + * Copyright (c) 2007 Marcel Moolenaar + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1

Re: svn commit: r306811 - in head: etc/mtree include sys/sys sys/sys/disk

2016-10-07 Thread Marcel Moolenaar
On October 7, 2016 at 5:13:10 PM, Julian Elischer (jul...@freebsd.org) wrote: On 7/10/2016 4:29 PM, Marcel Moolenaar wrote: On October 7, 2016 at 4:18:31 PM, Julian Elischer (jul...@freebsd.org) wrote: On 7/10/2016 4:12 PM, Marcel Moolenaar wrote: On October 7, 2016 at 3:18:10 PM, John Baldwin (j

Re: svn commit: r306811 - in head: etc/mtree include sys/sys sys/sys/disk

2016-10-07 Thread Marcel Moolenaar
On October 7, 2016 at 4:18:31 PM, Julian Elischer (jul...@freebsd.org) wrote: On 7/10/2016 4:12 PM, Marcel Moolenaar wrote: On October 7, 2016 at 3:18:10 PM, John Baldwin (j...@freebsd.org) wrote: On Friday, October 07, 2016 01:16:59 PM Marcel Moolenaar wrote:  > On October 7, 2016 at 11:02:44

Re: svn commit: r306811 - in head: etc/mtree include sys/sys sys/sys/disk

2016-10-07 Thread Marcel Moolenaar
On October 7, 2016 at 3:18:10 PM, John Baldwin (j...@freebsd.org) wrote: On Friday, October 07, 2016 01:16:59 PM Marcel Moolenaar wrote:  > On October 7, 2016 at 11:02:44 AM, John Baldwin (j...@freebsd.org) wrote:  > On Friday, October 07, 2016 03:42:21 PM Marcel Moolenaar wrote:  &

Re: svn commit: r306811 - in head: etc/mtree include sys/sys sys/sys/disk

2016-10-07 Thread Marcel Moolenaar
On October 7, 2016 at 11:02:44 AM, John Baldwin (j...@freebsd.org) wrote: On Friday, October 07, 2016 03:42:21 PM Marcel Moolenaar wrote:  *snip* > Author: marcel  > Date: Fri Oct 7 15:42:20 2016  > New Revision: 306811  > URL: https://svnweb.freebsd.org/changeset/base/306811  >  &

svn commit: r306811 - in head: etc/mtree include sys/sys sys/sys/disk

2016-10-07 Thread Marcel Moolenaar
NG, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, O

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

2016-10-03 Thread Marcel Moolenaar
On October 3, 2016 at 10:36:27 AM, Conrad Meyer (c...@freebsd.org) wrote: On Sun, Oct 2, 2016 at 6:46 PM, Marcel Moolenaar wrote:  > Author: marcel  > Date: Mon Oct 3 01:46:47 2016  > New Revision: 306620  > URL: https://svnweb.freebsd.org/changeset/base/306620  >  > Log:  >

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

2016-10-03 Thread Marcel Moolenaar
On October 2, 2016 at 11:52:33 PM, Warner Losh (i...@bsdimp.com) wrote: Wouldn't it be better to say at the top  #ifndef OFF_MAX  #define OFF_MAX INT64_MAX  #endif  Not sure. The max is just for input checking. We do not even try to deal with an lseek(2) implementation that doesn’t take a 64-

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

2016-10-02 Thread Marcel Moolenaar
Author: marcel Date: Mon Oct 3 04:00:30 2016 New Revision: 306622 URL: https://svnweb.freebsd.org/changeset/base/306622 Log: Replace OFF_MAX with INT64_MAX. The former is defined on Linux. Modified: head/usr.bin/mkimg/mkimg.c Modified: head/usr.bin/mkimg/mkimg.c

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

2016-10-02 Thread Marcel Moolenaar
Author: marcel Date: Mon Oct 3 02:37:28 2016 New Revision: 306621 URL: https://svnweb.freebsd.org/changeset/base/306621 Log: Prefer over . While here remove redundant inclusion of . Move the inclusion of the disk partitioning headers out of order and inbetween standard headers and loc

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

2016-10-02 Thread Marcel Moolenaar
Author: marcel Date: Mon Oct 3 01:46:47 2016 New Revision: 306620 URL: https://svnweb.freebsd.org/changeset/base/306620 Log: Replace STAILQ with TAILQ. TAILQs are portable enough that they can be used on both macOS and Linux. STAILQs are not. In particular, STAILQ_LAST does not next on Linu

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: 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: 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 th

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.

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: 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: r306300 - head/contrib/ofed/usr.lib/libsdp

2016-09-24 Thread Marcel Moolenaar
Author: marcel Date: Sat Sep 24 17:50:11 2016 New Revision: 306300 URL: https://svnweb.freebsd.org/changeset/base/306300 Log: When MAKEOBJDIRPREFIX points to a case-insensitive file system, the build can break when different source files create the same target files (case-insensitivity speak

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

2016-09-24 Thread Marcel Moolenaar
Author: marcel Date: Sat Sep 24 17:29:27 2016 New Revision: 306299 URL: https://svnweb.freebsd.org/changeset/base/306299 Log: Update local variable 'block' after calling capacity_resize(), otherwise format_resize(), which is called right after, isn't getting the current/actual image size. Ra

svn commit: r306297 - in head: gnu/lib/libgcc gnu/lib/libgcov lib/libedit lib/libprocstat lib/libthr/support share/mk sys/conf usr.sbin/bsnmpd/modules/snmp_hostres

2016-09-24 Thread Marcel Moolenaar
Author: marcel Date: Sat Sep 24 15:11:27 2016 New Revision: 306297 URL: https://svnweb.freebsd.org/changeset/base/306297 Log: When MAKEOBJDIRPREFIX points to a case-insensitive file system, the build can break when different source files create the same target files (case-insensitivity speak

svn commit: r305855 - head/lib/libc/stdlib

2016-09-15 Thread Marcel Moolenaar
Author: marcel Date: Fri Sep 16 03:04:48 2016 New Revision: 305855 URL: https://svnweb.freebsd.org/changeset/base/305855 Log: When MAKEOBJDIRPREFIX points to a case-insensitive file system, the build can break when different source files create the same object files (case-insensitivity speak

svn commit: r296103 - head/sys/amd64/vmm

2016-02-26 Thread Marcel Moolenaar
Author: marcel Date: Fri Feb 26 16:18:47 2016 New Revision: 296103 URL: https://svnweb.freebsd.org/changeset/base/296103 Log: Bump VM_MAX_MEMSEGS from 2 to 3 to match the number of VM segment identifiers present in vmmapi.h. In particular, it's now possible to create a VM_FRAMEBUFFER segment

svn commit: r296102 - head/usr.sbin/bhyveload

2016-02-26 Thread Marcel Moolenaar
Author: marcel Date: Fri Feb 26 16:15:02 2016 New Revision: 296102 URL: https://svnweb.freebsd.org/changeset/base/296102 Log: Add option -C to have the guest memory included in core files. This aids in debugging OS loaders. Modified: head/usr.sbin/bhyveload/bhyveload.8 head/usr.sbin/bhyve

svn commit: r296101 - head/usr.sbin/bhyveload

2016-02-26 Thread Marcel Moolenaar
Author: marcel Date: Fri Feb 26 16:12:20 2016 New Revision: 296101 URL: https://svnweb.freebsd.org/changeset/base/296101 Log: Support version 4 of the userboot structure by implementing the vm_set_register() and vm_set_desc() callbacks. Modified: head/usr.sbin/bhyveload/bhyveload.c Modifie

svn commit: r296099 - head/sys/boot/userboot

2016-02-26 Thread Marcel Moolenaar
Author: marcel Date: Fri Feb 26 16:00:16 2016 New Revision: 296099 URL: https://svnweb.freebsd.org/changeset/base/296099 Log: Add vm_set_register() and vm_set_desc() callbacks. These callbacks translate directly into calls to their namesake API functions in libvmmapi. It is an improveme

svn commit: r296097 - head/sys/boot/userboot/userboot

2016-02-26 Thread Marcel Moolenaar
Author: marcel Date: Fri Feb 26 15:52:55 2016 New Revision: 296097 URL: https://svnweb.freebsd.org/changeset/base/296097 Log: Check that the userboot version is at least 3, rather than 3 exactly. The structure may be of a newer version and as long as it is backward compatible with 3, we can

svn commit: r289044 - head/lib/libstand

2015-10-08 Thread Marcel Moolenaar
Author: marcel Date: Thu Oct 8 17:59:05 2015 New Revision: 289044 URL: https://svnweb.freebsd.org/changeset/base/289044 Log: If we can't open the file, skip devclose() for the exclusive_file_system case. We never called devopen(), so we know there's nothing to close. Modified: head/lib/lib

svn commit: r289001 - in head: share/examples/bhyve usr.sbin/bhyveload

2015-10-07 Thread Marcel Moolenaar
Author: marcel Date: Thu Oct 8 02:28:22 2015 New Revision: 289001 URL: https://svnweb.freebsd.org/changeset/base/289001 Log: Add option -l for specifying which OS loader to dlopen(3). By default this is /boot/userboot.so. This option allows for the development and use of other OS loaders.

Re: svn commit: r287934 - head/sys/boot/efi/loader

2015-09-24 Thread Marcel Moolenaar
ains and always have it run locally to CPUs in NUMA configurations. -- Marcel Moolenaar mar...@xcllnt.net signature.asc Description: Message signed with OpenPGP using GPGMail

svn commit: r287538 - head/sys/boot/efi/loader/arch/amd64

2015-09-07 Thread Marcel Moolenaar
Author: marcel Date: Mon Sep 7 17:56:49 2015 New Revision: 287538 URL: https://svnweb.freebsd.org/changeset/base/287538 Log: As expected, things aren't as simple as hoped. Consequently, we have no option but to use the smbios information to fill in the blanks. It's a good thing UGA is a pro

svn commit: r287489 - head/sys/boot/efi/loader/arch/amd64

2015-09-05 Thread Marcel Moolenaar
Author: marcel Date: Sat Sep 5 18:24:51 2015 New Revision: 287489 URL: https://svnweb.freebsd.org/changeset/base/287489 Log: Auto-detect the UGA frame buffer and stride on a MacBook. We're striking a delicate balance between exhaustive searching and banking on assumptions. The environment v

svn commit: r287475 - head/sys/boot/efi/loader/arch/amd64

2015-09-04 Thread Marcel Moolenaar
Author: marcel Date: Sat Sep 5 03:27:23 2015 New Revision: 287475 URL: https://svnweb.freebsd.org/changeset/base/287475 Log: My MacBook has UGA only, but we fail to detect any changes in the frame buffer when we flip pixels. Allow the detection to be bypassed by setting the uga_framebuffer

svn commit: r287422 - head/sys/boot/efi/loader/arch/amd64

2015-09-02 Thread Marcel Moolenaar
Author: marcel Date: Thu Sep 3 04:35:17 2015 New Revision: 287422 URL: https://svnweb.freebsd.org/changeset/base/287422 Log: For UGA, the frame buffer address obtained by scanning the PCI BARs does not necessarily correspond to the upper-left most pixel. Scan the frame buffer for which byte

Re: svn commit: r287299 - head/sys/boot/efi/loader/arch/amd64

2015-08-30 Thread Marcel Moolenaar
> On Aug 30, 2015, at 11:27 AM, Rui Paulo wrote: > > On Sun, 2015-08-30 at 01:40 +0000, Marcel Moolenaar wrote: >> Author: marcel >> Date: Sun Aug 30 01:39:59 2015 >> New Revision: 287299 >> URL: https://svnweb.freebsd.org/changeset/base/287299 >> >>

svn commit: r287317 - in head/sys/boot/efi: include loader/arch/amd64

2015-08-30 Thread Marcel Moolenaar
Author: marcel Date: Sun Aug 30 23:58:53 2015 New Revision: 287317 URL: https://svnweb.freebsd.org/changeset/base/287317 Log: Add support for the UGA draw protocol. This includes adding a command called 'uga' to show whether UGA is implemented by the firmware and what the settings are. It al

svn commit: r287299 - head/sys/boot/efi/loader/arch/amd64

2015-08-29 Thread Marcel Moolenaar
Author: marcel Date: Sun Aug 30 01:39:59 2015 New Revision: 287299 URL: https://svnweb.freebsd.org/changeset/base/287299 Log: Add a gop command to help diagnose VT efifb problems. The gop command has the following sub-commands: list- list all possible modes (paged) get

svn commit: r287190 - head/sys/kern

2015-08-26 Thread Marcel Moolenaar
Author: marcel Date: Thu Aug 27 04:25:27 2015 New Revision: 287190 URL: https://svnweb.freebsd.org/changeset/base/287190 Log: An error of -1 from parse_mount() indicates that the specification was invalid. Don't trigger a mount failure (which by default means a panic), but instead just move

svn commit: r287114 - head/contrib/libxo/libxo

2015-08-24 Thread Marcel Moolenaar
Author: marcel Date: Mon Aug 24 17:58:11 2015 New Revision: 287114 URL: https://svnweb.freebsd.org/changeset/base/287114 Log: Fix build for architectures that define wchar_t as an unsigned int. Reported by: bz@ Modified: head/contrib/libxo/libxo/xo_wcwidth.h Modified: head/contrib/libxo

Re: svn commit: r287111 - in head: bin/ls bin/ps contrib/libxo contrib/libxo/bin contrib/libxo/doc contrib/libxo/encoder contrib/libxo/encoder/cbor contrib/libxo/encoder/test contrib/libxo/libxo contr

2015-08-24 Thread Marcel Moolenaar
> On Aug 24, 2015, at 10:07 AM, Bjoern A. Zeeb wrote: > > >> On 24 Aug 2015, at 16:26 , Marcel Moolenaar wrote: >> >> Author: marcel >> Date: Mon Aug 24 16:26:20 2015 >> New Revision: 287111 >> URL: https://svnweb.freebsd.org/changeset/base

svn commit: r287111 - in head: bin/ls bin/ps contrib/libxo contrib/libxo/bin contrib/libxo/doc contrib/libxo/encoder contrib/libxo/encoder/cbor contrib/libxo/encoder/test contrib/libxo/libxo contri...

2015-08-24 Thread Marcel Moolenaar
Author: marcel Date: Mon Aug 24 16:26:20 2015 New Revision: 287111 URL: https://svnweb.freebsd.org/changeset/base/287111 Log: Upgrade libxo to 0.4.5. Local changes incorporated by 0.4.5: r284340 Local changes retained: r276260, r282117 Obtained from:https://github.com/Juniper

svn commit: r286868 - head/sys/amd64/amd64

2015-08-17 Thread Marcel Moolenaar
Author: marcel Date: Tue Aug 18 01:53:41 2015 New Revision: 286868 URL: https://svnweb.freebsd.org/changeset/base/286868 Log: Add 24 more page table pages we allocate on boot-up. 16MB slop is a little tight in and by itself, but severily insufficient when one needs to map a large frame buffe

svn commit: r286867 - in head/sys/dev/vt: . hw/fb

2015-08-17 Thread Marcel Moolenaar
Author: marcel Date: Tue Aug 18 00:47:02 2015 New Revision: 286867 URL: https://svnweb.freebsd.org/changeset/base/286867 Log: Support frame buffers that are larger than the default screen size as defined by VT_FB_DEFAULT_WIDTH and VT_FB_DEFAULT_HEIGHT (at this time 2048x1200). The default is

svn commit: r286809 - head/sys/dev/vt/hw/efifb

2015-08-15 Thread Marcel Moolenaar
Author: marcel Date: Sat Aug 15 16:13:28 2015 New Revision: 286809 URL: https://svnweb.freebsd.org/changeset/base/286809 Log: Improve support for Macs that have a stride not equal to the horizonal resolution (width). In those cases fb_bpp ended up completely wrong -- as in 6 bytes per pixel

svn commit: r286808 - head/sys/dev/vt

2015-08-15 Thread Marcel Moolenaar
Author: marcel Date: Sat Aug 15 15:44:09 2015 New Revision: 286808 URL: https://svnweb.freebsd.org/changeset/base/286808 Log: Improve the VT initialization message: have it say what the resolution is. For text mode this is the number of columns by the number of rows. Include the name of the

svn commit: r286741 - head/sys/dev/md

2015-08-13 Thread Marcel Moolenaar
Author: marcel Date: Thu Aug 13 19:12:55 2015 New Revision: 286741 URL: https://svnweb.freebsd.org/changeset/base/286741 Log: s/as/at/ in previous commit. Pointed out by: jmallett@ Modified: head/sys/dev/md/md.c Modified: head/sys/dev/md/md.c

svn commit: r286727 - in head/sys: conf dev/md

2015-08-13 Thread Marcel Moolenaar
Author: marcel Date: Thu Aug 13 15:16:34 2015 New Revision: 286727 URL: https://svnweb.freebsd.org/changeset/base/286727 Log: Change md(4) to use weak symbols as start, end and size for the embedded root disk. The embedded image is linked into the kernel in the .mfs section. Add rules a

svn commit: r286726 - head/sys/arm/arm

2015-08-13 Thread Marcel Moolenaar
Author: marcel Date: Thu Aug 13 14:53:29 2015 New Revision: 286726 URL: https://svnweb.freebsd.org/changeset/base/286726 Log: Instead of having separate do_sync functions for ARM_ARCH 6 vs. ARM_ARCH >= 7, use the dmb() macro defined in machine/atomic.h Submitted by: Steve Kiernan Revie

svn commit: r286725 - in head/sys/arm: arm include

2015-08-13 Thread Marcel Moolenaar
Author: marcel Date: Thu Aug 13 14:50:11 2015 New Revision: 286725 URL: https://svnweb.freebsd.org/changeset/base/286725 Log: The Broadcom BCM56060 chip has a Cortex-A9R4 core. Submitted by: Steve Kiernan Reviewed by: imp@ Differential Revision:https://reviews.freebsd.org/D335

svn commit: r286723 - head/sys/dev/vt/hw/vga

2015-08-13 Thread Marcel Moolenaar
Author: marcel Date: Thu Aug 13 14:43:11 2015 New Revision: 286723 URL: https://svnweb.freebsd.org/changeset/base/286723 Log: Fix text mode operation. We first map 64KB at 0xA and then determine whether to work in text or graphics mode. When graphics mode, the mapping is precisely

Re: svn commit: r286667 - in head/sys: amd64/amd64 conf dev/vt/hw/efifb dev/vt/hw/vga i386/i386 x86/include x86/x86

2015-08-12 Thread Marcel Moolenaar
> On Aug 12, 2015, at 1:17 PM, Ed Schouten wrote: > > 2015-08-12 22:02 GMT+02:00 Marcel Moolenaar : >> Maybe upgrading to 4.3.30 resolves the issue? > > I just upgraded to 4.3.30 and 5.0.0. Both fail the same way. I've just > attached a screenshot. Will op

Re: svn commit: r286667 - in head/sys: amd64/amd64 conf dev/vt/hw/efifb dev/vt/hw/vga i386/i386 x86/include x86/x86

2015-08-12 Thread Marcel Moolenaar
> On Aug 12, 2015, at 10:37 AM, Ed Schouten wrote: > > Hi Marcel, > > 2015-08-12 17:26 GMT+02:00 Marcel Moolenaar : >> Better support memory mapped console devices, such as VGA and EFI >> frame buffers and memory mapped UARTs. > > This change causes my Free

Re: svn commit: r286667 - in head/sys: amd64/amd64 conf dev/vt/hw/efifb dev/vt/hw/vga i386/i386 x86/include x86/x86

2015-08-12 Thread Marcel Moolenaar
[CC ed] > On Aug 12, 2015, at 10:37 AM, Ed Schouten wrote: > > Hi Marcel, > > 2015-08-12 17:26 GMT+02:00 Marcel Moolenaar : >> Better support memory mapped console devices, such as VGA and EFI >> frame buffers and memory mapped UARTs. > > This change causes

svn commit: r286668 - head/sys/dev/uart

2015-08-12 Thread Marcel Moolenaar
Author: marcel Date: Wed Aug 12 15:48:14 2015 New Revision: 286668 URL: https://svnweb.freebsd.org/changeset/base/286668 Log: Add support for the Broadcom TruManage integrated serial port. PR: 191266 Modified: head/sys/dev/uart/uart_bus_pci.c Modified: head/sys/dev/uart/uart_b

svn commit: r286667 - in head/sys: amd64/amd64 conf dev/vt/hw/efifb dev/vt/hw/vga i386/i386 x86/include x86/x86

2015-08-12 Thread Marcel Moolenaar
); -} +int bus_space_map(bus_space_tag_t tag, bus_addr_t addr, bus_size_t size, +int flags, bus_space_handle_t *bshp); /* * Unmap a region of device bus space. */ -static __inline void bus_space_unmap(bus_space_tag_t t, bus_space_handle_t bsh, - bus_size_t size); - -static __inline void -bus_space_unmap

svn commit: r286653 - head/sys/dev/uart

2015-08-11 Thread Marcel Moolenaar
Author: marcel Date: Wed Aug 12 04:03:04 2015 New Revision: 286653 URL: https://svnweb.freebsd.org/changeset/base/286653 Log: Use bus_alloc_resource_any(), rather than bus_alloc_resource() with start 0 and end ~0. This avoids confusion WRT to what the value of length can or should be. Modif

svn commit: r286439 - head/share/man/man4

2015-08-07 Thread Marcel Moolenaar
Author: marcel Date: Sat Aug 8 04:59:27 2015 New Revision: 286439 URL: https://svnweb.freebsd.org/changeset/base/286439 Log: Document the application interface. Modified: head/share/man/man4/proto.4 Modified: head/share/man/man4/proto.4 ==

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

2015-08-07 Thread Marcel Moolenaar
Author: marcel Date: Fri Aug 7 18:40:44 2015 New Revision: 286419 URL: https://svnweb.freebsd.org/changeset/base/286419 Log: Fix typo introduced in previous commit. Pointed out by: Nikolai Lifanov Modified: head/usr.bin/mkimg/mkimg.1 Modified: head/usr.bin/mkimg/mkimg.1 ==

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

2015-08-07 Thread Marcel Moolenaar
Author: marcel Date: Fri Aug 7 17:22:37 2015 New Revision: 286417 URL: https://svnweb.freebsd.org/changeset/base/286417 Log: o Fix a typo. o Describe the file formats mkimg can create. Modified: head/usr.bin/mkimg/mkimg.1 Modified: head/usr.bin/mkimg/mkimg.1

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

2015-08-06 Thread Marcel Moolenaar
> On Aug 6, 2015, at 9:31 PM, Glen Barber wrote: > > On Fri, Aug 07, 2015 at 04:27:52AM +0000, Marcel Moolenaar wrote: >> Author: marcel >> Date: Fri Aug 7 04:27:51 2015 >> New Revision: 286395 >> URL: https://svnweb.freebsd.org/changeset/base/286395 >>

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

2015-08-06 Thread Marcel Moolenaar
Author: marcel Date: Fri Aug 7 04:27:51 2015 New Revision: 286395 URL: https://svnweb.freebsd.org/changeset/base/286395 Log: Fix the dynamic VHD format to work with qemu. The size of the disk is taken to match the geometry and only when the geometry is max'd out, is the actual recorded size

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

2015-08-02 Thread Marcel Moolenaar
Author: marcel Date: Mon Aug 3 01:24:48 2015 New Revision: 286215 URL: https://svnweb.freebsd.org/changeset/base/286215 Log: Make image_copyout_zeroes() an interface function. Modified: head/usr.bin/mkimg/image.c head/usr.bin/mkimg/image.h Modified: head/usr.bin/mkimg/image.c

svn commit: r286212 - head/tools/bus_space/examples

2015-08-02 Thread Marcel Moolenaar
/am79c900_diag.py Sun Aug 2 21:24:03 2015(r286212) @@ -0,0 +1,344 @@ +#!/usr/bin/env python +# +# Copyright (c) 2014 Marcel Moolenaar +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the

svn commit: r286176 - in head/tools/bus_space: . C Python

2015-08-01 Thread Marcel Moolenaar
Author: marcel Date: Sun Aug 2 01:09:30 2015 New Revision: 286176 URL: https://svnweb.freebsd.org/changeset/base/286176 Log: Rename busdma_sync() to busdma_sync_range() and rename the base and size parameters to ofs and len (resp). Add a new busdma_sync() that makes the entire MD coherent.

svn commit: r285927 - head/sys/dev/proto

2015-07-27 Thread Marcel Moolenaar
Author: marcel Date: Tue Jul 28 04:54:05 2015 New Revision: 285927 URL: https://svnweb.freebsd.org/changeset/base/285927 Log: Check the sync operation. Modified: head/sys/dev/proto/proto_busdma.c Modified: head/sys/dev/proto/proto_busdma.c

svn commit: r285903 - in head/tools/bus_space: . C Python

2015-07-26 Thread Marcel Moolenaar
Author: marcel Date: Sun Jul 26 21:37:31 2015 New Revision: 285903 URL: https://svnweb.freebsd.org/changeset/base/285903 Log: Change the dev argument from a full path to just the device identification (e.g. isa:0x3f0 or pci0:2:1:0). In libbus, the device is turned into a path name. For bus_s

svn commit: r285893 - head/tools/bus_space

2015-07-26 Thread Marcel Moolenaar
Author: marcel Date: Sun Jul 26 16:40:51 2015 New Revision: 285893 URL: https://svnweb.freebsd.org/changeset/base/285893 Log: Remove debugging output. We should have tracing instead. Modified: head/tools/bus_space/busdma.c Modified: head/tools/bus_space/busdma.c =

svn commit: r285892 - head/sys/dev/proto

2015-07-26 Thread Marcel Moolenaar
Author: marcel Date: Sun Jul 26 16:39:37 2015 New Revision: 285892 URL: https://svnweb.freebsd.org/changeset/base/285892 Log: o make sure the boundary is a power of 2, when not zero. o don't convert 0 to ~0 just so that we can use MIN. ~0 is not a valid boundary. Introduce BNDRY_MIN

svn commit: r285707 - in head: share/man/man4 sys/dev/proto

2015-07-19 Thread Marcel Moolenaar
,5 +1,5 @@ /*- - * Copyright (c) 2014 Marcel Moolenaar + * Copyright (c) 2014, 2015 Marcel Moolenaar * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -61,6 +61,7 @@ extern char proto_driver_name[]; int proto_add_resource(struct proto_

svn commit: r285099 - head/share/man/man4

2015-07-03 Thread Marcel Moolenaar
014 Marcel Moolenaar +.\" Copyright (c) 2014, 2015 Marcel Moolenaar .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without @@ -25,13 +25,13 @@ .\" .\" $FreeBSD$ .\" -.Dd April 29, 2014 +.Dd July 3, 2015 .Dt PROTO 4

  1   2   3   4   5   6   7   8   9   >