Re: svn commit: r317809 - head/share/man/man7

2017-05-05 Thread Bruce Evans
On Fri, 5 May 2017, Konstantin Belousov wrote: On Fri, May 05, 2017 at 11:39:23PM +1000, Bruce Evans wrote: On Fri, 5 May 2017, Konstantin Belousov wrote: On Fri, May 05, 2017 at 07:13:04PM +1000, Bruce Evans wrote: AFAIU, cheri is somewhat like Intel MPX, but more. I do not know fine

Re: svn commit: r317809 - head/share/man/man7

2017-05-05 Thread Bruce Evans
On Fri, 5 May 2017, Ed Maste wrote: On 5 May 2017 at 10:31, Konstantin Belousov wrote: On Fri, May 05, 2017 at 11:39:23PM +1000, Bruce Evans wrote: Change "size" to "representation" if you want to allow for more than the size changing. I suggest you to negotiate a for

Re: svn commit: r317809 - head/share/man/man7

2017-05-05 Thread Bruce Evans
On Fri, 5 May 2017, Konstantin Belousov wrote: On Fri, May 05, 2017 at 07:13:04PM +1000, Bruce Evans wrote: On Thu, 4 May 2017, Konstantin Belousov wrote: uintptr_t and size_t are are not synonyms for unsigned long on all arches. They only have the same respresentation on 32-bit arches. On 32

Re: svn commit: r317809 - head/share/man/man7

2017-05-05 Thread Bruce Evans
On Thu, 4 May 2017, Konstantin Belousov wrote: Log: Provide introduction for the arch(7) manpage. Start with some words about linear address space and its layout, then explain pointers models and ABIs, providing explanation to the structure of the tables. Reviewed by: emaste, imp 'Futu

Re: svn commit: r303033 - head/share/man/man7

2017-05-04 Thread Bruce Evans
On Thu, 4 May 2017, Ed Maste wrote: On 4 May 2017 at 09:44, Ed Schouten wrote: Hi Ed, 2016-07-19 19:46 GMT+02:00 Ed Maste : +.It arm Ta soft Ta soft, double precision ... +.It mipsTa soft Ta identical to double I was wondering, what's the difference between two ways of ph

Re: svn commit: r317755 - head/sbin/ifconfig

2017-05-03 Thread Bruce Evans
On Wed, 3 May 2017, Alan Somers wrote: On Wed, May 3, 2017 at 2:51 PM, Bruce Evans wrote: On Wed, 3 May 2017, Eric van Gyzen wrote: On 05/03/2017 14:38, Alan Somers wrote: On Wed, May 3, 2017 at 1:34 PM, Warner Losh wrote: On Wed, May 3, 2017 at 1:32 PM, Alan Somers wrote: On Wed

Re: svn commit: r317755 - head/sbin/ifconfig

2017-05-03 Thread Bruce Evans
On Wed, 3 May 2017, Eric van Gyzen wrote: On 05/03/2017 14:38, Alan Somers wrote: On Wed, May 3, 2017 at 1:34 PM, Warner Losh wrote: On Wed, May 3, 2017 at 1:32 PM, Alan Somers wrote: On Wed, May 3, 2017 at 12:16 PM, Ngie Cooper wrote: On May 3, 2017, at 10:21, Alan Somers wrote: Auth

Re: svn commit: r317755 - head/sbin/ifconfig

2017-05-03 Thread Bruce Evans
On Wed, 3 May 2017, Ngie Cooper wrote: On May 3, 2017, at 10:21, Alan Somers wrote: Author: asomers Date: Wed May 3 17:21:01 2017 New Revision: 317755 URL: https://svnweb.freebsd.org/changeset/base/317755 Log: Various Coverity fixes in ifconfig(8) ... * Mark usage() as _Noreturn (13058

Re: svn commit: r317681 - head/share/man/man7

2017-05-03 Thread Bruce Evans
On Wed, 3 May 2017, Konstantin Belousov wrote: On Wed, May 03, 2017 at 04:19:08PM +1000, Bruce Evans wrote: On Tue, 2 May 2017, Konstantin Belousov wrote: +.Pp +.Sy time_t +is always signed, it is 64-bits everywere except on i386 and 32-bit powerpc. Change "is always" to "O

Re: svn commit: r317709 - head/usr.bin/csplit

2017-05-02 Thread Bruce Evans
On Tue, 2 May 2017, Jilles Tjoelker wrote: Log: csplit: Fix check of fputs() return value, making csplit work again. As of r295638, fputs() returns the number of bytes written (if not more than INT_MAX). This broke csplit completely, since csplit assumed only success only for the return val

Re: svn commit: r317708 - head/share/man/man7

2017-05-02 Thread Bruce Evans
On Tue, 2 May 2017, Justin Hibbits wrote: Log: Add powerpcspe to arch(7) Reviewed by: emaste ... Modified: head/share/man/man7/arch.7 == --- head/share/man/man7/arch.7 Tue May 2 21:20:27 2017(r317707) +++

Re: svn commit: r317681 - head/share/man/man7

2017-05-02 Thread Bruce Evans
On Tue, 2 May 2017, Konstantin Belousov wrote: On Wed, May 03, 2017 at 04:41:52AM +1000, Bruce Evans wrote: It would be good to mention that the type of time_t is signed somewhere. There is a whole column for the signedess of char in another table. Signedness can be given consisely using some

Re: svn commit: r317681 - head/share/man/man7

2017-05-02 Thread Bruce Evans
On Tue, 2 May 2017, Ed Maste wrote: On 2 May 2017 at 12:35, Bruce Evans wrote: -current man can't handle macros like "Sy" with -width or some other things including the things used above. This causes it to produce excessive column spacing. The formatting is bad enough withou

Re: svn commit: r317681 - head/share/man/man7

2017-05-02 Thread Bruce Evans
On Tue, 2 May 2017, Konstantin Belousov wrote: On Wed, May 03, 2017 at 02:35:17AM +1000, Bruce Evans wrote: On Tue, 2 May 2017, Konstantin Belousov wrote: Log: Document time_t size. Modified: head/share/man/man7/arch.7

Re: svn commit: r317061 - in head: libexec/rpc.rstatd sys/amd64/amd64 sys/amd64/include sys/arm/arm sys/arm/include sys/arm64/include sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/compat/linprocf

2017-05-02 Thread Bruce Evans
On Tue, 2 May 2017, Konstantin Belousov wrote: On Wed, May 03, 2017 at 01:31:10AM +1000, Bruce Evans wrote: On Tue, 2 May 2017, Konstantin Belousov wrote: I also thought of changing the scale when the values get high. The values would increase slower above about 2G instead of stabilizing at

Re: svn commit: r317681 - head/share/man/man7

2017-05-02 Thread Bruce Evans
On Tue, 2 May 2017, Konstantin Belousov wrote: Log: Document time_t size. Modified: head/share/man/man7/arch.7 == --- head/share/man/man7/arch.7 Tue May 2 14:52:28 2017(r317680) +++ head/share/man/man7/arch.7

Re: svn commit: r317061 - in head: libexec/rpc.rstatd sys/amd64/amd64 sys/amd64/include sys/arm/arm sys/arm/include sys/arm64/include sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/compat/linprocf

2017-05-02 Thread Bruce Evans
On Tue, 2 May 2017, Konstantin Belousov wrote: On Tue, May 02, 2017 at 11:31:21PM +1000, Bruce Evans wrote: On Tue, 2 May 2017, Konstantin Belousov wrote: ENOMEM is, of course, the situation which I want to avoid. Then you have to return no error, but truncate the value instead of

Re: svn commit: r317061 - in head: libexec/rpc.rstatd sys/amd64/amd64 sys/amd64/include sys/arm/arm sys/arm/include sys/arm64/include sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/compat/linprocf

2017-05-02 Thread Bruce Evans
On Tue, 2 May 2017, Konstantin Belousov wrote: On Tue, May 02, 2017 at 09:25:40PM +1000, Bruce Evans wrote: On Tue, 2 May 2017, Konstantin Belousov wrote: On Mon, May 01, 2017 at 06:25:11PM +1000, Bruce Evans wrote: XX Index: subr_counter.c XX

Re: svn commit: r317061 - in head: libexec/rpc.rstatd sys/amd64/amd64 sys/amd64/include sys/arm/arm sys/arm/include sys/arm64/include sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/compat/linprocf

2017-05-02 Thread Bruce Evans
On Tue, 2 May 2017, Konstantin Belousov wrote: On Tue, May 02, 2017 at 12:02:32PM +0200, Hans Petter Selasky wrote: On 05/02/17 11:55, Konstantin Belousov wrote: + out1 = 0x; Nitpicking: Should this be written: 0xU ?? No, 0xU should be written 0xf

Re: svn commit: r317061 - in head: libexec/rpc.rstatd sys/amd64/amd64 sys/amd64/include sys/arm/arm sys/arm/include sys/arm64/include sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/compat/linprocf

2017-05-02 Thread Bruce Evans
On Tue, 2 May 2017, Konstantin Belousov wrote: On Mon, May 01, 2017 at 06:25:11PM +1000, Bruce Evans wrote: XX Index: subr_counter.c XX === XX --- subr_counter.c (revision 317604) XX +++ subr_counter.c (working copy) XX

Re: svn commit: r317061 - in head: libexec/rpc.rstatd sys/amd64/amd64 sys/amd64/include sys/arm/arm sys/arm/include sys/arm64/include sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/compat/linprocf

2017-05-01 Thread Bruce Evans
On Sun, 30 Apr 2017, Konstantin Belousov wrote: On Wed, Apr 19, 2017 at 02:09:58PM +1000, Bruce Evans wrote: On Tue, 18 Apr 2017, Alan Somers wrote: On Mon, Apr 17, 2017 at 11:34 AM, Gleb Smirnoff wrote: head/usr.bin/top/machine.c head/usr.bin/vmstat/vmstat.c The previous 2 lines

Re: svn commit: r317509 - in head: . share/man/man4 sys/conf sys/dev/cy

2017-04-27 Thread Bruce Evans
On Thu, 27 Apr 2017, John Baldwin wrote: Author: jhb Date: Thu Apr 27 16:14:32 2017 New Revision: 317509 URL: https://svnweb.freebsd.org/changeset/base/317509 Log: Revert r317446 and bring back cy(4). Requested by: bde Thanks. Bruce ___ svn-src

Re: svn commit: r317446 - in head: . share/man/man4 sys/conf sys/dev/cy

2017-04-26 Thread Bruce Evans
On Wed, 26 Apr 2017, John Baldwin wrote: On Thursday, April 27, 2017 08:15:34 AM Bruce Evans wrote: On Wed, 26 Apr 2017, John Baldwin wrote: Log: Remove the cy(4) driver for Cyclades serial adapters. This driver has been disconnected from the build since the new tty layer was introduced

Re: svn commit: r317446 - in head: . share/man/man4 sys/conf sys/dev/cy

2017-04-26 Thread Bruce Evans
is updated in my tree, and I discussed this and sent you some patches a couple of years ago: XX From b...@optusnet.com.au Sat Oct 18 19:49:40 2014 +1100 XX Date: Sat, 18 Oct 2014 19:49:36 +1100 (EST) XX From: Bruce Evans XX X-X-Sender: b...@besplex.bde.org XX To: Bruce Evans XX cc: John Baldwin

svn commit: r317334 - head/sys/dev/syscons

2017-04-23 Thread Bruce Evans
Author: bde Date: Sun Apr 23 08:59:35 2017 New Revision: 317334 URL: https://svnweb.freebsd.org/changeset/base/317334 Log: Change the drawing method for the mouse cursor in planar mode to support colors. Colors are still hard-coded as 15 (normally lightwhite) for the interior and 0 (nor

svn commit: r317264 - head/sys/dev/syscons

2017-04-21 Thread Bruce Evans
Author: bde Date: Fri Apr 21 17:57:23 2017 New Revision: 317264 URL: https://svnweb.freebsd.org/changeset/base/317264 Log: Optimize setting of the foreground color in the main planar method much like for the background color. This is a about 5% faster for output that actually reaches the

svn commit: r317256 - head/sys/dev/syscons

2017-04-21 Thread Bruce Evans
Author: bde Date: Fri Apr 21 15:12:43 2017 New Revision: 317256 URL: https://svnweb.freebsd.org/changeset/base/317256 Log: Merge the main ega drawing method into the main vga planar method and remove the former. All other EGA/VGA methods were already shared, with VGA-only features mostl

Re: svn commit: r317231 - head/usr.bin/systat

2017-04-21 Thread Bruce Evans
On Fri, 21 Apr 2017, Bruce Evans wrote: On Thu, 20 Apr 2017, Jung-uk Kim wrote: Log: Fix systat(1) regression. It was broken by r317061. It is more broken than before. Now it fails when the kernel is older than the utility instead of vice versa. When it fails, the failures are more

Re: svn commit: r317240 - head/sys/fs/nfs

2017-04-21 Thread Bruce Evans
On Fri, 21 Apr 2017, Rick Macklem wrote: Yes, I agree that hardcoded values are bad. Thanks for pointing out the constants in sys/conf.h, I can use those instead. sys/conf.h does not have an entry for "nogroup", which is what has been used by nfsuserd since it was written. Is adding an entry to

Re: svn commit: r317208 - head/sys/netinet

2017-04-21 Thread Bruce Evans
On Fri, 21 Apr 2017, Hans Petter Selasky wrote: On 04/21/17 10:10, Bruce Evans wrote: ... i386 should use time_t = uint32_t to fully support years 2038-2106 instead of time_t = int32_t to partially support years 1902-1970 (even time 0 (the Epoch) and other early hours in 1970 are not fully

Re: svn commit: r317208 - head/sys/netinet

2017-04-21 Thread Bruce Evans
On Fri, 21 Apr 2017, Michael Tuexen wrote: On 21. Apr 2017, at 05:16, Bruce Evans wrote: On Thu, 20 Apr 2017, Cy Schubert wrote: Please trim quotes. In message <201704201919.v3kjjyko052...@repo.freebsd.org>, Michael Tuexen write s: [>> ... 5 lines trimmed] Log: Syncoockies

svn commit: r317245 - head/sys/dev/syscons

2017-04-20 Thread Bruce Evans
Author: bde Date: Fri Apr 21 06:55:17 2017 New Revision: 317245 URL: https://svnweb.freebsd.org/changeset/base/317245 Log: Oops, the previous commit swapped the main ega method with the main vga planar method (for testing that was supposed to be local that the former still works). The ega m

Re: svn commit: r317240 - head/sys/fs/nfs

2017-04-20 Thread Bruce Evans
On Fri, 21 Apr 2017, Rick Macklem wrote: Log: Set default uid/gid to nobody/nogroup for NFSv4 mapping. The default uid/gid for NFSv4 are set by the nfsuserd(8) daemon. However, they were 0 until the nfsuserd(8) was run. Since it is possible to use NFSv4 without running the nfsuserd(8) daemo

Re: svn commit: r317231 - head/usr.bin/systat

2017-04-20 Thread Bruce Evans
On Thu, 20 Apr 2017, Jung-uk Kim wrote: Log: Fix systat(1) regression. It was broken by r317061. It is more broken than before. Now it fails when the kernel is older than the utility instead of vice versa. When it fails, the failures are more serious than before. systat -v actually does c

Re: svn commit: r317208 - head/sys/netinet

2017-04-20 Thread Bruce Evans
On Thu, 20 Apr 2017, Cy Schubert wrote: Please trim quotes. In message <201704201919.v3kjjyko052...@repo.freebsd.org>, Michael Tuexen write s: [>> ... 5 lines trimmed] Log: Syncoockies can be used in combination with the syncache. If the cache overflows, syncookies are used. [>> ... 1

svn commit: r317199 - head/sys/dev/syscons

2017-04-20 Thread Bruce Evans
Author: bde Date: Thu Apr 20 17:22:03 2017 New Revision: 317199 URL: https://svnweb.freebsd.org/changeset/base/317199 Log: Eliminate the ega renderer switch. It did nothing useful except hold a pointer to the main ega drawing method which is misoptimized be in a different function than the

svn commit: r317198 - head/sys/dev/syscons

2017-04-20 Thread Bruce Evans
Author: bde Date: Thu Apr 20 16:34:09 2017 New Revision: 317198 URL: https://svnweb.freebsd.org/changeset/base/317198 Log: When the character width is 9, remove vertical lines in the mouse cursor corresponding to the gaps between characters. This fixes distortion of the cursor due to expand

svn commit: r317190 - in head/sys: dev/fb sys

2017-04-20 Thread Bruce Evans
Author: bde Date: Thu Apr 20 13:46:55 2017 New Revision: 317190 URL: https://svnweb.freebsd.org/changeset/base/317190 Log: Attempt to determine the modes in which 8-bit wide characters are actually 9 wide. I only need this to improve the mouse cursor, but it has always been needed to se

svn commit: r317157 - head/sys/dev/syscons

2017-04-19 Thread Bruce Evans
Author: bde Date: Wed Apr 19 18:35:34 2017 New Revision: 317157 URL: https://svnweb.freebsd.org/changeset/base/317157 Log: Fix missing support for drawing the mouse cursor in depth 24 of direct mode. Use the general DRAWPIXEL() macro with its bigger case statement (twice) instead of our

svn commit: r317150 - head/sys/dev/syscons

2017-04-19 Thread Bruce Evans
Author: bde Date: Wed Apr 19 16:24:51 2017 New Revision: 317150 URL: https://svnweb.freebsd.org/changeset/base/317150 Log: Stop using a saveunder method for mouse cursor drawing in the vga direct mode renderer. I thought that reads were not much slower than writes, so that the method only t

svn commit: r317142 - head/sys/dev/fb

2017-04-19 Thread Bruce Evans
Author: bde Date: Wed Apr 19 14:49:18 2017 New Revision: 317142 URL: https://svnweb.freebsd.org/changeset/base/317142 Log: When we don't use the parameter table in the BIOS, also don't use most of our tweaked modes based on it. In practice, this means limiting the tweaked modes to at most 8

Re: svn commit: r317061 - in head: libexec/rpc.rstatd sys/amd64/amd64 sys/amd64/include sys/arm/arm sys/arm/include sys/arm64/include sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/compat/linprocf

2017-04-18 Thread Bruce Evans
On Tue, 18 Apr 2017, Alan Somers wrote: On Mon, Apr 17, 2017 at 11:34 AM, Gleb Smirnoff wrote: Please trim quotes. [... 5 lines of quotes trimmed] Log: - Remove 'struct vmmeter' from 'struct pcpu', leaving only global vmmeter in place. To do per-cpu stats, convert all fields that pr

svn commit: r316977 - head/sys/dev/syscons

2017-04-15 Thread Bruce Evans
Author: bde Date: Sat Apr 15 20:03:50 2017 New Revision: 316977 URL: https://svnweb.freebsd.org/changeset/base/316977 Log: Add a 10x16 mouse cursor and use it in all graphics (strictly, pixel) modes if the font size is >= 14. This is the X cursor XC_left_ptr (#68) (glyph #45 in an X curso

svn commit: r316974 - head/sys/dev/syscons

2017-04-15 Thread Bruce Evans
Author: bde Date: Sat Apr 15 19:27:39 2017 New Revision: 316974 URL: https://svnweb.freebsd.org/changeset/base/316974 Log: Structure the mouse cursor data so that it is easier to switch, and access it via pointers (still to only 1 instance, now with a less generic name). Restructure the

Re: svn commit: r316938 - head/sbin/savecore

2017-04-15 Thread Bruce Evans
On Sat, 15 Apr 2017, John Baldwin wrote: On Friday, April 14, 2017 07:40:57 PM Ngie Cooper wrote: On Apr 14, 2017, at 18:49, Rodney W. Grimes wrote: Do we use KiB, MiB, GiB,... any place else in the system? I cant think of a place we do this, so please, lets not start doing this here? Th

Re: svn commit: r316936 - head/sys/dev/cxgbe/iw_cxgbe

2017-04-15 Thread Bruce Evans
On Sat, 15 Apr 2017, Rodney W. Grimes wrote: On Fri, Apr 14, 2017 at 06:15:10PM -0700, Rodney W. Grimes wrote: [ Charset UTF-8 unsupported, converting... ] Author: np Date: Fri Apr 14 19:15:31 2017 New Revision: 316936 URL: https://svnweb.freebsd.org/changeset/base/316936 Log: cxgbe/iw_cxgb

Re: svn commit: r316953 - head/sbin/savecore

2017-04-15 Thread Bruce Evans
On Sat, 15 Apr 2017, Ngie Cooper wrote: Log: Switch back to non-IEC units for 1024 bytes I was swayed a little too quickly when I saw the wiki page discussing kB vs KiB. Switch back as none of the code in base openly uses IEC units via humanize_number(3) (which was my next step), and there'

Re: svn commit: r316941 - head/sys/kern

2017-04-14 Thread Bruce Evans
On Fri, 14 Apr 2017, Edward Tomasz Napierala wrote: Log: Don't try to write out bufs that have already failed with ENXIO. This fixes some panics after disconnecting mounted disks. Submitted by: imp (slightly different version, which I've then lost) Reviewed by: kib, imp, mckusick MFC af

svn commit: r316878 - head/sys/dev/syscons

2017-04-14 Thread Bruce Evans
Author: bde Date: Fri Apr 14 17:38:43 2017 New Revision: 316878 URL: https://svnweb.freebsd.org/changeset/base/316878 Log: Oops, the previous revision was missing the update of the shift variable. Modified: head/sys/dev/syscons/scvgarndr.c Modified: head/sys/dev/syscons/scvgarndr.c =

svn commit: r316865 - head/sys/dev/syscons

2017-04-14 Thread Bruce Evans
Author: bde Date: Fri Apr 14 17:02:24 2017 New Revision: 316865 URL: https://svnweb.freebsd.org/changeset/base/316865 Log: Adjust shifting so that cursor widths up to 17 (was 9) work in vga planar mode. Direct mode always supported widths up to 32, except for its hard-coded 16s matching

svn commit: r316830 - head/sys/dev/syscons

2017-04-14 Thread Bruce Evans
Author: bde Date: Fri Apr 14 14:00:13 2017 New Revision: 316830 URL: https://svnweb.freebsd.org/changeset/base/316830 Log: Optimize drawing of the mouse cursor in vga planar mode almost as much as possible, by avoiding null ANDs and ORs to the frame buffer. Mouse cursors are fairly sparse

svn commit: r316827 - head/sys/dev/syscons

2017-04-14 Thread Bruce Evans
Author: bde Date: Fri Apr 14 12:03:34 2017 New Revision: 316827 URL: https://svnweb.freebsd.org/changeset/base/316827 Log: Further unobfuscate the method of drawing the mouse cursor in vga planar mode. Don't manually unroll the 2 inner loops. On Haswell, doing so gave a speedup of abou

svn commit: r316741 - head/sys/dev/syscons

2017-04-12 Thread Bruce Evans
Author: bde Date: Wed Apr 12 20:18:38 2017 New Revision: 316741 URL: https://svnweb.freebsd.org/changeset/base/316741 Log: Improve drawing of the vga planar mode mouse image a little. Unobfuscate the method a lot. Reduce the AND mask to the complement of the cursor's frame, so that area

svn commit: r316737 - head/sys/dev/syscons

2017-04-12 Thread Bruce Evans
Author: bde Date: Wed Apr 12 18:52:06 2017 New Revision: 316737 URL: https://svnweb.freebsd.org/changeset/base/316737 Log: Fix removal of mouse image by the vga planar renderer in the right border in unusual cases. Optimize and significantly clean up removal in this renderer. Optimize remo

svn commit: r316736 - head/sys/dev/syscons

2017-04-12 Thread Bruce Evans
Author: bde Date: Wed Apr 12 17:38:00 2017 New Revision: 316736 URL: https://svnweb.freebsd.org/changeset/base/316736 Log: Trival style fix to previous commit to add this detail. The previous commit also fixed the coordinates passed to the mouse removal renderer. The coordinates were rou

svn commit: r316735 - head/sys/dev/syscons

2017-04-12 Thread Bruce Evans
Author: bde Date: Wed Apr 12 17:06:24 2017 New Revision: 316735 URL: https://svnweb.freebsd.org/changeset/base/316735 Log: Fix removing of the mouse image in vga planar mode with 8x8 fonts, and reduce hard-coded assumptions on font sizes so that the cursor size can be more independent of the

svn commit: r316733 - head/sys/dev/syscons

2017-04-12 Thread Bruce Evans
Author: bde Date: Wed Apr 12 16:21:55 2017 New Revision: 316733 URL: https://svnweb.freebsd.org/changeset/base/316733 Log: Fix clobbering of the default attribute and the screen position in scteken_init(). Move the internals of scteken_sync() into a local function to help do this. scte

svn commit: r316675 - head/sys/dev/syscons

2017-04-09 Thread Bruce Evans
Author: bde Date: Mon Apr 10 06:19:09 2017 New Revision: 316675 URL: https://svnweb.freebsd.org/changeset/base/316675 Log: Special rendering methods for removing mouse cursors cannot be removed like I hoped, since they are needed for removing parts over the border. Continue fixing bugs in th

Re: svn commit: r316642 - head/sys/dev/syscons

2017-04-09 Thread Bruce Evans
On Sun, 9 Apr 2017, Andrey Chernov wrote: On 09.04.2017 10:33, Bruce Evans wrote: On Sun, 9 Apr 2017, Andrey Chernov wrote: On 09.04.2017 7:54, Andrey Chernov wrote: On 08.04.2017 13:00, Bruce Evans wrote: Log: Quick fix for removal of the mouse cursor in vga direct graphics modes

Re: svn commit: r316642 - head/sys/dev/syscons

2017-04-09 Thread Bruce Evans
On Sun, 9 Apr 2017, Andrey Chernov wrote: On 09.04.2017 9:46, Bruce Evans wrote: Please don't forget that this 5 cells range (0xd0-0xd4, last one becomes SC_CURSOR_CHAR) can be redefined with "vidcontrol -M", it is needed for the case they overlap valid characters region for s

Re: svn commit: r316642 - head/sys/dev/syscons

2017-04-09 Thread Bruce Evans
On Sun, 9 Apr 2017, Andrey Chernov wrote: On 09.04.2017 7:54, Andrey Chernov wrote: On 08.04.2017 13:00, Bruce Evans wrote: Log: Quick fix for removal of the mouse cursor in vga direct graphics modes ... Please don't forget that this 5 cells range (0xd0-0xd4, last one be

Re: svn commit: r316642 - head/sys/dev/syscons

2017-04-08 Thread Bruce Evans
On Sun, 9 Apr 2017, Andrey Chernov wrote: On 08.04.2017 13:00, Bruce Evans wrote: Log: Quick fix for removal of the mouse cursor in vga direct graphics modes (that is, in all supported 8, 15, 16 and 24-color modes). Moving the mouse cursor while holding down a button (giving cut marking

svn commit: r316642 - head/sys/dev/syscons

2017-04-08 Thread Bruce Evans
Author: bde Date: Sat Apr 8 10:00:39 2017 New Revision: 316642 URL: https://svnweb.freebsd.org/changeset/base/316642 Log: Quick fix for removal of the mouse cursor in vga direct graphics modes (that is, in all supported 8, 15, 16 and 24-color modes). Moving the mouse cursor while holding d

svn commit: r316636 - head/sys/dev/syscons

2017-04-08 Thread Bruce Evans
Author: bde Date: Sat Apr 8 08:24:25 2017 New Revision: 316636 URL: https://svnweb.freebsd.org/changeset/base/316636 Log: Fix removal of the keyboard cursor image in text mode, especially in the vga renderer. Removal used stale attributes and didn't try to merge with the current attribute

Re: svn commit: r316550 - head/share/man/man9

2017-04-06 Thread Bruce Evans
On Thu, 6 Apr 2017, Ngie Cooper wrote: Log: sbuf(9): convert SYNOPSIS section from .Fn entries to .Fo/.Fa/.Fc entries This shortens the column count on many lines considerably. This adds a lot of style bugs. It increases the macro count and the row count considerably. While here, add "(

Re: svn commit: r316509 - in head/sys/ufs: ffs ufs

2017-04-04 Thread Bruce Evans
On Wed, 5 Apr 2017, Conrad Meyer wrote: Log: ufs: Export UFS_MAXNAMLEN to pathconf, statfs Rather than the global NAME_MAX constant. This change is required to support systems with a NAME_MAX/MAXNAMLEN that differs from UFS_MAXNAMLEN. This was missed in r313475 due to the alternative spel

Re: svn commit: r316477 - head/usr.bin/grep

2017-04-04 Thread Bruce Evans
On Tue, 4 Apr 2017, Andrey Chernov wrote: On 04.04.2017 2:16, Ed Maste wrote: if (color) - fprintf(stdout, "\33[m\33[K"); + fprintf(stdout, "\33[00m\33[K"); Please back that one out. We don't need to handle in

svn commit: r316462 - head/usr.sbin/vidcontrol

2017-04-03 Thread Bruce Evans
Author: bde Date: Mon Apr 3 15:11:28 2017 New Revision: 316462 URL: https://svnweb.freebsd.org/changeset/base/316462 Log: Fix a missing const in my previous commit which broke the build at normal WARNS. Reported by: lwhsu Modified: head/usr.sbin/vidcontrol/vidcontrol.c Modified: hea

svn commit: r316459 - head/usr.sbin/vidcontrol

2017-04-03 Thread Bruce Evans
Author: bde Date: Mon Apr 3 13:06:28 2017 New Revision: 316459 URL: https://svnweb.freebsd.org/changeset/base/316459 Log: Show high (blinking foreground/bright background) background colors. Format output and source better for this. Format output for 40 columns if there are less than 80 c

svn commit: r316453 - head/usr.sbin/vidcontrol

2017-04-03 Thread Bruce Evans
Author: bde Date: Mon Apr 3 10:47:01 2017 New Revision: 316453 URL: https://svnweb.freebsd.org/changeset/base/316453 Log: Remove the global variable 'info' and fix associated bugs and style bugs. This variable was used 4 times in 1 function and all uses were wrong. The 4 uses were in he

svn commit: r316447 - head/usr.sbin/vidcontrol

2017-04-03 Thread Bruce Evans
Author: bde Date: Mon Apr 3 09:21:00 2017 New Revision: 316447 URL: https://svnweb.freebsd.org/changeset/base/316447 Log: Save errno across revert(). Change 25 uses of errc() to err(). 2 of these were correct. 23 used errno for the arg so were just a verbose spelling of err(). 5 of th

svn commit: r316443 - head/usr.sbin/vidcontrol

2017-04-02 Thread Bruce Evans
Author: bde Date: Mon Apr 3 06:52:02 2017 New Revision: 316443 URL: https://svnweb.freebsd.org/changeset/base/316443 Log: Fix some parsing and error handling bugs. r146736 added an undocumented syntax and many bugs handling it. The documented syntax is "... [mode] [fg [bg]] [show]", whe

Re: svn commit: r316393 - head/sys/compat/linux

2017-04-02 Thread Bruce Evans
On Sun, 2 Apr 2017, Chagin Dmitry wrote: On Sun, Apr 02, 2017 at 04:36:51PM +0300, Konstantin Belousov wrote: On Sun, Apr 02, 2017 at 07:46:13AM +, Dmitry Chagin wrote: Author: dchagin Date: Sun Apr 2 07:46:13 2017 New Revision: 316393 URL: https://svnweb.freebsd.org/changeset/base/316393

svn commit: r316422 - head/usr.sbin/vidcontrol

2017-04-02 Thread Bruce Evans
Author: bde Date: Sun Apr 2 16:39:39 2017 New Revision: 316422 URL: https://svnweb.freebsd.org/changeset/base/316422 Log: Remove checks that background (bg) colors are not bright and buggy attempts to keep them that way. The bg brightness bit is interpreted as blinking in some modes, but i

svn commit: r316397 - head/tests/sys/kern

2017-04-02 Thread Bruce Evans
Author: bde Date: Sun Apr 2 09:24:58 2017 New Revision: 316397 URL: https://svnweb.freebsd.org/changeset/base/316397 Log: Remove the unportable -msse4 here too after fixing crc32_sse42.c to not depend on it. This should have been part of r315983. Modified: head/tests/sys/kern/Makefile Mo

svn commit: r316396 - head/sys/dev/fb

2017-04-02 Thread Bruce Evans
Author: bde Date: Sun Apr 2 08:39:32 2017 New Revision: 316396 URL: https://svnweb.freebsd.org/changeset/base/316396 Log: Reset the DAC to 6-bit mode before calling the BIOS to set the screen mode. This works around bugs in at least 2 Intel BIOSes for our subsequent setting of the DAC back

Re: svn commit: r316311 - in head: lib/libstand sys/boot/geli sys/boot/i386/gptboot sys/boot/i386/loader sys/boot/i386/zfsboot

2017-04-01 Thread Bruce Evans
On Fri, 31 Mar 2017, Brooks Davis wrote: On Fri, Mar 31, 2017 at 11:29:20AM -0700, John Baldwin wrote: On Friday, March 31, 2017 09:04:51 AM Peter Grehan wrote: So... can anyone provide a clue what's "explicit" (or different in any way) between explicit_bzero() and normal bzero()? https://w

Re: svn commit: r316132 - head/sys/boot/i386/boot2

2017-03-30 Thread Bruce Evans
On Thu, 30 Mar 2017, Warner Losh wrote: On Thu, Mar 30, 2017 at 12:23 AM, Bruce Evans wrote: I doubt that gcc-6.3 is very broken. Did its CFLAGS even have -Os? Yes. boot2 doesn't use the kernel CFLAGS. I know. I even understand most of the magic. My point was that with all the

Re: svn commit: r316132 - head/sys/boot/i386/boot2

2017-03-29 Thread Bruce Evans
On Wed, 29 Mar 2017, Warner Losh wrote: On Wed, Mar 29, 2017 at 3:36 PM, Poul-Henning Kamp wrote: In message <7448826.asyms2t...@ralph.baldwin.cx>, John Baldwin writes: On Wednesday, March 29, 2017 09:30:03 AM Ngie Cooper wrote: Log: Parameterize out 7680 (15 * 512) as BOOT2SIZE

svn commit: r316136 - head/sys/dev/syscons

2017-03-29 Thread Bruce Evans
Author: bde Date: Wed Mar 29 14:46:26 2017 New Revision: 316136 URL: https://svnweb.freebsd.org/changeset/base/316136 Log: The switch to kernel terminal context needs to update more than the cursor position. Especially the screen size, and potentially everything except the input state and a

Re: svn commit: r316064 - head/sys/boot/i386/boot2

2017-03-28 Thread Bruce Evans
On Tue, 28 Mar 2017, Rodney W. Grimes wrote: On Mon, 27 Mar 2017, Julian Elischer wrote: On Tue, 28 Mar 2017, Bruce Evans wrote: [...] they have to fit below 640K and a few multiples of 64K are already used for buffers). The limit on 8K is mainly a historical mistake. A limit of 7.5K

Re: svn commit: r316081 - head/lib/libcam

2017-03-28 Thread Bruce Evans
On Tue, 28 Mar 2017, Ngie Cooper wrote: Log: Use `sizeof(cam_errbuf)` instead of `CAM_ERRBUF_SIZE` in snprintf calls Reindent snprintf calls' arguments to match style(9) guidelines with respect to indentation. Unfortunately, cam is is supposed to not match style(9) guidelines for indentati

Re: svn commit: r316064 - head/sys/boot/i386/boot2

2017-03-28 Thread Bruce Evans
On Tue, 28 Mar 2017, Warner Losh wrote: [[ sorry for the top post but it's quick ]] It's quicker and almost equivalent to delete what you reply to. Summary, in Bruce's own words the whole optimization step was silly. I agree. on my -current system, clang compiled boot2 was 4 bytes smalle

Re: svn commit: r316064 - head/sys/boot/i386/boot2

2017-03-28 Thread Bruce Evans
On Mon, 27 Mar 2017, Julian Elischer wrote: On Tue, 28 Mar 2017, Bruce Evans wrote: [...] they have to fit below 640K and a few multiples of 64K are already used for buffers). The limit on 8K is mainly a historical mistake. A limit of 7.5K simplified booting from 15-sector floppies. 18

Re: svn commit: r316064 - head/sys/boot/i386/boot2

2017-03-27 Thread Bruce Evans
On Mon, 27 Mar 2017, Warner Losh wrote: Log: Fix build with path names with 'align' or 'nop' in them. clang is now inserting .file directives with the entire path in them. This is fine, except that our sed peephole optimizer removes them if ${SRCTOP} or ${OBJTOP} contains 'align' or 'nop',

svn commit: r316019 - in head/sys: kern teken

2017-03-27 Thread Bruce Evans
Author: bde Date: Mon Mar 27 10:48:28 2017 New Revision: 316019 URL: https://svnweb.freebsd.org/changeset/base/316019 Log: Oops, my fix for bright colors broke bright black some more (in cases that used to work via the bold hack). Fix the table entry for bright black. Fix spelling of pla

svn commit: r316001 - in head/sys: amd64/include arm/include arm64/include ddb i386/include mips/include powerpc/include riscv/include sparc64/include

2017-03-26 Thread Bruce Evans
Author: bde Date: Sun Mar 26 18:46:35 2017 New Revision: 316001 URL: https://svnweb.freebsd.org/changeset/base/316001 Log: Fix printing of negative offsets (typically from frame pointers) again. I fixed this in 1997, but the fix was over-engineered and fragile and was broken in 2003 if not b

svn commit: r315986 - head/sys/dev/fb

2017-03-26 Thread Bruce Evans
Author: bde Date: Sun Mar 26 14:31:29 2017 New Revision: 315986 URL: https://svnweb.freebsd.org/changeset/base/315986 Log: Fix 3 entries in mode tables related to mono and 90-column text modes. Newer VGAs don't support any mono modes, but bugs in the tables created 2 virtual mono modes (#45

svn commit: r315984 - head/sys/dev/syscons

2017-03-26 Thread Bruce Evans
Author: bde Date: Sun Mar 26 13:03:16 2017 New Revision: 315984 URL: https://svnweb.freebsd.org/changeset/base/315984 Log: Restore switching to a separate kernel terminal "input" state and extend it to a separate state for each CPU. Terminal "input" is user or kernel output. Its state in

svn commit: r315983 - in head/sys: conf libkern/x86

2017-03-26 Thread Bruce Evans
Author: bde Date: Sun Mar 26 10:31:48 2017 New Revision: 315983 URL: https://svnweb.freebsd.org/changeset/base/315983 Log: Use inline asm instead of unportable intrinsics for the SSE4 crc32 optimization. This fixes building with gcc-4.2.1 (it doesn't support SSE4). gas-2.17.50 [FreeBSD]

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

2017-03-24 Thread Bruce Evans
Author: bde Date: Fri Mar 24 17:34:55 2017 New Revision: 315914 URL: https://svnweb.freebsd.org/changeset/base/315914 Log: Remove buggy adjustment of page tables in db_write_bytes(). Long ago, perhaps only on i386, kernel text was mapped read-only and it was necessary to change the mappin

Re: svn commit: r315850 - head/sys/boot/forth

2017-03-23 Thread Bruce Evans
On Thu, 23 Mar 2017, [UTF-8] Dag-Erling Sm??rgrav wrote: Log: The original author abused Nd (one-line description, used by makewhatis) for its side effect of producing an en-dash. This broke whatis with newer versions of mdocml. Use \(en instead. Nd (or is it mumble-dash?) is broken for a

Re: svn commit: r315694 - head/lib/libc/sys

2017-03-21 Thread Bruce Evans
On Wed, 22 Mar 2017, Eric van Gyzen wrote: Log: clock_gettime.2: add some clock IDs Add the CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID clock_id values to the clock_gettime(2) man page. Reformat the excessively long paragraph (sentence!) into a tag list. Some old bugs are now cl

Re: svn commit: r315498 - head/sys/compat/linux

2017-03-18 Thread Bruce Evans
On Sat, 18 Mar 2017, Dmitry Chagin wrote: Log: Check for negative nanoseconds. Linux do that in timespec_valid(). This uses the unsigned hack to further obfuscate the code. No check is necessary on any supported arch, since there are no representability problems and FreeBSD checks for inval

Re: svn commit: r315522 - in head: contrib/binutils/ld/emulparams sys/conf

2017-03-18 Thread Bruce Evans
On Sun, 19 Mar 2017, Ed Maste wrote: Log: use INT3 instead of NOP for x86 binary padding We should never end up executing the inter-function padding, so we are better off faulting than silently carrying on to whatever function happens to be next. Note that LLD will soon do this by default

svn commit: r315480 - in head/sys: dev/syscons dev/vt kern teken

2017-03-18 Thread Bruce Evans
Author: bde Date: Sat Mar 18 11:13:54 2017 New Revision: 315480 URL: https://svnweb.freebsd.org/changeset/base/315480 Log: Fix bright colors for syscons, and make them work for the first time for vt. Restore syscons' rendering of background (bg) brightness as foreground (fg) blinking and vi

svn commit: r315477 - head/sys/ddb

2017-03-18 Thread Bruce Evans
Author: bde Date: Sat Mar 18 07:01:18 2017 New Revision: 315477 URL: https://svnweb.freebsd.org/changeset/base/315477 Log: Fix right shifts on arches with db_expr_t larger than u_int (LP64 arches in practice). db_expr_t is a signed type, but right shifts are fudged to evaluate them in a

svn commit: r315454 - in head/sys: amd64/amd64 amd64/include i386/i386 i386/include

2017-03-17 Thread Bruce Evans
Author: bde Date: Fri Mar 17 13:49:05 2017 New Revision: 315454 URL: https://svnweb.freebsd.org/changeset/base/315454 Log: Don't access the reserved registers %dr4 and %dr5 on i386. On the original i386, %dr[4-5] were unimplemented but not very clearly reserved, so debuggers read them to

Re: svn commit: r315418 - in head/sys/teken: . libteken

2017-03-16 Thread Bruce Evans
On Thu, 16 Mar 2017, Oliver Pinter wrote: On 3/16/17, Bruce Evans wrote: On Thu, 16 Mar 2017, Bruce Evans wrote: Log: Add teken_256to16() to convert xterm-256 256-color codes to xterm 16-color codes. This will be used to fix bright colors. Improve teken_256to8(). Use a lookup table

Re: svn commit: r315418 - in head/sys/teken: . libteken

2017-03-16 Thread Bruce Evans
On Thu, 16 Mar 2017, Bruce Evans wrote: Log: Add teken_256to16() to convert xterm-256 256-color codes to xterm 16-color codes. This will be used to fix bright colors. Improve teken_256to8(). Use a lookup table instead of calculations. The ... A shell script for printing some text

<    1   2   3   4   5   6   7   8   9   10   >