Commit Graph

138342 Commits

Author SHA1 Message Date
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
he
3bed0ba4dd Add const to arrays initialized with string constants.
Found while compiling for vax (why wasn't this caught by newer gcc?)
2005-07-05 22:15:41 +00:00
mrg
8ce77e5534 move some more processing before opening the audio device. don't
default the encoding to ulaw; default it to what ever the device
has.  the latter fixes PR#30612.
2005-07-05 22:01:42 +00:00
he
8d673b50bf Add const to the tsptype array, compiled under TSPTYPES.
Found while building for vax.
2005-07-05 21:57:08 +00:00
he
886478a4b7 In the workaround for vax, we need to also specify that stdbool.h is
to be created under the beforedepend target.
2005-07-05 21:52:13 +00:00
tron
655544a062 Comment out the less popular 3Com 3c507 and reenable the 3c503 as
suggested by Jason Thorpe and Manuel Bouyer on the port-i386 mailing list.
2005-07-05 21:17:38 +00:00
mrg
906f130f1a check that an output file is given before doing any other work.
avoids touching the audio device and then printing an error.
2005-07-05 21:05:50 +00:00
kleink
99dffcffea Set LOGNAME in the new environment (in addition to USER);
fixes PR bin/30670 from Pavel Cahyna.
2005-07-05 20:15:13 +00:00
dyoung
83285d3445 In ieee80211_refine_node_for_beacon, do not decrease the reference
count on the node that is passed in, because it belongs to the
driver.  Also, do not increase the reference count on the refined
node, because ieee80211_refine_node_for_beacon's caller (ieee80211_input)
will never decrease the reference count.

As a general rule, reference counts are used for driver code to
assert ownership of ieee80211_nodes that are shared by the driver
and net80211 layer.
2005-07-05 19:56:04 +00:00
kleink
f811c80a93 Document LOGNAME; from Pavel Cahyna in PR misc/30671. 2005-07-05 19:46:02 +00:00
wiz
d4a56979fa Enable ACS characters in rxvt. Closes PR 30655. 2005-07-05 15:35:06 +00:00