CVS commit: [matt-nb5-mips64] src/sys/arch/mips/mips

2010-02-16 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Tue Feb 16 08:03:15 UTC 2010

Modified Files:
src/sys/arch/mips/mips [matt-nb5-mips64]: locore.S

Log Message:
Fix typo.


To generate a diff of this commit:
cvs rdiff -u -r1.167.38.13 -r1.167.38.14 src/sys/arch/mips/mips/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [matt-nb5-mips64] src/sys/arch

2010-02-16 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Tue Feb 16 08:13:58 UTC 2010

Modified Files:
src/sys/arch/evbmips/malta [matt-nb5-mips64]: malta_intr.c
src/sys/arch/mips/adm5120 [matt-nb5-mips64]: adm5120_intr.c
src/sys/arch/mips/atheros [matt-nb5-mips64]: ar5312_intr.c
ar5315_intr.c
src/sys/arch/mips/include [matt-nb5-mips64]: cpu.h intr.h
src/sys/arch/mips/mips [matt-nb5-mips64]: genassym.cf mipsX_subr.S
mips_machdep.c mips_softint.c
src/sys/arch/mips/rmi [matt-nb5-mips64]: rmixl_intr.c

Log Message:
Add __HAVE_PREEMPTION support for NetBSD/mips.  Kill IPL_PREEMPT since it
isn't needed.


To generate a diff of this commit:
cvs rdiff -u -r1.19.16.3 -r1.19.16.4 src/sys/arch/evbmips/malta/malta_intr.c
cvs rdiff -u -r1.3.18.1 -r1.3.18.2 src/sys/arch/mips/adm5120/adm5120_intr.c
cvs rdiff -u -r1.6.28.1 -r1.6.28.2 src/sys/arch/mips/atheros/ar5312_intr.c
cvs rdiff -u -r1.5.28.1 -r1.5.28.2 src/sys/arch/mips/atheros/ar5315_intr.c
cvs rdiff -u -r1.90.16.19 -r1.90.16.20 src/sys/arch/mips/include/cpu.h
cvs rdiff -u -r1.3.96.2 -r1.3.96.3 src/sys/arch/mips/include/intr.h
cvs rdiff -u -r1.44.12.16 -r1.44.12.17 src/sys/arch/mips/mips/genassym.cf
cvs rdiff -u -r1.26.36.1.2.23 -r1.26.36.1.2.24 \
src/sys/arch/mips/mips/mipsX_subr.S
cvs rdiff -u -r1.205.4.1.2.1.2.33 -r1.205.4.1.2.1.2.34 \
src/sys/arch/mips/mips/mips_machdep.c
cvs rdiff -u -r1.1.2.4 -r1.1.2.5 src/sys/arch/mips/mips/mips_softint.c
cvs rdiff -u -r1.1.2.11 -r1.1.2.12 src/sys/arch/mips/rmi/rmixl_intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src/etc/rc.d

2010-02-16 Thread Alan Barrett
On Tue, 16 Feb 2010, matthew green wrote:
 Modified Files:
   src/etc/rc.d: fsck_root
 
 Log Message:
 only fsck / if we find it in /etc/fstab.  diskless systems don't need
 a / entry.

This seems reasonable.  But, without this patch, would it work to
place from_mount in the fs_spec column, and 0 in the fs_passno
column?

fs_spec=from_mount seems to be documented only in the mount(8)
man page, not in fstab(5).

--apb (Alan Barrett)


CVS commit: src/sys/dev/pci

2010-02-16 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue Feb 16 10:06:19 UTC 2010

Modified Files:
src/sys/dev/pci: if_wm.c if_wmreg.h

Log Message:
indent, tabify and remove extra spaces.


To generate a diff of this commit:
cvs rdiff -u -r1.197 -r1.198 src/sys/dev/pci/if_wm.c
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/pci/if_wmreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2010-02-16 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue Feb 16 10:10:04 UTC 2010

Modified Files:
src/sys/dev/pci: pcidevs

Log Message:
Add entries for 82576 and 82580


To generate a diff of this commit:
cvs rdiff -u -r1.1022 -r1.1023 src/sys/dev/pci/pcidevs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2010-02-16 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue Feb 16 10:10:26 UTC 2010

Modified Files:
src/sys/dev/pci: pcidevs.h pcidevs_data.h

Log Message:
regen.


To generate a diff of this commit:
cvs rdiff -u -r1.1019 -r1.1020 src/sys/dev/pci/pcidevs.h
cvs rdiff -u -r1.1018 -r1.1019 src/sys/dev/pci/pcidevs_data.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src/sys/arch/i386/i386

2010-02-16 Thread Matthias Drochner

da...@l8s.co.uk said:
 I presume the panic was in the 'return to user' sequence?

Yes, in the iret.

 Does it now SIGSEGV the program?

Yes, which is a bit strange because this happened before
even the first instruction was fetched, and no user-supplied
data are involved (as opposed to setmcontext).
It was entirely the kernel's fault, so a panic would be
only fair.

 (putting in the kernel %cs might leave you running user code with
 kernel privelege)

This couldn't happen here because the CPL=3 is set together with
the CS descriptor, so one should get a GPF on any attempt to
use a kernel descriptor.

best regards
Matthias





Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt




CVS commit: src/sys/arch

2010-02-16 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Feb 16 16:56:30 UTC 2010

Modified Files:
src/sys/arch/hp700/hp700: machdep.c mainbus.c
src/sys/arch/hppa/hppa: pmap.c
src/sys/arch/hppa/include: vmparam.h

Log Message:
Remove the dma24_ex method of dealing with BUS_DMA_24BIT and replace
with a uvm managed freelist of pages in the right range.


To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 src/sys/arch/hp700/hp700/machdep.c
cvs rdiff -u -r1.61 -r1.62 src/sys/arch/hp700/hp700/mainbus.c
cvs rdiff -u -r1.63 -r1.64 src/sys/arch/hppa/hppa/pmap.c
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/hppa/include/vmparam.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/dumplfs

2010-02-16 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Tue Feb 16 18:57:54 UTC 2010

Modified Files:
src/usr.sbin/dumplfs: dumplfs.c

Log Message:
Read the padded superblocks to avoid problems with disks that have
larger sectors than 512 Bytes.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/usr.sbin/dumplfs/dumplfs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9/man9.i386

2010-02-16 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Tue Feb 16 19:59:31 UTC 2010

Modified Files:
src/share/man/man9/man9.i386: nmi.9

Log Message:
Remove trailing whitespace.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/share/man/man9/man9.i386/nmi.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src/sys

2010-02-16 Thread Mindaugas Rasiukevicius
Hello,

David Young dyo...@pobox.com wrote:
 On Sat, Nov 21, 2009 at 03:41:07PM +1100, matthew green wrote:
 
 SPLDEBUG is single-purpose.  It also has some bugs, which I am happy to
 describe.  But let's keep it until we come up with something better.
  
  
  now you've told me all of:  it's single purpose, MD, and doesn't work.
  
  please revert SPLDEBUG.  it does not belong in sys/kern.
 
 Have a little patience.  I am incorporating all of the suggestions that
 I have heard so far into a patch.
 

Is there any progress on this?  IIIRC, general agreement was that
subr_spldebug.c does not belong to sys/kern.

-- 
Mindaugas


CVS commit: src/sys/rump/fs/lib/libntfs

2010-02-16 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue Feb 16 20:34:04 UTC 2010

Modified Files:
src/sys/rump/fs/lib/libntfs: Makefile

Log Message:
remove -D__NetBSD__ (it's done globally now)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/rump/fs/lib/libntfs/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [netbsd-5-0] src/sys/arch/i386/i386

2010-02-16 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Tue Feb 16 21:24:22 UTC 2010

Modified Files:
src/sys/arch/i386/i386 [netbsd-5-0]: ibcs2_machdep.c svr4_machdep.c

Log Message:
Pull up following revision(s) (requested by drochner in ticket #1307):
sys/arch/i386/i386/svr4_machdep.c: revision 1.96
sys/arch/i386/i386/ibcs2_machdep.c: revision 1.40
fix confused CS selector, fixes the panic reported by Mark Davis
per PR port-i386/42787 (the panic happens due to a GPF when a
privileged descriptor is tried to be loaded with the UPL bit set)
The original bug is very old (pre-2.0, i386/svr4_machdep.c rev. 1.69),
but it was relatively harmless until the order of GDT entries was
shuffled (pre-5.0, i386/segments.h rev. 1.42). Before, it caused
a userlevel data selector to be used for CS which broke the emulation
(likely the reason of PR port-i386/32424). The shuffle made that
a privileged selector was used, causing the GPF.
(recent -current doesn't panic on that GPF which seems to be a
side effect of another change)


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.36.16.1 src/sys/arch/i386/i386/ibcs2_machdep.c
cvs rdiff -u -r1.92 -r1.92.6.1 src/sys/arch/i386/i386/svr4_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [netbsd-5-0] src/tools/compat

2010-02-16 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Tue Feb 16 21:26:44 UTC 2010

Modified Files:
src/tools/compat [netbsd-5-0]: getmode.c

Log Message:
Pull up following revision(s) (requested by snj in ticket #1308):
tools/compat/getmode.c: revision 1.8
include unistd.h where getmode is traditionally declared


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.7.8.1 src/tools/compat/getmode.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [netbsd-5-0] src/doc

2010-02-16 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Tue Feb 16 21:27:22 UTC 2010

Modified Files:
src/doc [netbsd-5-0]: CHANGES-5.0.3

Log Message:
Tickets 1307  1308


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.3 -r1.1.2.4 src/doc/CHANGES-5.0.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [netbsd-5] src/doc

2010-02-16 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Tue Feb 16 21:27:25 UTC 2010

Modified Files:
src/doc [netbsd-5]: CHANGES-5.1

Log Message:
Tickets 1307  1308


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.197 -r1.1.2.198 src/doc/CHANGES-5.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



re: CVS commit: src/etc/rc.d

2010-02-16 Thread matthew green

   On Tue, 16 Feb 2010, matthew green wrote:
Modified Files:
   src/etc/rc.d: fsck_root

Log Message:
only fsck / if we find it in /etc/fstab.  diskless systems don't need
a / entry.
   
   This seems reasonable.  But, without this patch, would it work to
   place from_mount in the fs_spec column, and 0 in the fs_passno
   column?
   
   fs_spec=from_mount seems to be documented only in the mount(8)
   man page, not in fstab(5).

hmmm, interesting idea.  initially i didn't realise that you meant for
from_mount to be a literal string.

that would also fix the mount / problem in rc.d/root.


.mrg.


CVS commit: src/libexec/lfs_cleanerd

2010-02-16 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Tue Feb 16 23:13:13 UTC 2010

Modified Files:
src/libexec/lfs_cleanerd: lfs_cleanerd.c

Log Message:
Read the padded superblocks to avoid problems with disks that have
larger sectors than 512 Bytes.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/libexec/lfs_cleanerd/lfs_cleanerd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2010-02-16 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Tue Feb 16 23:20:31 UTC 2010

Modified Files:
src/sbin/fsck_lfs: dir.c inode.c kernelops.h lfs.c pass1.c pass4.c
pass6.c segwrite.c segwrite.h setup.c vars.c vnode.c
src/sbin/newfs_lfs: make_lfs.c newfs.c
src/sys/ufs/lfs: lfs.h lfs_balloc.c lfs_bio.c lfs_inode.c lfs_segment.c
lfs_subr.c lfs_syscalls.c lfs_vfsops.c

Log Message:
Three changes in a single commit.

- drop the notion of frags (LFS fragments) vs fsb (FFS fragments)
  The code uses a complicated unity function that just makes the
  code difficult to understand.

- support larger sector sizes. Fix disk address computations
  to use DEV_BSIZE in the kernel as required by device drivers
  and to use sector sizes in userland.

- Fix several locking bugs in lfs_bio.c and lfs_subr.c.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sbin/fsck_lfs/dir.c
cvs rdiff -u -r1.41 -r1.42 src/sbin/fsck_lfs/inode.c
cvs rdiff -u -r1.3 -r1.4 src/sbin/fsck_lfs/kernelops.h
cvs rdiff -u -r1.31 -r1.32 src/sbin/fsck_lfs/lfs.c
cvs rdiff -u -r1.29 -r1.30 src/sbin/fsck_lfs/pass1.c
cvs rdiff -u -r1.16 -r1.17 src/sbin/fsck_lfs/pass4.c
cvs rdiff -u -r1.22 -r1.23 src/sbin/fsck_lfs/pass6.c
cvs rdiff -u -r1.19 -r1.20 src/sbin/fsck_lfs/segwrite.c
cvs rdiff -u -r1.2 -r1.3 src/sbin/fsck_lfs/segwrite.h
cvs rdiff -u -r1.36 -r1.37 src/sbin/fsck_lfs/setup.c
cvs rdiff -u -r1.13 -r1.14 src/sbin/fsck_lfs/vars.c
cvs rdiff -u -r1.10 -r1.11 src/sbin/fsck_lfs/vnode.c
cvs rdiff -u -r1.15 -r1.16 src/sbin/newfs_lfs/make_lfs.c
cvs rdiff -u -r1.24 -r1.25 src/sbin/newfs_lfs/newfs.c
cvs rdiff -u -r1.132 -r1.133 src/sys/ufs/lfs/lfs.h
cvs rdiff -u -r1.68 -r1.69 src/sys/ufs/lfs/lfs_balloc.c
cvs rdiff -u -r1.116 -r1.117 src/sys/ufs/lfs/lfs_bio.c
cvs rdiff -u -r1.121 -r1.122 src/sys/ufs/lfs/lfs_inode.c
cvs rdiff -u -r1.214 -r1.215 src/sys/ufs/lfs/lfs_segment.c
cvs rdiff -u -r1.73 -r1.74 src/sys/ufs/lfs/lfs_subr.c
cvs rdiff -u -r1.135 -r1.136 src/sys/ufs/lfs/lfs_syscalls.c
cvs rdiff -u -r1.282 -r1.283 src/sys/ufs/lfs/lfs_vfsops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2010-02-16 Thread David Young
Module Name:src
Committed By:   dyoung
Date:   Wed Feb 17 00:15:24 UTC 2010

Modified Files:
src/sys/kern: kern_pmf.c

Log Message:
Initialize the temporary pmf_qual_t in pmf_device_subtree_release()
to avoid a failed ds != NULL assertion, later.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/kern/kern_pmf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man8

2010-02-16 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Wed Feb 17 00:49:21 UTC 2010

Modified Files:
src/share/man/man8: afterboot.8

Log Message:
Fix punctuation and update SEE ALSO section.  From Bug Hunting in
PR misc/40293.


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/share/man/man8/afterboot.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/ia64/include

2010-02-16 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Wed Feb 17 06:06:50 UTC 2010

Modified Files:
src/sys/arch/ia64/include: proc.h

Log Message:
Fix type missmatch.
  forgot to commit since change ia64/syscall.c,1.5.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/ia64/include/proc.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src/etc/rc.d

2010-02-16 Thread Marc Balmer

Am 16.02.10 03:46, schrieb matthew green:

Module Name:src
Committed By:   mrg
Date:   Tue Feb 16 02:46:02 UTC 2010

Modified Files:
src/etc/rc.d: fsck_root

Log Message:
only fsck / if we find it in /etc/fstab.  diskless systems don't need
a / entry.

XXX: still get an error from mount / in etc/rc.d/root itself.


There is a corner case that will now use an unchecked filesystem:  When 
you specify it during boot on the console.


Not sure if that is a real problem, though.


Re: CVS commit: src/sys

2010-02-16 Thread YAMAMOTO Takashi
hi,

can you please add comments on each uvm_fault_* functions you introduced?
eg. what uvm_fault_lower1 does is not clear from its name at all.
to me, it isn't clear what was the purpose of the mechanical splitting of
these functions.

YAMAMOTO Takashi