svn commit: r217047 - head/lib/libthr/thread

2011-01-06 Thread David Xu
Author: davidxu Date: Thu Jan 6 08:13:30 2011 New Revision: 217047 URL: http://svn.freebsd.org/changeset/base/217047 Log: Return 0 instead of garbage value. Found by: clang static analyzer Modified: head/lib/libthr/thread/thr_mutex.c Modified: head/lib/libthr/thread/thr_mutex.c

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

2011-01-06 Thread Julian Elischer
On 1/5/11 11:39 AM, Bruce Evans wrote: On Wed, 5 Jan 2011, John Baldwin wrote: On Wednesday, January 05, 2011 11:17:20 am Jaakko Heinonen wrote: On 2011-01-04, John Baldwin wrote: Err, no, the point of NOTREACHED is to serve as documentation for lint(1), but that has subsequently been

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

2011-01-06 Thread Edward Tomasz Napierała
Wiadomość napisana przez Julian Elischer w dniu 2011-01-06, o godz. 10:02: On 1/6/11 12:33 AM, Edward Tomasz Napierala wrote: Author: trasz Date: Thu Jan 6 08:33:48 2011 New Revision: 217048 URL: http://svn.freebsd.org/changeset/base/217048 Log: Get rid of bad advice regarding /*

Re: svn commit: r217033 - in head: lib/libstand sys/boot/ficl sys/boot/i386 sys/boot/pc98 sys/boot/zfs sys/conf

2011-01-06 Thread Dimitry Andric
On 2011-01-06 00:14, Ivan Voras wrote: -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float I'm late to the party - but is there any hope of centralizing these and then doing something like CFLAGS += ${CC_NO_FP} ? Yeah, that is the next step. First I wanted to get all the flags

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

2011-01-06 Thread John Baldwin
On Thursday, January 06, 2011 4:02:43 am Julian Elischer wrote: On 1/6/11 12:33 AM, Edward Tomasz Napierala wrote: Author: trasz Date: Thu Jan 6 08:33:48 2011 New Revision: 217048 URL: http://svn.freebsd.org/changeset/base/217048 Log: Get rid of bad advice regarding /*

svn commit: r217054 - head/sys/powerpc/conf

2011-01-06 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Jan 6 14:12:24 2011 New Revision: 217054 URL: http://svn.freebsd.org/changeset/base/217054 Log: Unbreak the LINT build. PS3 kernels can only be built 64-bit, and LINT is built for both architectures. We need a better solution here. Modified:

Re: svn commit: r217054 - head/sys/powerpc/conf

2011-01-06 Thread John Baldwin
On Thursday, January 06, 2011 9:12:24 am Nathan Whitehorn wrote: Author: nwhitehorn Date: Thu Jan 6 14:12:24 2011 New Revision: 217054 URL: http://svn.freebsd.org/changeset/base/217054 Log: Unbreak the LINT build. PS3 kernels can only be built 64-bit, and LINT is built for both

Re: svn commit: r217054 - head/sys/powerpc/conf

2011-01-06 Thread Nathan Whitehorn
On 01/06/11 09:07, John Baldwin wrote: On Thursday, January 06, 2011 9:12:24 am Nathan Whitehorn wrote: Author: nwhitehorn Date: Thu Jan 6 14:12:24 2011 New Revision: 217054 URL: http://svn.freebsd.org/changeset/base/217054 Log: Unbreak the LINT build. PS3 kernels can only be built 64-bit,

svn commit: r217058 - head/sys/sparc64/sparc64

2011-01-06 Thread Marius Strobl
Author: marius Date: Thu Jan 6 17:28:31 2011 New Revision: 217058 URL: http://svn.freebsd.org/changeset/base/217058 Log: Remove an unused variable accidentally added in r216803. Modified: head/sys/sparc64/sparc64/tsb.c Modified: head/sys/sparc64/sparc64/tsb.c

svn commit: r217061 - in head/sys/dev/usb: . serial

2011-01-06 Thread Gavin Atkinson
Author: gavin Date: Thu Jan 6 19:17:29 2011 New Revision: 217061 URL: http://svn.freebsd.org/changeset/base/217061 Log: Support the Uniform Industrial Corp (UIC) MSR206 Magnetic Card Reader. MFC after:1 week Modified: head/sys/dev/usb/serial/uplcom.c head/sys/dev/usb/usbdevs

svn commit: r217062 - head/sys/arm/at91

2011-01-06 Thread John Baldwin
Author: jhb Date: Thu Jan 6 19:32:00 2011 New Revision: 217062 URL: http://svn.freebsd.org/changeset/base/217062 Log: - Use macbstart_locked() directly instead of deferring it to a task. - Expand locking scope in interrupt handler. - Flesh out the detach routine. Reviewed by: cognet

svn commit: r217063 - in head/sys/fs: nfs nfsserver

2011-01-06 Thread Rick Macklem
Author: rmacklem Date: Thu Jan 6 19:50:11 2011 New Revision: 217063 URL: http://svn.freebsd.org/changeset/base/217063 Log: Since the VFS_LOCK_GIANT() code in the experimental NFS server is broken and the major file systems are now all mpsafe, modify the server so that it will only export

svn commit: r217064 - head/tools/regression/acct

2011-01-06 Thread Giorgos Keramidas
Author: keramida (doc committer) Date: Thu Jan 6 20:05:24 2011 New Revision: 217064 URL: http://svn.freebsd.org/changeset/base/217064 Log: tests: sort fix includes, remove -include from CFLAGS of acct tests - Sort the includes of pack.c, moving sys/*.h files near the top. - Add a

svn commit: r217065 - in head/sys/powerpc: aim cpufreq powermac

2011-01-06 Thread Andreas Tobler
Author: andreast Date: Thu Jan 6 20:19:01 2011 New Revision: 217065 URL: http://svn.freebsd.org/changeset/base/217065 Log: Remove unused variables. Spotted by a cppcheck (devel/cppcheck, http://sourceforge.net/projects/cppcheck) run. Approved by: nwhitehorn (mentor) Modified:

svn commit: r217066 - in head/sys/fs: nfs nfsserver

2011-01-06 Thread Rick Macklem
Author: rmacklem Date: Thu Jan 6 20:31:33 2011 New Revision: 217066 URL: http://svn.freebsd.org/changeset/base/217066 Log: Delete the NFS_STARTWRITE() and NFS_ENDWRITE() macros that obscured vn_start_write() and vn_finished_write() for the old OpenBSD port, since most uses have been

Re: svn commit: r216955 - head/usr.sbin/rtprio

2011-01-06 Thread Alexander Best
On Tue Jan 4 11, Konstantin Belousov wrote: Author: kib Date: Tue Jan 4 14:13:09 2011 New Revision: 216955 URL: http://svn.freebsd.org/changeset/base/216955 Log: Make the parsing of the integer arguments for rtprio(1)/idprio(1) stricter. Style. Based on submission by:

svn commit: r217067 - head/sys/boot/efi/libefi

2011-01-06 Thread Marcel Moolenaar
Author: marcel Date: Thu Jan 6 20:50:16 2011 New Revision: 217067 URL: http://svn.freebsd.org/changeset/base/217067 Log: Help static analysis by initializing variables that we know cannot be used uninitialized, but which cannot be inferred from the code itself. Modified:

svn commit: r217068 - head/sys/dev/adlink

2011-01-06 Thread John Baldwin
Author: jhb Date: Thu Jan 6 21:02:14 2011 New Revision: 217068 URL: http://svn.freebsd.org/changeset/base/217068 Log: Remove an unnecessary INTR_MPSAFE and a comment suggesting it was unnecessary. Modified: head/sys/dev/adlink/adlink.c Modified: head/sys/dev/adlink/adlink.c

svn commit: r217069 - head/sys/arm/mv

2011-01-06 Thread John Baldwin
Author: jhb Date: Thu Jan 6 21:03:55 2011 New Revision: 217069 URL: http://svn.freebsd.org/changeset/base/217069 Log: - Add a proper return value to mv_gpio_intr(). - Remove an obsolete use of INTR_FAST. Modified: head/sys/arm/mv/gpio.c Modified: head/sys/arm/mv/gpio.c

svn commit: r217070 - in head/sys/modules: aha ahb

2011-01-06 Thread Warner Losh
Author: imp Date: Thu Jan 6 21:04:00 2011 New Revision: 217070 URL: http://svn.freebsd.org/changeset/base/217070 Log: No need to genreate these here Modified: head/sys/modules/aha/Makefile head/sys/modules/ahb/Makefile Modified: head/sys/modules/aha/Makefile

svn commit: r217071 - head/lib/bind

2011-01-06 Thread Warner Losh
Author: imp Date: Thu Jan 6 21:07:51 2011 New Revision: 217071 URL: http://svn.freebsd.org/changeset/base/217071 Log: Make this work on big endian MIPS, while not breaking it for small endian mips. This will also make it work automatically on all future big endian platforms. Modified:

svn commit: r217072 - in head/sys: arm/s3c2xx0 dev/usb/controller i386/xen mips/mips mips/rmi mips/rmi/dev/nlge mips/rmi/dev/xlr powerpc/powerpc

2011-01-06 Thread John Baldwin
Author: jhb Date: Thu Jan 6 21:08:06 2011 New Revision: 217072 URL: http://svn.freebsd.org/changeset/base/217072 Log: Remove bogus usage of INTR_FAST. Fast interrupts are now indicated by registering a filter handler rather than a threaded handler. Also remove a bogus use of INTR_MPSAFE

Re: svn commit: r216955 - head/usr.sbin/rtprio

2011-01-06 Thread Garrett Cooper
On Thu, Jan 6, 2011 at 12:41 PM, Alexander Best arun...@freebsd.org wrote: ... this causes problems when pid is -0: [id|rt]prio -t -0 and [id|rt]prio 10 -0 will try to run 0 via execvp(). beforehand however this will also trigger rtprio(). a better solution would be to do:                

svn commit: r217073 - head/etc/rc.d

2011-01-06 Thread Warner Losh
Author: imp Date: Thu Jan 6 21:09:22 2011 New Revision: 217073 URL: http://svn.freebsd.org/changeset/base/217073 Log: Don't require /usr/lib/aout to be on the system. Test for its existance since we don't generally need it. MFC after:1 week Modified: head/etc/rc.d/ldconfig

Re: svn commit: r216955 - head/usr.sbin/rtprio

2011-01-06 Thread Alexander Best
On Thu Jan 6 11, Garrett Cooper wrote: On Thu, Jan 6, 2011 at 12:41 PM, Alexander Best arun...@freebsd.org wrote: ... this causes problems when pid is -0: [id|rt]prio -t -0 and [id|rt]prio 10 -0 will try to run 0 via execvp(). beforehand however this will also trigger rtprio().

Re: svn commit: r216955 - head/usr.sbin/rtprio

2011-01-06 Thread Alexander Best
On Thu Jan 6 11, Alexander Best wrote: On Tue Jan 4 11, Konstantin Belousov wrote: Author: kib Date: Tue Jan 4 14:13:09 2011 New Revision: 216955 URL: http://svn.freebsd.org/changeset/base/216955 Log: Make the parsing of the integer arguments for rtprio(1)/idprio(1)

Re: svn commit: r216955 - head/usr.sbin/rtprio

2011-01-06 Thread Garrett Cooper
On Thu, Jan 6, 2011 at 1:10 PM, Alexander Best arun...@freebsd.org wrote: On Thu Jan  6 11, Garrett Cooper wrote: On Thu, Jan 6, 2011 at 12:41 PM, Alexander Best arun...@freebsd.org wrote: ... this causes problems when pid is -0: [id|rt]prio -t -0 and [id|rt]prio 10 -0 will try to run 0

svn commit: r217074 - in head: share/man/man9 sys/sys

2011-01-06 Thread John Baldwin
Author: jhb Date: Thu Jan 6 21:14:34 2011 New Revision: 217074 URL: http://svn.freebsd.org/changeset/base/217074 Log: Retire the INTR_FAST flag as it was obsoleted by the introduction of the filter argument to bus_setup_intr(). Modified: head/share/man/man9/BUS_SETUP_INTR.9

Re: svn commit: r216955 - head/usr.sbin/rtprio

2011-01-06 Thread Alexander Best
On Thu Jan 6 11, Alexander Best wrote: On Thu Jan 6 11, Garrett Cooper wrote: On Thu, Jan 6, 2011 at 12:41 PM, Alexander Best arun...@freebsd.org wrote: ... this causes problems when pid is -0: [id|rt]prio -t -0 and [id|rt]prio 10 -0 will try to run 0 via execvp().

Re: svn commit: r217070 - in head/sys/modules: aha ahb

2011-01-06 Thread John Baldwin
On Thursday, January 06, 2011 4:04:00 pm Warner Losh wrote: Author: imp Date: Thu Jan 6 21:04:00 2011 New Revision: 217070 URL: http://svn.freebsd.org/changeset/base/217070 Log: No need to genreate these here I think this changes the SCSI_DELAY these modules are effectively built with

Re: svn commit: r216955 - head/usr.sbin/rtprio

2011-01-06 Thread John Baldwin
On Thursday, January 06, 2011 4:10:17 pm Alexander Best wrote: On Thu Jan 6 11, Garrett Cooper wrote: On Thu, Jan 6, 2011 at 12:41 PM, Alexander Best arun...@freebsd.org wrote: ... this causes problems when pid is -0: [id|rt]prio -t -0 and [id|rt]prio 10 -0 will try to run 0

Re: svn commit: r216955 - head/usr.sbin/rtprio

2011-01-06 Thread Alexander Best
On Thu Jan 6 11, John Baldwin wrote: On Thursday, January 06, 2011 4:10:17 pm Alexander Best wrote: On Thu Jan 6 11, Garrett Cooper wrote: On Thu, Jan 6, 2011 at 12:41 PM, Alexander Best arun...@freebsd.org wrote: ... this causes problems when pid is -0:

Re: svn commit: r216955 - head/usr.sbin/rtprio

2011-01-06 Thread Alexander Best
On Tue Jan 4 11, Konstantin Belousov wrote: Author: kib Date: Tue Jan 4 14:13:09 2011 New Revision: 216955 URL: http://svn.freebsd.org/changeset/base/216955 Log: Make the parsing of the integer arguments for rtprio(1)/idprio(1) stricter. Style. here's a patch with some changes. you

Re: svn commit: r217070 - in head/sys/modules: aha ahb

2011-01-06 Thread Warner Losh
On 01/06/2011 14:20, John Baldwin wrote: On Thursday, January 06, 2011 4:04:00 pm Warner Losh wrote: Author: imp Date: Thu Jan 6 21:04:00 2011 New Revision: 217070 URL: http://svn.freebsd.org/changeset/base/217070 Log: No need to genreate these here I think this changes the SCSI_DELAY

Re: svn commit: r217033 - in head: lib/libstand sys/boot/ficl sys/boot/i386 sys/boot/pc98 sys/boot/zfs sys/conf

2011-01-06 Thread Alexander Best
On Thu Jan 6 11, Dimitry Andric wrote: On 2011-01-06 00:14, Ivan Voras wrote: -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float I'm late to the party - but is there any hope of centralizing these and then doing something like CFLAGS += ${CC_NO_FP} ? Yeah, that is the next

svn commit: r217075 - in head/sys: kern sys

2011-01-06 Thread John Baldwin
Author: jhb Date: Thu Jan 6 22:09:37 2011 New Revision: 217075 URL: http://svn.freebsd.org/changeset/base/217075 Log: Retire PCONFIG and leave the priority of thread0 alone when waiting for interrupt config hooks to execute. Modified: head/sys/kern/subr_autoconf.c

Re: svn commit: r216955 - head/usr.sbin/rtprio

2011-01-06 Thread Alexander Best
On Thu Jan 6 11, Alexander Best wrote: On Tue Jan 4 11, Konstantin Belousov wrote: Author: kib Date: Tue Jan 4 14:13:09 2011 New Revision: 216955 URL: http://svn.freebsd.org/changeset/base/216955 Log: Make the parsing of the integer arguments for rtprio(1)/idprio(1)

Re: svn commit: r216955 - head/usr.sbin/rtprio

2011-01-06 Thread Anonymous
Alexander Best arun...@freebsd.org writes: On Thu Jan 6 11, John Baldwin wrote: Note that that usage is rather pointless since it means you apply rtprio to the 'rtprio' process that is about to exit. :) yeah but at least it makes the usage of -X consistent. ;) also consider the following:

svn commit: r217076 - in head/sys: kern net

2011-01-06 Thread John Baldwin
Author: jhb Date: Thu Jan 6 22:17:07 2011 New Revision: 217076 URL: http://svn.freebsd.org/changeset/base/217076 Log: - Restore dropping the priority of syncer down to PPAUSE when it is idle. This was lost when it was converted to using a condition variable instead of lbolt. - Drop

svn commit: r217077 - head/sys/kern

2011-01-06 Thread John Baldwin
Author: jhb Date: Thu Jan 6 22:19:15 2011 New Revision: 217077 URL: http://svn.freebsd.org/changeset/base/217077 Log: Only change the priority of timeshare threads to PRI_MAX_TIMESHARE when yield() is called. Specifically, leave the priority of real time and idle threads unchanged.

svn commit: r217078 - head/sys/kern

2011-01-06 Thread John Baldwin
Author: jhb Date: Thu Jan 6 22:24:00 2011 New Revision: 217078 URL: http://svn.freebsd.org/changeset/base/217078 Log: - Move sched_fork() later in fork() after the various sections of the new thread and proc have been copied and zeroed from the old thread and proc. Otherwise attempts

svn commit: r217079 - head/sys/kern

2011-01-06 Thread John Baldwin
Author: jhb Date: Thu Jan 6 22:26:00 2011 New Revision: 217079 URL: http://svn.freebsd.org/changeset/base/217079 Log: - Properly initialize the base priority (td_base_pri) of thread0 to PVM to match the desired priority in td_priority. Otherwise the first time thread0 used a borrowed

Re: svn commit: r216955 - head/usr.sbin/rtprio

2011-01-06 Thread Alexander Best
On Fri Jan 7 11, Anonymous wrote: Alexander Best arun...@freebsd.org writes: On Thu Jan 6 11, John Baldwin wrote: Note that that usage is rather pointless since it means you apply rtprio to the 'rtprio' process that is about to exit. :) yeah but at least it makes the usage of -X

Re: svn commit: r216955 - head/usr.sbin/rtprio

2011-01-06 Thread Garrett Cooper
On Jan 6, 2011, at 2:41 PM, Alexander Best wrote: On Fri Jan 7 11, Anonymous wrote: Alexander Best arun...@freebsd.org writes: On Thu Jan 6 11, John Baldwin wrote: Note that that usage is rather pointless since it means you apply rtprio to the 'rtprio' process that is about to exit.

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

2011-01-06 Thread Bruce Evans
On Thu, 6 Jan 2011, Julian Elischer wrote: On 1/5/11 11:39 AM, Bruce Evans wrote: On Wed, 5 Jan 2011, John Baldwin wrote: On Wednesday, January 05, 2011 11:17:20 am Jaakko Heinonen wrote: On 2011-01-04, John Baldwin wrote: Err, no, the point of NOTREACHED is to serve as documentation for

Re: svn commit: r216955 - head/usr.sbin/rtprio

2011-01-06 Thread Anonymous
Garrett Cooper yaneg...@gmail.com writes: On Jan 6, 2011, at 2:41 PM, Alexander Best wrote: On Fri Jan 7 11, Anonymous wrote: Alexander Best arun...@freebsd.org writes: On Thu Jan 6 11, John Baldwin wrote: Note that that usage is rather pointless since it means you apply rtprio to