Commit Graph

182131 Commits

Author SHA1 Message Date
joerg ea92254557 Fix markup. 2009-07-11 18:35:48 +00:00
jakllsch edeb84e77a Fix WSKBD_RAW mode ukbd -> pckbd translation for Pause/Break and
Print Screen/Sys Req keys so xf86-input-keyboard can figure out
what we want.

Additionally, fix dead URL, and add a note that this emulation
is not completely identical to a real pckbd.
2009-07-11 18:26:58 +00:00
dsl 66df44074f After alg 2 triggers, mask with ~x (alg 3) to ignore bytes with top bit set.
Then use bit scan to work out which byte is zero.
If the source is misaligned read the aligned word and make the unwanted
(low order) bytes non-zero.
Passes regression test - which probably tests just enough cases.
2009-07-11 11:57:47 +00:00
dsl 749e537220 The local function pointer wasn't enough to stop gcc using the builtin
strlen!  Move to file scope and make 'volatile'.
When test fails use write (printf might be broken) to report info.
To aid testing new versions, use dlsym() for "test_strlen" defaulting to
strlen() so that the rest of the program doesn't use the broken version.
2009-07-11 11:45:16 +00:00
dsl 5acd65fcb7 Change comments about algorithms, 99.6% for random data isn't 'rare' in my book!
(The 'rare' case is any byte values 0x80-0xff.)
2009-07-11 08:48:51 +00:00
pgoyette 9a7f03a6bb Store the limit values directly in the driver-private sensor data since
we don't have access to sysmon_envsys(8)'s copy at refresh time.  (The
refresh is driven completely within the driver, and sysmon is uninvolved.)

Resolves unexpected alarms (as reported by David Young) such as over-limit
alarms on fan sensors which have only lower limit values.
2009-07-11 05:03:11 +00:00
dyoung 2261ca8c07 In lwp_create(), take a reference to l2's filedesc_t instead of
taking a reference to curlwp's by calling fd_hold().  If lwp_create()
is called from fork1(), then l2 != curlwp, but l2's and not curlwp's
filedesc_t whose reference we should take.

This change stops the problem I describe in
<http://mail-index.netbsd.org/tech-kern/2009/07/09/msg005422.html>,
where /dev/rsd0a is never properly closed after fsck / runs on it.
This change seems to quiet my USB backup drive, sd0 at scsibus0 at
umass0, which had stopped spinning down when it was not in use:
The unit probably stayed open after mount(8) tried (and failed:
errant fstab entry) to mount it.

I am confident that this change is an improvement, but I doubt that
it is the last word on the matter.  I hate to get under the filedesc_t
abstraction by fiddling with fd_refcnt, and there may be something
I have missed, so somebody with greater understanding of the file
descriptors code should have a look.
2009-07-10 23:07:54 +00:00
jakllsch 23f0810103 Add more Keypad usages in the Keyboard/Keypad page
from USB HID Usage Tables document version 1.11.

Admitedly these are not going to be noticed when ukbd(4) is around.

While here, correct a typo (that's also in the HUT document),
and normalize to ASCII a non-UTF-8 encoding of "moire".

"This may prove useful to some of you someday,
 perhaps in a somewhat bizarre set of circumstances."
                                 - Tom Lehrer
2009-07-10 22:11:58 +00:00
christos 87fc4e29f5 1. centralize the fsck error handling
2. don't check if root is on nfs
3. reboot -n if root was modified as the manual page suggests
2009-07-10 20:02:21 +00:00
pgoyette 8313fc7094 Better late than never - document recent changes to sysmon_envsys(8) 2009-07-10 15:59:38 +00:00
pgoyette e0b6ea852c Correct usage of PROP_DRIVER_LIMITS flag 2009-07-10 15:30:45 +00:00
pgoyette d36ea2afc5 Document usage of PROP_DRIVER_LIMITS flag and set it correctly.
Use flag bits to determine validity of limit values, rather than
assuming that invalid/not-present values are set to zero.
2009-07-10 15:27:33 +00:00
pgoyette 0fab9769e4 Remove some code (bracketed by #ifdef NOTYET / #endif) that should not
have been committed in the first place.
2009-07-10 13:09:09 +00:00
skrll c3b8071e3d Note ucas for hp700. 2009-07-10 12:23:06 +00:00
roy 5f399f5c68 Use a function to add extra data to the vendor area so that data added
remains constant for both DISCOVER and REQUEST messages.
2009-07-10 12:16:31 +00:00
roy 4cd4e97af9 We should request the DHCP parameters we need. 2009-07-10 02:55:42 +00:00
roy eb66460837 Protect against short IP addresses in the DHCP message. 2009-07-10 02:41:39 +00:00
roy 0aeddffdd4 When using DHCP, request the parameters that we need. Fixes PR kern/38830.
Thanks to Tim McIntosh.
2009-07-10 01:29:54 +00:00
joerg a8766915af Ensure that y,x are valid coordinates before using them. 2009-07-09 22:08:45 +00:00
rmind 054e90dd48 Mention emap and few more items. 2009-07-09 21:53:08 +00:00
rmind 3cee4be877 - Fix rare crashe in the intr_lapic_tlb_bcast() handler: save and setup
%fs on i386, %gs on amd64 registers, before using them.  Otherwise, it
  might be invalid/garbage, eg. IPI can interrupt userspace.

- Explicitly initialize per-CPU emap generation number.

Thanks <drochner> for reporting and testing of patch.
2009-07-09 21:43:16 +00:00
macallan ec8b80662c enable mmap() support for /dev/pci* with options PCI_ALLOW_MMAP 2009-07-09 19:22:21 +00:00
christos 8e714f4b6e add stdio.h since we are using FILE. From Grant Erickson 2009-07-09 19:02:04 +00:00
pgoyette 4bcd1e306c Don't extract upper/lower limit values if the values are not valid.
Correct comparison of cur_value against lower-limits.
2009-07-09 15:50:26 +00:00
nisimura e846f5a648 - show link speed and duplexity.
- fix an incomplete mod in mii_read().
2009-07-09 15:39:28 +00:00
dholland 976c3188e1 Add an entry for last summer's libpthread compat fix, since it
apparently never got listed (only posted on current-users) and came up
again recently.

Thanks to Martin Husemann, Matthias Drochner, and Geoff Wing for info
(any errors are mine).

As per http://mail-index.netbsd.org/current-users/2008/08/05/msg003880.html.
2009-07-09 08:04:32 +00:00
dholland ac1daebd72 Fix a garbled old entry that I happened upon just now. 2009-07-09 07:50:24 +00:00
mrg c6b110c7ca XXX: -Wno-error savage_exa.c for now. 2009-07-09 07:50:10 +00:00
mrg c7d3afbfeb note that update builds might again fail for new xorg 2009-07-09 07:31:54 +00:00
mrg 6773cdf6e4 XORG_CURRENT_VERSION is now 1.6.2. 2009-07-09 07:30:17 +00:00
mrg 393017d87b fix build for pixman 0.15.14 2009-07-09 02:15:48 +00:00
roy 514c68c0e1 Import dhcpcd-5.0.6 2009-07-08 22:36:29 +00:00
roy b1b5513e68 Update to dhcpcd-5.0.6
Changes from dhcpcd-5.0.5 include
 * Fix crash on MIPS, fixes PR bin/41682
   Thanks to Tim McIntosh <tmcintos@eskimo.com> for the patch
 * Save and restore interface MTU when changing
 * IP whitelist
 * Ensure that the lease and pidfile directories exist at startup
2009-07-08 22:33:21 +00:00
tls e234ec7db5 Update to libevent-1.4.11-stable. This has been a long time coming and
fixes many bugs, particularly with signal handling.

The regression tests have also been updated and complete successfully
on amd64.
2009-07-08 21:23:52 +00:00
reinoud 77a7c01d68 Fix alternating oddity in RMW strategy. Even when in the reading state it
would push out elements to fillup-read only when the time had come for them.
This could then trickle feed the read queue slowly, but fast enough to prevent
it from switching state.
2009-07-08 19:04:08 +00:00
dyoung bfd7452af9 pmf_event_inject(9) may be called from interrupt context, so we
must not allocate a pmf_event_workitem_t using kmem_alloc(9).  Use
pool_cache(9), instead, because it is safe in interrupt context.
Thanks, rmind@, for catching the problem and suggesting the solution.
2009-07-08 18:53:36 +00:00
pgoyette e17701cfef Remove driver name from debug message. Not all drivers have set this
early enough, and we can easily figure out the driver name from some
subsequent debug messages.
2009-07-08 17:54:27 +00:00
pgoyette c7ba8d5428 Initialize lims.sel_flags before using it. Prevents spurious limit
events being created for devices that don't provide internal limits.

Thanks to Mattias for finding this.
2009-07-08 17:28:53 +00:00
reinoud ff90f0d37d Remove unused LIST_ENTRY()'s now replaced by the rbtree. 2009-07-08 14:53:23 +00:00
reinoud 7f0e98bc0d Since OSTA has not defined a good set of flags to cover our flags, its not
usefull to implement chflags(). Instead ignore it for now since the error
codes might confuse esp. gui's.
2009-07-08 14:46:55 +00:00
pgoyette e65558aef1 Clean up a couple of debug statements that got missed previously. 2009-07-08 13:34:11 +00:00
tsutsui 0a36a9ab42 Merge local <atari/atari/intr.h> into common <machine/intr.h>. 2009-07-08 12:23:09 +00:00
njoly b3f068f354 Fix amd64 build with VIDEO_DEBUG. 2009-07-07 21:55:17 +00:00
dyoung c88ea823f8 At the bottom of vndclear(), clear VNF_CLEARING: it is no longer
needed to exclude vndopen(), and it will prevent subsequent opens
if we leave it.
2009-07-07 19:51:22 +00:00
christos e09097a0e7 simplify previous. 2009-07-07 17:08:19 +00:00
tsutsui 2d065ae111 KNF, ANSIfy, etc. 2009-07-07 16:16:18 +00:00
tsutsui d41c06b17d Explicitly initialize the MFP Timer-B for delay(9) from atari_hwinit()
rather than using if(!atari_realconfig) in clockmatch().
(I doubt the latter one has actually been called..)
2009-07-07 15:37:02 +00:00
tsutsui 0745bac2ee Some KNF and cosmetics. 2009-07-07 15:15:35 +00:00
tsutsui 77d3988d38 Add a workaround for annoying
"WARNING: negative runtime; monotonic clock has gone backwards"
message. Partially taken from hp300.
2009-07-07 15:15:08 +00:00
christos e234b387dc The compatibility call to re-export from sys_mount() calls
mountd_set_exports_list, with the mnt_updating mutex held. Account for that
to avoid a locking against myself panic.
2009-07-07 14:09:05 +00:00