217392 Commits

Author SHA1 Message Date
skrll
f60fa94a95 Add some defines from the USB 2.0 specification and suppliments. Also,
add some accessor macros while I'm here.
2013-03-21 12:47:16 +00:00
msaitoh
52e43293b4 - Sync with FreeBSD and OpenBSD. Almost the same as OpenBSD rev. 1.325:
- Sync the ring setup code closer to FreeBSD's driver
 - Do not touch the jumbo replenish threshold register on chips that do not
   have jumbo support
 - Add/sync some of the comments
- Use macro.
- Remove unused code.
2013-03-21 12:33:10 +00:00
lukem
1baf19f383 Convert from __attribute__(foo) to the __foo equiv in <sys/cdefs.h> 2013-03-21 05:53:01 +00:00
joerg
600ab75df5 Add missing .El. 2013-03-21 04:57:38 +00:00
isaki
3e866cf1f6 Fix and revive test of atan_inf_neg, atan_inf_pos and atan_tan on i386.
PR port-i386/46108.
The machine epsilon 1.0e-40 is too severe and nonsense for double
because DBL_EPSILON is about 2.2e-16 .  I think that 1.0e-15 is
enough good, in this case.
XXX However, test of atan_tan should be replaced for other reasons.
2013-03-21 02:10:52 +00:00
christos
fc08ea7529 fix groff html generation 2013-03-21 02:04:17 +00:00
christos
40b61ad4dd The man page has numbered registers and conditionals and cannot be handled
by mandoc, so make it use groff. Unfortunately since we don't install cat
pages, this does not work. At least it works for html!
2013-03-21 02:04:05 +00:00
christos
131c9e0b6e handle NOMANDOC in the html case too 2013-03-21 01:48:14 +00:00
christos
b32a30787e revert previous, this is a mandoc issue (does not handle .if and .nr) 2013-03-21 01:39:04 +00:00
christos
2c041bfd20 PR/47675: Nick Hudson: top(1) man page missing default number of seconds 2013-03-21 00:27:44 +00:00
lukem
f4ec715007 Update version to 20110904 for the user-visible change I made back then:
Reduce priority of syslog message if getpeername returns ENOTCONN.
   PR bin/18934 by Greg A. Woods (with supplied fix).
2013-03-21 00:17:26 +00:00
lukem
10126a0b3e Use "unsigned FOO" instead of less-portable "u_FOO". 2013-03-20 23:44:47 +00:00
garbled
991d38698d If the tripplite SMARTLCD ups connects as a usbhid device, it doesn't
work at all, connect as ugen instead.  Verified working with ups-nut.
2013-03-20 15:40:29 +00:00
garbled
6ea70a537c Regen 2013-03-20 15:38:34 +00:00
garbled
2b09f8c00d Add my tripplite UPS 2013-03-20 15:33:24 +00:00
macallan
da8b2f53fd apply kludge to make this more or less work on mips64 with n32 userland
with this ldd can handle both 64 and n32 binaries ( previously it would do 64
only ), o32 support is still broken
Someone more familiar with this code needs to fix this properly.
2013-03-20 15:18:42 +00:00
garbled
1630987ad9 Fix an empty shell function here, per Greg Troxel. Apparently empty shell
functions are not 100% portable.
2013-03-20 14:47:20 +00:00
skrll
4698927030 Bump MSGBUFSIZE on arm ports to 16KB.
OK matt@
2013-03-20 13:43:39 +00:00
pooka
7415696ea8 Attempt two for the previous: _ILP32 comes from headers, so don't use
it to decide if we want to muddle with _FILE_OFFSET_BITS.
2013-03-20 12:59:10 +00:00
pooka
5ccc76a66f Use _FILE_OFFSET_BITS=64 on Solaris too (necessary for 32bit builds). 2013-03-20 12:30:13 +00:00
skrll
c6b03e1f0b Only set wMaxPacketSize to 64 for HS/FS and set to 8 for LS to be within
the USB spec.

Should help PR/46696.

Requesting 64 bytes via wLength is indeed common, but fallback to 8
would probably help.
2013-03-20 11:14:51 +00:00
kiyohara
9de952279e Use mkubootimage, if obs600. 2013-03-20 06:35:49 +00:00
christos
bc0f55de88 Make ALG's autoloadable by providing in the config file:
alg "algname"
2013-03-20 00:29:46 +00:00
garbled
4daade7385 Add a new installer image for Raspberry PI to evbarm
Includes the following major changes:

1) Add new configmenu item to sysinst to allow creation of users at
post-install time.
2) Add an sshramdisk type to evbarm, which is a ramdisk with sshd
enabled, allowing users to install on a headless PI by sshing to the
device with the account "sysinst" password "netbsd" to begin the
installation. (Note, neither the account, nor the ssh setup are copied to
the finalized installation image)
3) Change mkimage to build a boot-only image, without the root filesystems.

Much of the sshramdisk code could be reused on other ports easily.
2013-03-19 22:16:52 +00:00
christos
6c49ed342b Need assym.h for libkern 2013-03-19 19:59:40 +00:00
skrll
a321948d45 To quote the BCM2835 datasheet that's publicly available
"The BCM2835 system uses an AMBA AXI-compatible interface
	structure. In order to keep the system complexity low and data
	throughput high, the BCM2835 AXI system does not always
	return read data in-order."

Deal with this by defining DSB for _ARM_ARCH_6.

OK matt@
2013-03-19 17:11:13 +00:00
macallan
05550c2a93 rearrange things a little bit to avoid showing garbled VRAM content while
switching colour depth
2013-03-19 16:49:56 +00:00
msaitoh
7201e6ecd1 Fix compile error if BGE_DEBUG is set. 2013-03-19 16:49:11 +00:00
martin
99e62f4068 Fix argument order for "n14" 2013-03-19 13:23:58 +00:00
isaki
1cd7b13dd0 const-ify. 2013-03-19 09:28:39 +00:00
isaki
81e778a36f Remove 'register'. 2013-03-19 09:17:17 +00:00
msaitoh
24d5b42322 KNF a bit. 2013-03-19 06:34:28 +00:00
msaitoh
3572840d82 - Rename PHY related flags for the consistency. It's the same as FreeBSD.
- Remove BGE_10_100_ONLY flag because this was not used.
  For 10/100 devices, when calling mii_attach(), mask BMSR_EXTSTAT flag to
  not to check Gigabit flags. It's the same as FreeBSD.
2013-03-19 04:10:12 +00:00
msaitoh
3efff5d852 Fix three bugs:
- An workaround for TX data corruption is only for 5719 "A0".
  Fix the wrong evaluation.
- Check BGE_RXBDFLAG_IPV6 flag for 5717_PLUS case.
  Note that {tcp,udp}6csum flag is currently not added in the capability.
- Add delay after clearing BGE_MACMODE_TBI_SEND_CFGS for the link checking.
  FreeBSD has the same delay().
2013-03-19 03:40:16 +00:00
msaitoh
4ed481f549 Fix Buffer Manager Mbuf Pool settings which was modified in rev. 1.202. 2013-03-19 02:56:16 +00:00
christos
c902a41f06 can we please stop breaking the build? These get compiled by the kernel
environment when there are no userland header files!
2013-03-19 02:07:43 +00:00
agc
ca99397396 fix some lint on i386, noticed by Greg Troxel, thanks! 2013-03-19 01:00:16 +00:00
pooka
ac8531a7b9 Terminate result of readlink(). Makes writefilewatch_setup() work in
cases when the buffer doesn't accidentally contain suitable zeroes.

Thanks to Juan RP who debugged this with me!
2013-03-18 21:00:52 +00:00
martin
19ec7b0e9f Mark a few more test cases known to only work by chance as failing
and point to PR 47665.
Julio: how do we make such cases not fail when they actually happen to
work (by pure luck)?
2013-03-18 20:03:56 +00:00
plunky
5ec364d4d9 C99 section 6.7.2.3 (Tags) Note 3 states that:
A type specifier of the form

	enum identifier

  without an enumerator list shall only appear after the type it
  specifies is complete.

which means that we cannot pass an "enum vtype" argument to
kauth_access_action() without fully specifying the type first.
Unfortunately there is a complicated include file loop which
makes that difficult, so convert this minimal function into a
macro (and capitalize it).

(ok elad@)
2013-03-18 19:35:35 +00:00
gdt
2431ad86cc Initialize variable used as (conditional) result parameter.
ip6_insertfraghdr either sets a result parameter or returns an error.
While the caller only uses the result parameter in the non-error case,
knowing that requires cross-module static analysis, and that's not
robust against distant code changes.  Therfore, set ip6f to NULL
before the function call that maybe sets it, avoiding a spuruious
warning and changing the future possible bug from an unitialized
dereference to a NULL deferrence.
2013-03-18 19:31:39 +00:00
para
3964c3f0c8 i386 pmap.h got a forward declarition for vm_map from systm.h
insert a forward declaration
2013-03-18 16:32:32 +00:00
pooka
ea6c5ef319 add librumphijack to the list 2013-03-18 15:55:43 +00:00
para
82aa1e7edd calculate vnode cache size based on the resource it gets allocated from
this stops setting kern.maxvnodes to high so it exhausts available space in kmem

http://mail-index.netbsd.org/tech-kern/2013/03/08/msg015095.html
2013-03-18 13:36:21 +00:00
pooka
e3425032cb Move the rumpuser_net set of hypercalls to be a private to the sockin
component.  This cleans up the generic hypercall interfaces from ones
specific to only one component.  They should always have been private,
but the infrastructure to "make it so" didn't exist earlier.

no functional change
2013-03-18 13:14:10 +00:00
jmcneill
d35e9908e8 If there are no devices attached to the mux and software does
WSxxxIO_SETVERSION, the change doesn't actually get applied to the event
source as wsmux hands off processing of these ioctls to attached devices.
Handle these ioctls directly from the mux device instead of passing them
through, to correct an issue that prevented keyboards and mice from working
in X if there were zero devices attached when the X server started.
2013-03-18 11:40:39 +00:00
rmind
4183ea5f53 Always use BPF JIT for NPF rules (using BPF code) if it is available. 2013-03-18 02:24:45 +00:00
rmind
543d2971ab - Extend npf.conf syntax to support dynamic NAT policies.
- Imply dynamic group when using "ruleset" keyword.
2013-03-18 02:17:49 +00:00
rmind
9ef92dc6c0 npf_session_establish: fix previous. 2013-03-18 00:17:20 +00:00
rmind
3b8a2fcf9c Add npf_session_trackable_p() and npf_session_fillent() for the common code.
Simplify.  No functional change.
2013-03-18 00:14:57 +00:00