Pull up following revision(s) (requested by khorben in ticket #118):
	common/lib/libc/arch/i386/string/small/strchr.S: revision 1.3
Look for the character to locate before checking for the NUL character
As documented in PR port-i386/49208, this fixes strchr(s, '\0'), as used by
the FAT first-stage bootloader on x86 (bootxx_msdos).
strchr(s, '\0') is otherwise equivalent to strlen(string), which would
probably look nicer in the original file, dosfs.c from libsa.
Confirmed working in qemu and on real hardware.
ok joerg@
XXX pull-up to netbsd-6 and netbsd-7
Pull up following revision(s) (requested by tls in ticket #119):
	sys/dev/iscsi/iscsi_send.c: revision 1.10
The "throttling" code in the in-kernel iSCSI initiator is very questionable;
it sleeps on a ccb that appears highly unlikely to wake up, since it seems
to be waiting to _submit_ that very ccb!  This is doubtless why someone tried
to disable it in the default case via several #defines.
Unfortunately one of those #defines is later tested backwards.  Fix that.
The in-kernel initiator now seems to survive a system build without hanging.
Pull up following revision(s) (requested by jmcneill in ticket #120):
	sys/dev/ic/mpt_netbsd.c: revision 1.28
	sys/dev/ic/mpt_netbsd.c: revision 1.29
	sys/dev/ic/mpt.c: revision 1.17
	sys/dev/ic/mpt_netbsd.c: revision 1.30
	sys/dev/ic/mpt_netbsd.c: revision 1.31
	share/man/man4/bio.4: revision 1.12
	share/man/man4/mpt.4: revision 1.6
	sys/dev/ic/mpt.h: revision 1.8
	sys/dev/ic/mpt_netbsd.c: revision 1.26
	sys/dev/ic/mpt_netbsd.c: revision 1.27
- Add bio(4) support.
- xref mpt(4) in bio(4).
- xref bio(4) in mpt(4).
- show "sd0" instead of "mpt0" for volume device name
- include vendor/product/rev info for volumes and their disks.
- implement BIOCDISK_NOVOL
- for BIOCDISK_NOVOL, set bd_disknovol=true for any disk not associated with a
  volume for BIOCDISK_NOVOL, when setting bd_disknovol=false, also set
  bv_volid
Ticket 118-120.
Pull up following revision(s) (requested by hannken in ticket #67):
	sys/fs/puffs/puffs_node.c: revision 1.34
	sys/fs/puffs/puffs_vnops.c: revision 1.187
Fix the puffs_sop_thread -> puffs_cookie2vnode path:
- pass the cookie by reference
- add missing mutex_exit()
- update assertion for VNON typed vnodes
Pull up following revision(s) (requested by jmcneill in ticket #121):
	distrib/utils/embedded/conf/beagleboard.conf: revision 1.18
Escape $ in $board so this will boot on beaglebone too.
Pull up following revision(s) (requested by christos in ticket #122):
	lib/libc/stdio/printf.3: revision 1.64
	lib/libc/stdio/vsnprintf.c: revision 1.28
	lib/libc/stdio/vsnprintf_ss.c: revision 1.13
Return EOVERFLOW like FreeBSD does if the buffer size exceeds INT_MAX
(well FreeBSD documents INT_MAX + 1, but in the code it is INT_MAX).
Mention 121, 122 and update to 67.
Pull up following revision(s) (requested by jmcneill in ticket #123):
	sys/dev/sdmmc/sdhc.c: revision 1.48
Don't check slot type for pre-3.0 controllers, the bits were reserved at
the time. If an older controller advertises 1.8V support, just use it.
This fixes high-speed mode support for me on BeagleBone Black.
Ticket #123
Pull up following revision(s) (requested by jmcneill in ticket #124):
	sys/dev/sdmmc/sdhc.c: revision 1.49
Correct clk div calculation for SD 3.0 controllers.
Ticket #124
Pull up following revision(s) (requested by skrll in ticket #125):
	sys/dev/wsfb/genfb.c: revision 1.56
handle WSDISPLAYIO_GET_EDID and WSDISPLAYIO_GET_FBINFO only if the bus
frontend doesn't ( as in, returns EPASSTHROUGH or doesn't register a
handler )
Now flags passed from things like bcm2835_genfb.c are actually seen by
xf86-video-wsfb again and automatically disabling shadowfb works again,
which results in a major speedup on this kind of hardware.
Ticket #125
Pull up following revision(s) (requested by skrll in ticket #126):
	sys/arch/evbarm/rpi/rpi_machdep.c: revision 1.47
	sys/arch/arm/broadcom/bcm2835reg.h: revision 1.12
	sys/arch/evbarm/conf/RPI: revision 1.52
	sys/arch/evbarm/conf/RPI: revision 1.53
	sys/arch/evbarm/conf/RPI: revision 1.54
	sys/arch/arm/broadcom/bcm2835_emmc.c: revision 1.10
	sys/arch/arm/broadcom/bcm2835_emmc.c: revision 1.11
	sys/arch/arm/broadcom/bcm2835_emmc.c: revision 1.12
	sys/arch/arm/broadcom/bcm2835_emmc.c: revision 1.13
	sys/arch/arm/broadcom/bcm2835_emmc.c: revision 1.14
	sys/arch/arm/broadcom/bcm2835_emmc.c: revision 1.15
	sys/arch/arm/broadcom/bcm2835_dmac.c: revision 1.3
	sys/arch/arm/broadcom/bcm2835_dmac.c: revision 1.4
	sys/arch/arm/broadcom/bcm2835_dmac.h: revision 1.2
	sys/arch/arm/broadcom/bcm2835_dmac.c: revision 1.5
	sys/arch/arm/broadcom/bcm2835_emmc.c: revision 1.18
	sys/arch/arm/broadcom/bcm2835_dmac.h: revision 1.3
	sys/arch/arm/broadcom/bcm2835_dmac.c: revision 1.6
	sys/arch/arm/broadcom/bcm2835_dmac.c: revision 1.7
	sys/arch/arm/broadcom/bcm2835_dmac.c: revision 1.8
	sys/arch/arm/broadcom/bcm2835_dmac.c: revision 1.9
	sys/arch/arm/broadcom/files.bcm2835: revision 1.23
	sys/dev/sdmmc/sdhc.c: revision 1.45
	sys/dev/sdmmc/sdhc.c: revision 1.46
	sys/dev/sdmmc/sdhc.c: revision 1.47
	sys/dev/sdmmc/sdhcvar.h: revision 1.14
Various RPI DMAC and sdhc improvements.
Ticket #126
Pull up following revision(s) (requested by skrll in ticket #127):
	sys/dev/sdmmc/sdhc.c: revision 1.50
Fix divisor calculation for SDHC 3.0.
Ticket #127
Pull up following revision(s) (requested by ast in ticket #128):
	games/primes/pattern.c: revision 1.7
	games/primes/primes.h: revision 1.6
	games/primes/spsp.c: revision 1.1
	games/primes/Makefile: revision 1.8
	games/factor/factor.c: revision 1.27
	games/factor/factor.6: revision 1.13
	games/primes/primes.c: revision 1.20
	games/primes/primes.c: revision 1.21
	games/primes/pr_tbl.c: revision 1.8
	games/primes/primes.6: revision 1.4
	games/primes/primes.6: revision 1.5
Imported and adapted from FreeBSD svn r272166 and r272207; this fixes
false positives for products of primes larger than 2^16. For example,
before this commit:
  $ /usr/games/primes 4295360521 4295360522
  4295360521
but
  $ /usr/games/factor 4295360521
  4295360521: 65539 65539
or
  $ /usr/games/primes 3825123056546413049 3825123056546413050
  3825123056546413049
yet
  $ /usr/games/factor 3825123056546413049
  3825123056546413049: 165479 23115459100831
or
  $ /usr/games/primes 18446744073709551577
  18446744073709551577
although
  $ /usr/games/factor 18446744073709551577
  18446744073709551577: 139646831 132095686967
Incidentally, the above examples show the smallest and largest cases that
were erroneously stated as prime in the range 2^32 .. 3825123056546413049
.. 2^64; the primes(6) program now stops at 3825123056546413050 as
primality tests on larger integers would be by brute force factorization.
In addition, special to the NetBSD version:
. for -d option, skip first difference when start is >65537 as it is incorrect
. corrected usage to mention both the existing -d as well as the new -h option
For original FreeBSD commit message by Colin Percival, see:
http://svnweb.freebsd.org/base?view=revision&revision=272166
usage police
Ticket #128