Commit Graph

205962 Commits

Author SHA1 Message Date
christos 7cdf1ad1d3 add a missing file, found with the new binutils. No chance we are going
to run mknative again on this, so the manual fix.
2011-10-02 14:24:08 +00:00
hannken cafde4eb6a The path getnewvnode()->getcleanvnode()->vclean()->VOP_LOCK() will panic
if the vnode we want to clean is a layered vnode and the caller already
locked its lower vnode.

Change getnewvnode() to always allocate a fresh vnode and add a helper
thread (vdrain) to keep the number of allocated vnodes within desiredvnodes.

Rename getcleanvnode() to cleanvnode() and let it take a vnode from the
lists, clean and free it.

Reviewed by: David Holland <dholland@netbsd.org>

Should fix:
PR #19110 (nullfs mounts over NFS cause lock manager problems)
PR #34102 (ffs panic in NetBSD 3.0_STABLE)
PR #45115 (lock error panic when build.sh*3 and daily script is running)
PR #45355 (Reader/writer lock error:  rw_vector_enter: locking against myself)
2011-10-02 13:00:06 +00:00
mbalmer 44f61c8547 It's actually 'the flag locator', not 'flags' (as 'flags' can not be used
as a locator name for reasons unknown to me.)
2011-10-02 12:43:52 +00:00
mbalmer ebecabb816 Consistent use of 'return'. 2011-10-02 12:25:40 +00:00
mbalmer 56e78725ec Document gpioiic flag in a comment. 2011-10-02 12:19:17 +00:00
mbalmer f2b8ed7ad8 Build iic(4) and gpioiic(4) as modules. 2011-10-02 12:13:08 +00:00
mbalmer 8e70f7be4f Modules for iic(4) and gpioiic(4). 2011-10-02 11:43:30 +00:00
mbalmer 5589d51709 ii2c can be built as module. 2011-10-02 11:38:48 +00:00
mbalmer 550019b8a7 Add the flag locator (missed in the previous commit). 2011-10-02 10:01:25 +00:00
mbalmer 90077b6e6d Add a ga_flags field to the gpio_attach structure to hand driver
specific flags to drivers being attached at gpio pins.  gpioiic(4)
uses this to reverse the SDA/SCL signal order.  gpioctl(8) accepts
the flag values as optional argument to the attach command.
While here, make sure we retain backwards compatability and wrap compat
code in #ifdef COMPAT_50/#endif.
2011-10-02 09:33:18 +00:00
dholland 81e8d7471a Describe the output more accurately, and in the correct order. Noted by
Snader_LB on freenode.
2011-10-02 01:51:00 +00:00
dholland 1e6da30b2e Fix ambiguous/confusing wording. 2011-10-02 01:47:27 +00:00
christos 4e3d131fd2 add a missing E 2011-10-01 21:47:08 +00:00
christos bc3b670f7d The arm .arm.atpcs section does not have segment information, so skip it. 2011-10-01 19:25:24 +00:00
christos 0dd4f3a513 disable test on the vax until we fix it. 2011-10-01 18:38:39 +00:00
christos 1ef7da4f3d Undo previous, Checking for vax is more appropriate. 2011-10-01 17:56:11 +00:00
christos 2cbc70fcc3 no more ifdef vax 2011-10-01 17:54:13 +00:00
christos 789b17ab02 use _FLOAT_IEEE754 instead of vax. 2011-10-01 17:46:10 +00:00
christos 75b61a4bee Define a macro we can use to detect if a port has support for ieeefp 2011-10-01 17:39:14 +00:00
chs e873fd069d use gcc builtin for memset() on vax too. 2011-10-01 16:06:24 +00:00
chs 351915c5a2 add missing KERNEL_BASE_EXT. 2011-10-01 16:02:21 +00:00
chs 7cb12714f7 fix build errors with gcc 4.5. 2011-10-01 15:59:00 +00:00
chs 90d3e8aadd elroy regs don't need to be packed, makes this work with gcc 4.5. 2011-10-01 15:51:36 +00:00
chs 877ceea7f6 PDC_CHASSIS_INFO needs a third parameter, the size of the LCD structure. 2011-10-01 15:51:17 +00:00
chs edf71167bd fix EXIT label for fusufault, caught by new binutils. 2011-10-01 15:50:46 +00:00
njoly ef2babe19f Fix sub-section reference. 2011-10-01 08:50:28 +00:00
pgoyette 0b5ef36c08 Fix typo 2011-10-01 02:55:00 +00:00
christos 879077c683 add more tests. 2011-09-30 23:51:50 +00:00
christos 0abddc98e9 add symbolic name printing. 2011-09-30 23:46:15 +00:00
christos a92b0ce490 don't use %edi! 2011-09-30 23:45:41 +00:00
christos 6dd90d6d37 make rounding work 2011-09-30 23:42:00 +00:00
jym f0eca4d0dd Inform that the prop_{array,dictionary}_send_syscall(3) change breaks
backward compatibility with old quota2 binaries, so ensure that you
update both (proplib + quota2 executables) simultaneously when updating
a -current installation.
2011-09-30 22:17:50 +00:00
jym afca4e3b49 Fix an implementation inconsistency with the prop_*_send_syscall() and
prop_*_recv_syscall() functions from proplib(3). They now share the
same logic as the one from prop_*_send_ioctl() functions:
- returns an int
- 0 indicates "no error", otherwise returns the error number (and
set errno)

Many consumers of the prop_*_{ioctl, syscall} expect errno to be set
on error and use err() to display the error message. As such, ensures that
errno gets set before returning from these functions.

prop_*_send_syscall() functions returned a boolean, and now return an int.
Fix all call sites to use the new paradigm (only quota2 is affected in src).

As the prop_*_{send,recv}_syscall() API appeared in -current and is only
used by the recent quota2 code, I am not bumping the lib. The API change
only affects the prop_*_send_syscall() function (recv_syscall()s were
already used correctly), so ensure you are not mixing "old" -current
quota binaries with a new proplib(3) (or the other way around). This
change will be announced via a HEADS-UP and UPDATING.

Does not affect the kernel part of proplib.

Document the correct API in prop_array(3) and prop_dictionary(3).

Thanks to Francois Tigeot for noticing the API inconsistency and
reporting it on tech-kern@.

ok bouyer@.
2011-09-30 22:08:18 +00:00
njoly 0ddf58db65 Do not try to open files up to the RLIMIT_NOFILE limit, which fails
when process limit is identical to the whole system limit. Just do it
for a small fixed value, and adjust the limit accordingly instead.
2011-09-30 21:08:19 +00:00
christos 4bea49e915 use ATF_CHECK_MSG instead of err() in atf. 2011-09-30 19:12:35 +00:00
christos adcbdeaf66 PR/45156: Moritz Wilhelmy: Add 4G Systems XS Stick P14 USB 3G modem support. 2011-09-30 18:59:04 +00:00
christos fae590c371 regen 2011-09-30 18:43:19 +00:00
christos c1042e944c Add 4G Systems XSStick P14 USUPA 5.76Mb/s USB modem 2011-09-30 18:42:59 +00:00
christos 83ade10494 print stderr, when things go wrong. 2011-09-30 18:27:18 +00:00
christos eb5e1b5450 Make the rounding test work properly, and actually test the rounding modes. 2011-09-30 17:44:58 +00:00
christos 26ca52544d PR/44293: Paul Goyette: Fix the mess of the rounding code. 2011-09-30 17:42:34 +00:00
njoly 3a909f7545 There's no stand alone vpanic.9 man page. 2011-09-30 15:47:20 +00:00
jruoho cbbf4a4b63 Add expected failures for Qemu. 2011-09-30 14:50:20 +00:00
mrg af1a60157f avoid sys/systm.h in userland ppath.h.
include types.h/stdarg.h in all systm.h configs.

my amd64 build without man pages now worked at least.
2011-09-30 10:23:03 +00:00
mrg ad1c111812 re-arrange the end of uvm_page_recolor() to avoid the multiple exit
points.  move the call to uvm_pager_realloc_emerg() to after we
drop the uvm_fpageqlock, since it may be taken again in uvm_km_alloc().

fixes LOCKDEBUG crashes with the previous change.
2011-09-30 05:29:12 +00:00
sjg b9a9eadbed Elaborate a little 2011-09-30 05:07:39 +00:00
jruoho 5647e2ae42 Note the order of the dummy boolean states. 2011-09-30 04:21:17 +00:00
jruoho 7f1b62e468 Remove redundant assignment. 2011-09-30 04:10:54 +00:00
he 8dd0ec196d Bump SYMTAB_SPACE so that the symbol table fits again. 2011-09-30 04:05:07 +00:00
jruoho dd10cec68c Fix bugs noted by alnsn@. Namely, preallocate the global structure in
order to avoid locking issues during deregistration.
2011-09-30 04:01:21 +00:00