Commit Graph

138402 Commits

Author SHA1 Message Date
pooka
1a814357c3 add panasonic 50" touch panel 2005-07-07 09:58:23 +00:00
yamt
f3a6189c5b yamt-lazymbuf branch. 2005-07-07 08:49:50 +00:00
christos
c7f5a1fb60 1. use p = uio->uio_procp consistently and eliminate suspicious uses
of curproc (where uio->uio_procp should be used?). Don't do this
   for nfs_commit(), because yamt says it is possibly wrong.
2. nfs_doio() does not use struct proc; remove it and the code to compute it.
3. use copyin_proc() and copyout_proc() instead of copyin() and copyout().
4. check return of copyout_proc(). and mark return from copyin_proc() XXX
5. Eliminate check p == curproc assertion check from nfs_write;
   nfs_read does not have it and we might be called in a different
   process context anyway (PR 20138).
2005-07-07 02:05:03 +00:00
dyoung
0b81c10899 Cosmetic: use the idiom &ic->ic_nw_keys[0] instead of ic->ic_nw_keys,
just be a little more parallel to &ic->ic_nw_keys[IEEE80211_WEP_NKID]
on the same line.
2005-07-07 00:43:01 +00:00
dyoung
86283b24c9 Don't write WEP keys to the chip unless it is enabled.
Suspend and restart the transmit/receive engines while writing WEP
keys.
2005-07-07 00:12:22 +00:00
christos
ac0ee9b2c0 Allow F{G,S}OWN to succeed on a tty that has no session associated with it,
and it is not the controlling tty. This change allows us to use SIGIO on
a non-controlling tty (eg. debug ntpd with a refclock on a tty).
2005-07-07 00:01:32 +00:00
dyoung
83a9bf2c5c Historically, an(4), ath(4), atw(4), rtw(4), and wi(4) have printed
out their modes and rates at boot.  Revert to the historical
behavior.
2005-07-06 23:58:14 +00:00
dyoung
707b2b4ae1 Avoid an unnecessary API difference between NetBSD and FreeBSD:
back out my change to ieee80211_crypto_encap that made it free its
mbuf argument on error.  I had thought it was a bug.  It was not.
It's the drivers that are broken.  Make an(4), atw(4), ipw(4),
iwi(4), ral(4), rtw(4), ural(4), and wi(4) free the mbuf when
ieee80211_crypto_encap returns NULL.  Also, return ath(4) to the
way it was---i.e., free the mbuf.

Thanks to Sam Leffler to pointing out my mistake.
2005-07-06 23:44:15 +00:00
thorpej
f44b62c49d Collect vmcmd statistics. 2005-07-06 23:08:57 +00:00
christos
de124326cb Make copy{in,out}_proc work on all processes (including curproc) by
special-casing the curproc case. Use copy{in,out}_proc directly instead
of checking for curproc each time. Discussed with thorpej.
2005-07-06 22:30:42 +00:00
christos
32bff6afc2 Fix memory leaks found by valgrind. From Julien Torres 2005-07-06 21:13:02 +00:00
kleink
c6cc410a70 Addendum to previous: copyin_proc() must not be used on curproc. 2005-07-06 20:56:49 +00:00
kleink
e3c2a9c2f6 Use copyin_proc() to peek for trailing zeroes in sections, as we might be
running in a different context (i.e. a process tracing).
2005-07-06 20:31:33 +00:00
fair
97be9dc692 disable the use of TSC on Cyrix CPUs and document why:
When powersave mode is enabled, the TSC stops counting while the CPU is halted
in idle() waiting for an interrupt. This means we can't use the TSC for
interval time in microtime(9), and thus it is disabled here.

It still makes a perfectly good cycle counter for program profiling, so long
as you remember you're counting cycles, and not time. Further, if you don't
mind not using powersave mode, the TSC works just fine, so this should really
be optional. XXX
2005-07-06 20:29:16 +00:00
junyoung
6b3daf3992 Remove unused #define. 2005-07-06 19:31:04 +00:00
junyoung
d151b9e857 Remove unused #define and trailing spaces. 2005-07-06 19:29:50 +00:00
junyoung
a52d20370c Remove unused #define. 2005-07-06 19:27:50 +00:00
junyoung
1fb48c245e - Do not mix C-style comments and assembly-style comments.
- Remove unused #define.
2005-07-06 19:24:08 +00:00
thorpej
d379332a27 Document the new @emul magic symlink var as well as the new @{var} syntax. 2005-07-06 19:05:09 +00:00
thorpej
d697722880 A few tweaks to magic symlinks:
- Add a @{var} syntax in addition to @var.  This allows for patterns like
  @{ostype}-@{osrelease}-@{machine_arch}.
- Add a @emul variable that expands to the process's emulation name
  (e.g. "netbsd", "netbsd32", "linux", etc.)
2005-07-06 18:53:00 +00:00
fair
c0ca9de9a9 move
microtime_func = cc_microtime;

to a point after the CPU-specific setup routine is called because some of them
"turn off" the TSC because it's broken on those platforms, or not suitable
for use as an interval timer.

One such platform is the Cyrix/NSC Geode processor; when powersave mode is
enabled, the "hlt" instruction stops the TSC too. It continues to be perfectly
reasonable for program profiling as a cycle counter in this mode, but it is
unsuitable for interval time keeping (time doesn't stop just because you're
asleep or napping), and, for now, we don't have a separate flag to make this
distinction - we just test for the presence of TSC to enable cc_microtime().
2005-07-06 18:35:39 +00:00
junyoung
4f4cb6f0b3 Add another case we can skip boot wait. 2005-07-06 18:12:31 +00:00
drochner
e0d7e15c44 tolerate NULL pointers at some places 2005-07-06 17:17:15 +00:00
drochner
45ec6e4557 add some clarification, and refer to POSIX
partly borrowed from FreeBSD
2005-07-06 17:02:56 +00:00
drochner
64df4b988e fix for non-const lsearch() arg, also fix return values and the
description of the comparision function, and refer to POSIX
partly borrowed from FreeBSD
2005-07-06 16:57:28 +00:00
drochner
ecef4b3d3f The source array of lsearch() shouldn't be "const".
Being here, cleanup the const castaway stuff.
2005-07-06 15:47:15 +00:00
drochner
e866f2794b Move insque/remque/lsearch/lfind from libcompat to libc,
they are in XPG4-UNIX, XSH5.0, mentioned in SUSv3 etc.
Minimal update of the manpages. (more needed)
2005-07-06 14:43:24 +00:00
bouyer
a5bc956f51 Always allow open() on the raw partition to succeed, even if any of the
SCSI command in cdopen() fails. Fix PR kern/30288 by Pavel Cahyna.
2005-07-06 14:28:39 +00:00
macallan
b105560197 sysmon_* attributes for device tctrl 2005-07-06 12:16:35 +00:00
wiz
98eb16742c file-4.14 is out. 2005-07-06 12:01:34 +00:00
macallan
2e4b899a81 forgot the $NetBSD header 2005-07-06 11:42:53 +00:00
macallan
f4a919f68e Add support for the TS102 PCMCIA controller found in SPARCbooks 2005-07-06 11:40:27 +00:00
macallan
d3e4755bf5 changed envsys support to use the sysmon API, added support for the power
button ( see powerd(8) )
2005-07-06 11:31:16 +00:00
wiz
fdf8185afa In macdef, point to $ command (from jmc@openbsd), and split paragraph (it was getting a bit big). 2005-07-06 11:21:26 +00:00
wiz
ee1fddfe1e Use more macros, and use them more consistently.
Fix a few typos.
2005-07-06 11:18:05 +00:00
junyoung
1b3dbc9530 If no hard disks are present, do not wait for key press. 2005-07-06 09:22:31 +00:00
junyoung
4a6d325623 De-__P() 2005-07-06 08:28:31 +00:00
junyoung
ddfd23b21c BIOSDISK_EXT13INFO_V3 -> BIOSDISK_EXTINFO_V3
u_intNN_t -> uintNN_t
u_int -> unsigned int
Remove trailing spaces
2005-07-06 08:27:31 +00:00
wiz
d3a0b4c8cd Sync usage with man page (from jmc@openbsd). 2005-07-06 07:57:19 +00:00
wiz
d19171ad7d Drop trailing whitespace. Bump date fore previous. 2005-07-06 07:47:45 +00:00
dyoung
f8e6fb9af1 Update the list of supported cards for wi(4). Add cross-references.
Addresses PR 30141, PR 30162, PR 30164, and PR 30231.
2005-07-06 07:30:59 +00:00
dyoung
674e9b926b Identify Alvarion Ltd. BreezeNET PC-DS.11b. Addresses kern/30231. 2005-07-06 07:16:00 +00:00
dyoung
b01131baed Regen. 2005-07-06 07:06:29 +00:00
dyoung
b34605c1a7 Add Alvarion (vendor) and Alvarion Ltd. BreezeNET PC-DS.11b (product).
From PR kern/30231.
2005-07-06 07:05:25 +00:00
dyoung
05cab81dd8 Don't write the WEP keys to the device if it is invalid (e.g.,
unplugged) or if it is not enabled.  Fixes kern/30592.
2005-07-06 06:49:25 +00:00
fair
5b701efaa2 Document that misaligned transfers will be done with PIO rather than DMA. 2005-07-06 06:36:10 +00:00
thorpej
527d62e0a2 - When starting an ATA or ATAPI transfer, handle the case where (*dma_init)()
returns EINVAL, indicating that DMA cannot be done for this transfer.
  Fall back to PIO in this case.
- Add a geodeide_dma_init() routine that checks to make sure that transfers
  start on a 16 byte boundary, returning EINVAL if not.  Works around a chip
  bug that causes a hard system hang.

Problem reported and patch tested by Erik Fair.
2005-07-06 01:46:52 +00:00
he
053b017df8 Wrap use of MALLOC_DECLARE() within an #ifdef _KERNEL, it's declaration
in sys/mallocvar.h is within a similar conditional.
Fixes build problem for vax.
2005-07-05 23:04:14 +00:00
he
36fc2f101b Add const to a duplicate declaration of sd_state(). 2005-07-05 22:21:38 +00:00
he
c92bbdc733 Follow up after adding const by doing some more. 2005-07-05 22:20:47 +00:00