CVS commit: src

2012-04-20 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Fri Apr 20 12:11:30 UTC 2012

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/lib/libc/sys: Makefile
Added Files:
src/tests/lib/libc/sys: t_mlock.c

Log Message:
Add few unit tests for mlock(2), including a case for PR kern/44788.


To generate a diff of this commit:
cvs rdiff -u -r1.465 -r1.466 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.21 -r1.22 src/tests/lib/libc/sys/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/lib/libc/sys/t_mlock.c

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



CVS commit: src/sbin/resize_ffs

2012-04-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Apr 20 13:20:39 UTC 2012

Modified Files:
src/sbin/resize_ffs: resize_ffs.c

Log Message:
fix cast in local macro


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sbin/resize_ffs/resize_ffs.c

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



CVS commit: src/usr.sbin/makefs/chfs

2012-04-20 Thread Adam Ciarcinski
Module Name:src
Committed By:   adam
Date:   Fri Apr 20 13:28:27 UTC 2012

Modified Files:
src/usr.sbin/makefs/chfs: Makefile.inc chfs_mkfs.c

Log Message:
Fix building tools


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/makefs/chfs/Makefile.inc
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/makefs/chfs/chfs_mkfs.c

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



CVS commit: src/sys/arch/powerpc/booke/dev

2012-04-20 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Apr 20 13:51:48 UTC 2012

Modified Files:
src/sys/arch/powerpc/booke/dev: pq3etsec.c

Log Message:
Don't use the current value of maccfg2.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/powerpc/booke/dev/pq3etsec.c

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



CVS commit: src/include

2012-04-20 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Fri Apr 20 16:20:45 UTC 2012

Modified Files:
src/include: string.h

Log Message:
Do not wrap other header files with extern "C".


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/include/string.h

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



CVS commit: src

2012-04-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Apr 20 17:31:30 UTC 2012

Modified Files:
src/include: stdlib.h
src/lib/libc/compat/include: stdlib.h
src/lib/libc/compat/stdlib: Makefile.inc
Added Files:
src/lib/libc/compat/stdlib: compat_putenv.c

Log Message:
PR/46360: YAMAMOTO Takashi: Restore NetBSD-5 compatibility with putenv()
copying the passed string (which is not ToG compliant), instead of using
it directly in the environment arrat as it should. Needs to be pulled up
to NetBSd-6.


To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/include/stdlib.h
cvs rdiff -u -r1.4 -r1.5 src/lib/libc/compat/include/stdlib.h
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/compat/stdlib/Makefile.inc
cvs rdiff -u -r0 -r1.1 src/lib/libc/compat/stdlib/compat_putenv.c

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



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

2012-04-20 Thread Jean-Yves Migeon
Module Name:src
Committed By:   jym
Date:   Fri Apr 20 18:28:43 UTC 2012

Modified Files:
src/sys/arch/x86/include: psl.h

Log Message:
PSL_AC is user-settable.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/x86/include/psl.h

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



CVS commit: src/usr.bin/xlint/lint1

2012-04-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Apr 20 18:35:28 UTC 2012

Modified Files:
src/usr.bin/xlint/lint1: err.c tree.c

Log Message:
add __PRETTY_FUNCTION__


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/usr.bin/xlint/lint1/err.c
cvs rdiff -u -r1.70 -r1.71 src/usr.bin/xlint/lint1/tree.c

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



CVS commit: src/sys

2012-04-20 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Fri Apr 20 20:23:21 UTC 2012

Modified Files:
src/sys/dev/ic: ahcisata_core.c mvsata.c siisata.c
src/sys/dev/scsipi: atapi_wdc.c scsi_base.c scsiconf.c scsiconf.h
scsipi_base.c scsipiconf.h
src/sys/dev/usb: umass_scsipi.c
src/sys/sys: param.h

Log Message:
Add a bustype_async_event_xfer_mode() callback to scsipi_bustype (which can
be NULL), so that transport-specific details of transfer mode setting/printing
can be handled more easily.
Move scsipi_async_event_xfer_mode() and scsipi_print_xfer_mode() to
scsi_base.c and split in parallel scsi and FC/SAS parts.
size of struct scsipi_bustype has changed, welcome to 6.99.5


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/ic/ahcisata_core.c
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/ic/mvsata.c src/sys/dev/ic/siisata.c
cvs rdiff -u -r1.112 -r1.113 src/sys/dev/scsipi/atapi_wdc.c
cvs rdiff -u -r1.89 -r1.90 src/sys/dev/scsipi/scsi_base.c
cvs rdiff -u -r1.266 -r1.267 src/sys/dev/scsipi/scsiconf.c
cvs rdiff -u -r1.57 -r1.58 src/sys/dev/scsipi/scsiconf.h
cvs rdiff -u -r1.158 -r1.159 src/sys/dev/scsipi/scsipi_base.c
cvs rdiff -u -r1.120 -r1.121 src/sys/dev/scsipi/scsipiconf.h
cvs rdiff -u -r1.44 -r1.45 src/sys/dev/usb/umass_scsipi.c
cvs rdiff -u -r1.412 -r1.413 src/sys/sys/param.h

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



CVS commit: othersrc/share/examples/ec2

2012-04-20 Thread Jeff Rizzo
Module Name:othersrc
Committed By:   riz
Date:   Fri Apr 20 21:01:03 UTC 2012

Added Files:
othersrc/share/examples/ec2: README TODO build_ec2_img.sh create-new.sh
create_ec2_ami.sh set_ec2_env.sh
othersrc/share/examples/ec2/files: bootstrap.sh ec2_bootmail
ec2_firstboot ec2_init motd spec.in

Log Message:
Example scripts and supporting files for creating Amazon EC2 AMIs
(Amazon Machine Images) running NetBSD.  Requires an Amazon EC2 account.
Please test and extend these scripts!

The original scripts were written by Jean-Yves Migeon, heavily modified

>From the README:

Notes on using these scripts for creating EC2 AMIs
--

Here are some assumptions made:

- You have the EC2 API tools already set up.  If you don't already, the
  easiest way to do so is to install the misc/ec2-api-tools package
  from pkgsrc.  An easy way to check if they're set up properly is
  if you can run "ec2-describe-instances" without an error.

- You are running this from a NetBSD system.  It's certainly not impossible
  to update this for running on another platform, but it'll be necessary
  to adapt to using a NetBSD tools build for (at least) makefs.

- Your default EC2 profile allows ssh to your running instances from
  the location you're running this script!

- The most-used (and tested!) script (create_ec2_ami.sh) assumes that there
  are NetBSD 6.0 AMIs available on EC2 already, for bootstrapping.  The
  public images in account 101367081206 (an account owned by me, Jeff Rizzo,
  a NetBSD developer) are available for use, and are searched in addition
  to the user's own AMIs.  You can also specify a particular AMI to use
  for the bootstrapping.  There is another script (create-new.sh) which
  is less well tested, and which may currently be broken, which allows
  you to use a Linux AMI to create a NetBSD one.  You will need to
  create a 'bootstrap' image with an ext2 file system (see build_ec2_img.sh,
  specifically the "-b" flag).

CREATING AN AMAZON MACHINE IMAGE (AMI)
--

Once you've verified the Amazon EC2 command-line tools work (see above),
the basic workflow is as follows:

- Edit the set_ec2_env.sh script to have the location of your certs/keys.
  This file is read by several of the scripts.

- Either build sets with build.sh, or identify where the release you want to
  base your AMI on lives.  You can access built sets via http, ftp, or on
  the local fs.

- Build an image for upload, using the build_ec2_img.sh script.  This
  image will contain everything *except* the kernel (the kernel will be
  on a separate ext2fs partition, due to EC2 boot requirements), and will
  be resized to fit the volume created in the AMI creation script.

  An example of doing this:

  ./build_ec2_img.sh -d 
http://ftp.netbsd.org/pub/NetBSD/NetBSD-6.0_BETA/amd64/binary/sets

  ...this will create an image file in the current directory.

- Create the AMI from the above image plus a kernel.  You have to
  specify which region to create the AMI in:

  ./create_ec2_ami.sh -i ./NetBSD-AMI.img.xz -a x86_64 -d "AMI description goes 
here" -k 
http://ftp.netbsd.org/pub/NetBSD/NetBSD-6.0_BETA/amd64/binary/kernel/netbsd-XEN3_DOMU.gz
 -v "6.0_BETA-or-whatever-version-string-you-want" us-east-1

The process can take anywhere from 10-60 minutes, depending on which region
you choose and how fast your connection is for uploading.  After a successful
run, be sure to test your AMI!


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 othersrc/share/examples/ec2/README \
othersrc/share/examples/ec2/TODO \
othersrc/share/examples/ec2/build_ec2_img.sh \
othersrc/share/examples/ec2/create-new.sh \
othersrc/share/examples/ec2/create_ec2_ami.sh \
othersrc/share/examples/ec2/set_ec2_env.sh
cvs rdiff -u -r0 -r1.1 othersrc/share/examples/ec2/files/bootstrap.sh \
othersrc/share/examples/ec2/files/ec2_bootmail \
othersrc/share/examples/ec2/files/ec2_firstboot \
othersrc/share/examples/ec2/files/ec2_init \
othersrc/share/examples/ec2/files/motd \
othersrc/share/examples/ec2/files/spec.in

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



CVS commit: src/sys

2012-04-20 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Fri Apr 20 21:57:34 UTC 2012

Modified Files:
src/sys/dev: rndpseudo.c
src/sys/sys: rnd.h

Log Message:
Fix a bug and a compilation problem.  Bug: spin mutexes don't have owners,
so KASSERT(!mutex_owned()) shouldn't be used to assert that the current
LWP does not have the mutex.  Compilation problem: explicitly include
sys/mutex.h from rnd.h so evbarm builds again.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/rndpseudo.c
cvs rdiff -u -r1.31 -r1.32 src/sys/sys/rnd.h

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



CVS commit: src/sys

2012-04-20 Thread Mindaugas Rasiukevicius
Module Name:src
Committed By:   rmind
Date:   Fri Apr 20 22:23:25 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: genassym.cf mptramp.S
src/sys/arch/amd64/include: param.h
src/sys/arch/i386/i386: genassym.cf mptramp.S
src/sys/arch/i386/include: param.h
src/sys/arch/x86/acpi: acpi_wakeup.c
src/sys/arch/x86/include: cpu.h cpuvar.h pmap.h
src/sys/arch/x86/x86: cpu.c mtrr_i686.c pmap.c pmap_tlb.c
src/sys/arch/xen/include: xenpmap.h
src/sys/arch/xen/x86: cpu.c x86_xpmap.c xen_pmap.c
src/sys/kern: subr_kcpuset.c sys_sched.c
src/sys/sys: kcpuset.h

Log Message:
- Convert x86 MD code, mainly pmap(9) e.g. TLB shootdown code, to use
  kcpuset(9) and thus replace hardcoded CPU bitmasks.  This removes the
  limitation of maximum CPUs.

- Support up to 256 CPUs on amd64 architecture by default.

Bug fixes, improvements, completion of Xen part and testing on 64-core
AMD Opteron(tm) Processor 6282 SE (also, as Xen HVM domU with 128 CPUs)
by Manuel Bouyer.


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/arch/amd64/amd64/genassym.cf
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/amd64/amd64/mptramp.S
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/amd64/include/param.h
cvs rdiff -u -r1.91 -r1.92 src/sys/arch/i386/i386/genassym.cf
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/i386/i386/mptramp.S
cvs rdiff -u -r1.76 -r1.77 src/sys/arch/i386/include/param.h
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/x86/acpi/acpi_wakeup.c
cvs rdiff -u -r1.49 -r1.50 src/sys/arch/x86/include/cpu.h
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/x86/include/cpuvar.h
cvs rdiff -u -r1.51 -r1.52 src/sys/arch/x86/include/pmap.h
cvs rdiff -u -r1.97 -r1.98 src/sys/arch/x86/x86/cpu.c
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/x86/x86/mtrr_i686.c
cvs rdiff -u -r1.176 -r1.177 src/sys/arch/x86/x86/pmap.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/x86/x86/pmap_tlb.c
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/xen/include/xenpmap.h
cvs rdiff -u -r1.90 -r1.91 src/sys/arch/xen/x86/cpu.c
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/xen/x86/x86_xpmap.c
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/xen/x86/xen_pmap.c
cvs rdiff -u -r1.4 -r1.5 src/sys/kern/subr_kcpuset.c
cvs rdiff -u -r1.41 -r1.42 src/sys/kern/sys_sched.c
cvs rdiff -u -r1.4 -r1.5 src/sys/sys/kcpuset.h

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



CVS commit: src/doc

2012-04-20 Thread Mindaugas Rasiukevicius
Module Name:src
Committed By:   rmind
Date:   Fri Apr 20 22:43:20 UTC 2012

Modified Files:
src/doc: CHANGES

Log Message:
Mention support for 256 CPUs on amd64.


To generate a diff of this commit:
cvs rdiff -u -r1.1697 -r1.1698 src/doc/CHANGES

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



CVS commit: [netbsd-6] src/sys/arch

2012-04-20 Thread Jeff Rizzo
Module Name:src
Committed By:   riz
Date:   Fri Apr 20 23:32:15 UTC 2012

Modified Files:
src/sys/arch/amd64/acpi [netbsd-6]: acpi_wakecode.S
src/sys/arch/amd64/amd64 [netbsd-6]: locore.S mptramp.S
src/sys/arch/i386/acpi [netbsd-6]: acpi_wakecode.S
src/sys/arch/i386/i386 [netbsd-6]: locore.S mptramp.S
src/sys/arch/x86/include [netbsd-6]: psl.h

Log Message:
Pull up following revision(s) (requested by jym in ticket #189):
sys/arch/x86/include/psl.h: revision 1.7
sys/arch/i386/i386/locore.S: revision 1.98
sys/arch/amd64/acpi/acpi_wakecode.S: revision 1.11
sys/arch/amd64/amd64/mptramp.S: revision 1.13
sys/arch/i386/acpi/acpi_wakecode.S: revision 1.15
sys/arch/i386/i386/mptramp.S: revision 1.23
sys/arch/amd64/amd64/locore.S: revision 1.68
Set the CR0_AM bit so processes can enable alignment check errors under
x86 through PSL_AC bit.
ATF test incoming shortly.
PSL_AC is user-settable.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.10.18.1 src/sys/arch/amd64/acpi/acpi_wakecode.S
cvs rdiff -u -r1.66 -r1.66.2.1 src/sys/arch/amd64/amd64/locore.S
cvs rdiff -u -r1.12 -r1.12.14.1 src/sys/arch/amd64/amd64/mptramp.S
cvs rdiff -u -r1.14 -r1.14.18.1 src/sys/arch/i386/acpi/acpi_wakecode.S
cvs rdiff -u -r1.95.10.1 -r1.95.10.2 src/sys/arch/i386/i386/locore.S
cvs rdiff -u -r1.22 -r1.22.14.1 src/sys/arch/i386/i386/mptramp.S
cvs rdiff -u -r1.6 -r1.6.34.1 src/sys/arch/x86/include/psl.h

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



CVS commit: [netbsd-6] src

2012-04-20 Thread Jeff Rizzo
Module Name:src
Committed By:   riz
Date:   Fri Apr 20 23:35:20 UTC 2012

Modified Files:
src/share/man/man4 [netbsd-6]: rnd.4
src/sys/dev [netbsd-6]: rndpseudo.c
src/sys/kern [netbsd-6]: kern_rndpool.c kern_rndq.c subr_cprng.c
src/sys/sys [netbsd-6]: cprng.h rnd.h

Log Message:
Pull up following revision(s) (requested by tls in ticket #190):
sys/sys/rnd.h: revision 1.31
sys/sys/rnd.h: revision 1.32
sys/sys/cprng.h: revision 1.5
sys/kern/subr_cprng.c: revision 1.8
share/man/man4/rnd.4: revision 1.19
sys/kern/kern_rndq.c: revision 1.3
sys/dev/rndpseudo.c: revision 1.8
sys/dev/rndpseudo.c: revision 1.9
sys/kern/kern_rndpool.c: revision 1.2
Address multiple problems with rnd(4)/cprng(9):
1) Add a per-cpu CPRNG to handle short reads from /dev/urandom so that
   programs like perl don't drain the entropy pool dry by repeatedly
   opening, reading 4 bytes, closing.
2) Really fix the locking around reseeds and destroys.
3) Fix the opportunistic-reseed strategy so it actually works, reseeding
   existing RNGs once each (as they are used, so idle RNGs don't get
   reseeded) until the pool is half empty or newly full again.
Fix a bug and a compilation problem.  Bug: spin mutexes don't have owners,
so KASSERT(!mutex_owned()) shouldn't be used to assert that the current
LWP does not have the mutex.  Compilation problem: explicitly include
sys/mutex.h from rnd.h so evbarm builds again.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.18.2.1 src/share/man/man4/rnd.4
cvs rdiff -u -r1.6.2.1 -r1.6.2.2 src/sys/dev/rndpseudo.c
cvs rdiff -u -r1.1 -r1.1.2.1 src/sys/kern/kern_rndpool.c
cvs rdiff -u -r1.1.2.1 -r1.1.2.2 src/sys/kern/kern_rndq.c
cvs rdiff -u -r1.5.2.1 -r1.5.2.2 src/sys/kern/subr_cprng.c
cvs rdiff -u -r1.4 -r1.4.2.1 src/sys/sys/cprng.h
cvs rdiff -u -r1.29.2.1 -r1.29.2.2 src/sys/sys/rnd.h

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



CVS commit: [netbsd-6] src/doc

2012-04-20 Thread Jeff Rizzo
Module Name:src
Committed By:   riz
Date:   Fri Apr 20 23:35:54 UTC 2012

Modified Files:
src/doc [netbsd-6]: CHANGES-6.0

Log Message:
Tickets 189, 190.


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.72 -r1.1.2.73 src/doc/CHANGES-6.0

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



CVS commit: src/external/gpl3/gdb/dist/gdb

2012-04-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Apr 21 00:16:35 UTC 2012

Modified Files:
src/external/gpl3/gdb/dist/gdb: nbsd-thread.c

Log Message:
If we are asked to step on ptid(-1,0,0), then step on our inferior_thread
instead, which is the main thread instead of the currently executing thread
which is not what we want, since we've been running and nother thread might
have just started.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gdb/dist/gdb/nbsd-thread.c

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



CVS commit: src/tests/fs/puffs

2012-04-20 Thread Emmanuel Dreyfus
Module Name:src
Committed By:   manu
Date:   Sat Apr 21 01:03:47 UTC 2012

Modified Files:
src/tests/fs/puffs: t_fuzz.c

Log Message:
Do not set PUFFS_KFLAG_CACHE_FS_TTL for PUFFS tests


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/fs/puffs/t_fuzz.c

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



CVS commit: src/tests/lib/libc/sys

2012-04-20 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sat Apr 21 01:15:13 UTC 2012

Modified Files:
src/tests/lib/libc/sys: t_mlock.c

Log Message:
Avoid harmless compiler (integer) warnings.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/sys/t_mlock.c

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