Commit Graph

83410 Commits

Author SHA1 Message Date
gdamore
58af66bd2c Add some optional debug (enabled with TODR_DEBUG) to see what your RTC
is giving you.  Also, while here, bump the threshold for "preposterous"
dates by 20 years.  Now any date earlier than late 1994 is considered
preposterous.
2006-09-12 05:47:47 +00:00
plunky
264c79359e Endian issues:
hci_event.c:
 - Convert memo->response.clock_offset to host-endian.

hci_ioctl.c:
 - printf format tweak (size_t)

hci_link.c:
 - Convert memo->response.clock_offset from host-endian.
 - Tweak a DIAGNOSTIC message.

l2cap_signal.c:
 - In l2cap_recv_config_req(), rp->scid is little-endian so make sure
   we convert from host-endian.

	from scw@
2006-09-11 22:12:39 +00:00
plunky
00d762682c hci_link.c:
- In hci_link_free(), do not unlink items from a LIST queue within
   a LIST_FOREACH() iterator.

rfcomm_session.c:
 - In rfcomm_session_recv_mcc_nsc(), do not unlink items from a LIST
   queue within a LIST_FOREACH() iterator.

	from scw@
2006-09-11 22:08:38 +00:00
plunky
4b5125cac5 btsco.c:
- sco_getopt(..., SO_SCO_MTU, ...) expects the address of a uint16_t,
   not an int. So change sc_mtu's type to uint16_t.
 - Try a little harder to ensure btsco_round_blocksize() does not
   return zero. Prevents a subsequent panic in audio_init_ringbuffer().

	from scw@
2006-09-11 21:59:09 +00:00
rittera
26b97f3a17 Added innitialization to bs in ndis_getstate_80211. It was causing a compiler warning. Pointed out by Kulcsar Ferenc 2006-09-11 21:17:18 +00:00
gdamore
9a6f8be8b3 Don't bother checking wday, that breaks some clock chips. Thank to Kurt Schreiner <ks at ub dot uni-mainz dot de>. 2006-09-11 20:48:55 +00:00
reinoud
2b551264c1 Aparently i've misread, backing out change. 2006-09-11 19:43:55 +00:00
gdamore
f475d69b1b ANSIfy and KNF. 2006-09-11 19:14:57 +00:00
plunky
ed4d8d47a0 also include service name in dictionary being sent to kernel.
(this is not used just yet, but it might be in the future and it will
be easier if we dont have to provide code to handle its absence)
2006-09-11 18:30:27 +00:00
reinoud
5411355304 Don't add one to the capacity returned of READ CAPACITY! it results in
reporting a sd* disc that is one sector too big (!) Normally not much a
problem in FFS since its clustered but other filingsystems *do* care.
2006-09-11 17:57:07 +00:00
gdamore
dcc5a66350 Convert a2kbbc and a3kbbc to newer clock_ymdhms convenience routines in
kern_todr.
2006-09-11 17:18:00 +00:00
gdamore
6cfcc60e81 Convert netwinder and cats (and any other footbridge based system in the
future) to timecounters, using the dc21285_fclk.   ok nick@, chris@.
2006-09-11 15:18:23 +00:00
gdamore
4ee91c0828 Convert next68k to generic-todr and timecounter.
Tested by bouyer@.
2006-09-11 15:07:50 +00:00
nonaka
10179a2cac All supported model is PCLOCK == 33.33MHz 2006-09-11 13:54:14 +00:00
nonaka
a7cd4d65eb adapt to new rs5c313 driver. 2006-09-11 13:48:57 +00:00
he
d22aa0483f Add now-required includes, and correct newly added kauth call so
that it builds.
2006-09-11 12:06:39 +00:00
he
1a6aaf9a43 Add required includes for kauth. Fix the newly added kauth call
so that it builds.
2006-09-11 11:55:33 +00:00
jld
fd184070b3 Convert TSC offset to nanoseconds correctly under Xen3. The hypervisor
appears to dynamically adjust its estimate of the CPU clock speed, and
scaling the TSC as intended is necessary to avoid time anomalies.
2006-09-11 06:57:30 +00:00
gdamore
a78ddf8bdc ANSIfy, and KNF fixes. 2006-09-11 06:02:30 +00:00
matt
b9525730ee deal with 'bool' definitions 2006-09-11 03:37:12 +00:00
matt
ecaf18c847 Add AFLAGS+= ${AOPTS.${.IMPSRC:T}} 2006-09-11 03:12:48 +00:00
matt
efc67dee86 Add a way for a user to know what nodes have changed when a node has been
inserted or removed.  Refactor node insertion to not require rebalancing
all the time or a loop if it does.  In rb_tree_swap_prune_and_rebalance,
don't call rb_tree_reparent_nodes, instead do the work ourselves (since
we will eventually undo half of the work of rb_tree_reparent_nodes).
2006-09-10 23:57:31 +00:00
matt
9bed3293b9 If __STDC__ and GNU C >= 3.0, define C99's bool, true, false 2006-09-10 23:49:21 +00:00
gavan
932a44eae6 Enable timecounters for iyonix 2006-09-10 23:15:58 +00:00
gavan
8814e529bd i80321 timecounter support.
Patch from Garrett D'Amore, tested by me.
2006-09-10 23:13:59 +00:00
jld
a6927cc636 Re-arm the Xen interval timer in the timer event handler. This fixes
the case of HZ!=100, and might be beneficial otherwise.

The set_timer_op in idle_block remains, to protect against a system_time
miscalculation's causing us to block without the timer set; so, while
there, spl-protect the processed_system_time read and set_timer_op.
2006-09-10 22:25:58 +00:00
gdamore
378f852e66 First pass at enabling a lot of ARM ports to convert swiftly to
__HAVE_GENERIC_TODR.  Just put #define __HAVE_GENERIC_TODR in types.h
if your port uses one of these files.
2006-09-10 22:04:18 +00:00
gdamore
800e6e3df3 Removal of stub clock stuff and convert to use MI routines for timecounter
and todr support.  ok cherry@.
2006-09-10 21:30:14 +00:00
cherry
ab7f7a7df7 Re-fit to NetBSD: Try #1 2006-09-10 21:16:56 +00:00
cherry
19dda99daa Root Memory disk nits 2006-09-10 21:07:20 +00:00
plunky
af7c47754c add bluetooth support to amd64 port, built by default in GENERIC kernels 2006-09-10 19:50:48 +00:00
plunky
24893ded9a add bluetooth support to sparc64, built by default in GENERIC 2006-09-10 19:49:28 +00:00
gdamore
3ed78c56f7 Enable __HAVE_GENERIC_TODR. ok gavan@ 2006-09-10 19:17:48 +00:00
gdamore
b5e819f5d1 Do not supply our own versions of inittodr, etc. if a port declares
__HAVE_GENERIC_TODR.
2006-09-10 18:57:02 +00:00
riz
c927ff3953 g/c unused SK_{SET,CLR}BIT macros 2006-09-10 18:39:27 +00:00
gdamore
a012c5d7ea Allow for leap seconds. 2006-09-10 16:25:32 +00:00
plunky
4f1cbddc12 update to bluetooth device attachment:
remove pseudo-device btdev(4) and inherent limitations

add bthub(4) which autoconfigures at bluetooth controllers as they
are enabled. bluetooth devices now attach here.

btdevctl(8) and its cache is updated to handle new semantics

etc/rc.d/btdevctl is updated to configure devices from a list
in /etc/bluetooth/btdevctl.conf
2006-09-10 15:45:55 +00:00
bouyer
96c9f80c3d Hypercalls returns negative error codes, so return -error in ioctl
function.
2006-09-10 14:34:11 +00:00
tsutsui
e5dc12ca9c Change mips3_clockintr() to take (struct clockframe *) rather than
pc and status since it calls hardclock(9) anyway.
OK'ed by gdamore on port-mips.
2006-09-10 14:27:38 +00:00
gavan
843ed515f0 dsrtc_settime already takes a volatile struct timeval *, also qualify
with volatile for dsrtc_gettime.
2006-09-10 14:06:54 +00:00
tsutsui
aca8f57145 Change dumb DELAY(9) macro into inline version with asm like
other mips ports for gcc4's aggressive optimization.
2006-09-10 11:12:20 +00:00
simonb
f4ec8156e1 Add NetBSD RCS tag to top of file. 2006-09-10 11:03:14 +00:00
blymn
eee340bffe Prevent a veriexec file from being truncated. 2006-09-10 10:59:44 +00:00
tsutsui
3134621b5b Fix splclock()/splx() mismatch in previous. 2006-09-10 08:09:46 +00:00
tsutsui
ca3e00268a - add more sanity checks (from playstation2/clock.c)
- fix a typo
2006-09-10 07:06:48 +00:00
tsutsui
10e0e7415c Remove or comment out now unused code after MI mips3_clockintr migration. 2006-09-10 06:41:09 +00:00
tsutsui
c231727267 Fix a typo (settime -> gettime) so that we can get time. 2006-09-10 06:39:00 +00:00
yamt
4d81bcfe21 unexport getnewbuf. 2006-09-10 06:35:42 +00:00
dbj
8bcbd194da make comment match logic in cache_lookup dvp unlock code 2006-09-10 05:51:33 +00:00
manu
bdfbd98ac1 When getting the program argument or environement string, we previously
assumed that all the strings were stored in a row, separated by NUL chars,
 at the address pointed bu argv[0] (or envp[0]).

This was wrong: if the program changed argvs[0], we still read the
first string correctly, but the next strings did contain unexpected data.

The fix: read the whole argv (or envp) array, then copy the string one by
one, using their addresses in argv (or agrp)
2006-09-10 05:46:02 +00:00