Commit Graph

107685 Commits

Author SHA1 Message Date
Tom Rhodes
3a710cbaba Remove named-xfer, it does not exist in BIND 9. 2004-09-22 14:17:56 +00:00
Brian Feldman
5ed8cedc83 Call sbuf_finish() before sbuf_data() so as to not panic the system. 2004-09-22 12:53:27 +00:00
Dag-Erling Smørgrav
11d9d041cf Clean up and comment config.mk. Centralize more stuff. Bitch if
POSIX threads libraries are not available.  Add crypto support if
the crypto libraries are available.  Build dnssec-{keygen,signzone}
if crypto is available.

Submitted by:	(in part) dougb@
2004-09-22 12:13:58 +00:00
Brooks Davis
4dcf2bbbff Fix a LOR where ifconf() used copyout while holding a mutex. This LOR
was seen when configuring addresses on interfaces using ifconfig.  This
patch has been verified to work with over eight thousand addresses
assigned to an interface.

LOR id:		031
2004-09-22 08:59:41 +00:00
Warner Losh
9c3ae2ef4b Add a temporary workaround to the panic on boot with hub attached and
panic on hub detach bugs that have been reported.  This work around
detaches the device before deleting it.  This changes the detach order
from in-order to pre-order.  This avoids uhub's deleting the children
after its subdevs has been deleted.

This is only a workaround.  This leads to a strange condition in the
device tree where attached devices are children of detached ones.  I
really don't know what that's supposed to mean, but does violate my
sense of POLA.  Fortunately, the violation is short lived, which is
why I'm going ahead and committing the work around.

# We really need to consider life w/o the multiple nested layers of
# compatibility macros.  They make finding bugs like this *MUCH*
# harder.

Patch by: iadowse

MT5 before: next_release(5.3-BETA5) (unless someting better comes along)
2004-09-22 06:02:10 +00:00
Alan Cox
a971139680 Correct a long-standing error in _pmap_unwire_pte_hold() affecting
multiprocessors.  Specifically, the error is conditioning the call to
pmap_invalidate_page() on whether the pmap is active on the current CPU.
This call must be unconditional.  Regardless of whether the pmap is active
on the CPU performing _pmap_unwire_pte_hold(), it could be active on another
CPU.  For example, a call to pmap_remove_all() by the page daemon could
result in a call to _pmap_unwire_pte_hold() with the pmap inactive on the
current CPU and active on another CPU.  In such circumstances, failing to
call pmap_invalidate_page() results in a stale TLB entry on the other CPU
that still maps the now deallocated page table page.  What happens next is
typically a mysterious panic in pmap_enter() by the other CPU, either
"pmap_enter: attempted pmap_enter on 4MB page" or "pmap_enter: pte vanished,
va: 0x%lx".  Both occur because the former page table page has been recycled
and allocated to a new purpose.  Consequently, it no longer contains zeroes.

See also Peter's i386/i386/pmap.c revision 1.448 and the related e-mail
thread last year.

Many thanks to the engineers at Sandvine for providing clear and concise
information until all of the pieces of the puzzle fell into place and
for testing an earlier patch.

MT5 Candidate
2004-09-22 05:01:48 +00:00
Julian Elischer
2e2e32b201 Revert the last change..
Better to kill all other threads than to panic the system if 2 threads call
execve() at the same time. A better fix will be committed later.

Note that this only affects the case where the execve fails.
2004-09-22 01:30:23 +00:00
Peter Wemm
7789933b6a MFi386: adapt rev 1.19 (debugger fixes) 2004-09-22 01:27:06 +00:00
Peter Wemm
1bc673fc79 cnw (Xircom pccard) is built on amd64 and there isn't an obvious reason
that I can see as to why it shouldn't work.
2004-09-22 01:24:42 +00:00
Peter Wemm
b05ba1f73d Minor sync-up with i386. Catch up on de-quoting and de-counting after
config changes.
2004-09-22 01:04:54 +00:00
Peter Wemm
46ec31b083 MFi386: add ispfw (except using correct device<tab><tab>ispfw format,
<space><tab> is for the options line)
2004-09-22 00:44:13 +00:00
Christian S.J. Peron
d413c2e405 Since "d" is an array of 32 bit values, it is more
correct to change the cast from unsigned int to uint32_t.

Pointed out by:	luigi
2004-09-21 22:12:43 +00:00
Ruslan Ermilov
e19f6f27a7 Hopefully fix alpha and sparc64 builds: on these architectures,
libpthread is provided by src/lib/libc_r.

Also, removed lib/bind from _generic_libs, "lib" will suffice.
Also, removed redundant lib/bind dependency on lib/libpthread
(as lib/bind is not in the _prebuild_libs, it's not needed).

Prodded by:	trhodes@ reporting that des@ is on the flight
2004-09-21 21:47:05 +00:00
Julian Elischer
297800599a In a threaded process, don't kill off all the other threads until we have a
reasonable chance that the eceve() is going to succeeed. I.e.
wait until we've done the permission checks etc.

MFC after:	1 week
2004-09-21 21:05:13 +00:00
Robert Watson
aa1cb3e183 Improve netsend timing logic in various ways:
- Centralize time comparison.
- Check clock resolution to make sure it has enough granularity to
  implement the desired wait interval.
- Keep track of how many times the timing loop has to spin waiting
  for the next send time; report statistics.
- Add commented out warning about deadlines being missed when
  spinning.
- Improve statistics reporting generally to provide a more useful
  summary of sender condition after a run.
2004-09-21 20:21:40 +00:00
Dag-Erling Smørgrav
cd3ee173f9 Switch from BIND 8 to BIND 9.
Submitted by:	(in part) dougb@, trhodes@
Reviewed by:	dougb@, trhodes@, re@
MFC after:	5 days
2004-09-21 19:01:48 +00:00
Nate Lawson
95c973ff52 Initialize the flags value properly. We used to do this in acpi_tz_all_off()
but that function has been removed.  This avoids a potential unnecessary
fan switch on boot.  Also remove some commented out code.

MFC after:	3 days
2004-09-21 18:39:10 +00:00
Dag-Erling Smørgrav
2cbbf9dac9 Update copyright years. 2004-09-21 18:35:21 +00:00
Nate Lawson
ba36768b22 Don't disable acpi in shutdown if we're panicing (panicstr != NULL). This
may help with double panics.
2004-09-21 17:19:38 +00:00
Dag-Erling Smørgrav
c70315d4a8 Correct the capitalization of "nVidia". 2004-09-21 13:17:55 +00:00
Giorgos Keramidas
fc6db5e37c Group equivalent flags together and delete the `aliases' section.
PR:		docs/70856
Submitted by:	Rostislav Krasny <rosti_bsd@yahoo.com>
2004-09-21 10:13:34 +00:00
Poul-Henning Kamp
a367987828 De support opening device nodes on CD9660 filesystems. They are
still visible, they can still be seen, but they cannot be opened.
Use DEVFS for that.
2004-09-21 08:42:37 +00:00
Poul-Henning Kamp
90a660e199 If a vnode has no v_rdev we cannot hope to answer FIODTYPE ioctl. 2004-09-21 08:33:05 +00:00
Simon L. B. Nielsen
205eb0cd5e Add the sound device to the synopsis.
Noticed by:	ru
2004-09-21 07:01:32 +00:00
Wes Peters
ecaf63f715 Trap invalid sector size 0 in disk probe, refusing to add such a
device to the list.  This prevents crashes on /0 errors in 'lsdev'
et al.

Reviewed-by:	jhb@
MT5 after:	RE approval
2004-09-21 06:46:44 +00:00
Robert Watson
98da5dfbb2 Set default socket size for netreceive to 128k to reduce the chances
of the buffer overflowing before netreceive can be scheduled to read
the packets from the socket.
2004-09-21 03:10:28 +00:00
Pawel Jakub Dawidek
78366bad6c - Month and weekday names should begin with lowercase latter.
- First part of long month names should use genitive.
- Use more proper shortcuts, leaving the first 3 letters is not always
  correct.

Submitted by:	Bodek <bodek@blurp.org>
2004-09-20 23:56:43 +00:00
Simon L. B. Nielsen
0600308919 Auto generate device listings for the snd_ess(4) driver.
MFC after:	3 days
2004-09-20 20:26:20 +00:00
Simon L. B. Nielsen
4945145f04 Connect snd_ess(4) to the build. 2004-09-20 20:21:47 +00:00
Simon L. B. Nielsen
4ca6749395 Add manual page for snd_ess(4).
Submitted by:	Atte Peltomaki <koston@iki.fi>
MFC after:	3 days
2004-09-20 20:05:26 +00:00
John Baldwin
6215d389ac Force a redraw if all dists are selected so the checklist is updated.
Submitted by:	Rostislav Krasny rosti_bsd at yahoo dot com
MFC after:	3 days
2004-09-20 19:24:15 +00:00
John Baldwin
76764432e4 - Add support for "paging" in stack trace output. That is, when you do
a stack trace from ddb, the output will pause with a '--More--' prompt
  every 18 lines.  If you hit Enter, it will print another line and prompt
  again.  If you hit space it will output another page and then prompt.
  If you hit 'q' or 'x' it will abort the rest of the stack trace.
- Fix the sparc64 userland stack trace to honor the total count of lines
  to print.  This is useful if your trace happens to walk back onto
  0xdeadc0de and gets stuck in an endless loop.

MFC after:	1 month
Tested on:	i386, alpha, sparc64
2004-09-20 19:05:32 +00:00
John Baldwin
b89daf89a8 Remove unused macro. 2004-09-20 19:01:44 +00:00
Dag-Erling Smørgrav
3d3b189a12 Add lib/tests. 2004-09-20 18:36:02 +00:00
Dag-Erling Smørgrav
d3797745d2 Document the AUTO setting for dumpdev.
MFC after:	4 weeks
2004-09-20 17:49:57 +00:00
Dag-Erling Smørgrav
5a70daa23f If $dumpdev is set to AUTO, use the first suitable swap partition listed
in /etc/fstab, or print an error message if no suitable device was found.

MFC after:	4 weeks
2004-09-20 17:48:45 +00:00
Pawel Jakub Dawidek
daf889f9c8 Force commit to provider more detailed info about this change.
There is no need to skip providers with 0 sectorsize in taste routine,
it is now forced by GEOM.
Actually, it can even cause some problems, because GEOM requires sectorsize
to be greater than 0 on first access, not on provider creation, so we can
skip valid providers by doing this check in taste method.

Requested by:	scottl
2004-09-20 17:44:41 +00:00
Pawel Jakub Dawidek
201dfcf143 This is not needed anymore, it is forced in GEOM now.
Actually, it can even cause some problems, because GEOM requires sectorsize
to be more than 0 on first access, not on provider creation, so we can skip
valid providers by doing this check here.

Reported by:	Divacky Roman <xdivac02@stud.fit.vutbr.cz>
		Sven Willenberger <sven@dmv.com>
2004-09-20 17:26:25 +00:00
Dag-Erling Smørgrav
ca3f021316 Don't forget to check defined() before testing the value. 2004-09-20 15:22:57 +00:00
Ruslan Ermilov
8799ba98cb Make this use a standard bsd.subdir.mk. 2004-09-20 14:04:00 +00:00
Yoshihiro Takahashi
e48b233cd8 Merged from sys/dev/sio/sio.c: more tty related changes. 2004-09-20 14:01:38 +00:00
Yoshihiro Takahashi
31eac965cd MFpc98: Check a pointer is NULL, remove unused variable. 2004-09-20 13:55:26 +00:00
Denis Peplin
4acce4f8de Merge the following from the English version:
1.255 -> 1.257 hardware/common/dev.sgml
   1.774 -> 1.778 relnotes/common/new.sgml

Obtained from:	The FreeBSD Russian Documentation Project
MFC after:	2 days
2004-09-20 13:32:53 +00:00
Hiroki Sato
abfbd73c1c Merge the following from the English version:
1.4   -> 1.6  	relnotes/alpha/article.sgml
	1.2   -> 1.4  	relnotes/amd64/article.sgml
	1.6   -> 1.7  	relnotes/i386/Makefile
	1.5   -> 1.7  	relnotes/i386/article.sgml
	1.2   -> 1.4  	relnotes/ia64/article.sgml
	1.2   -> 1.4  	relnotes/pc98/article.sgml
	1.4   -> 1.6  	relnotes/sparc64/article.sgml
2004-09-20 11:59:34 +00:00
Hiroki Sato
c7fb3edb5b Merge the following from the English version:
1.2   -> 1.3  	hardware/Makefile.inc
	1.6   -> 1.7  	hardware/alpha/Makefile
	1.4   -> 1.6  	hardware/alpha/article.sgml
	1.1   -> 1.2  	hardware/amd64/Makefile
	1.1   -> 1.3  	hardware/amd64/article.sgml
	1.3   -> 1.5  	hardware/amd64/proc-amd64.sgml
	1.4   -> 1.5  	hardware/common/artheader.sgml
	1.210 -> 1.256	hardware/common/dev.sgml
	1.5   -> 1.6  	hardware/i386/Makefile
	1.4   -> 1.6  	hardware/i386/article.sgml
	1.2   -> 1.3  	hardware/ia64/Makefile
	1.3   -> 1.5  	hardware/ia64/article.sgml
	1.1   -> 1.2  	hardware/pc98/Makefile
	1.1   -> 1.3  	hardware/pc98/article.sgml
	1.3   -> 1.4  	hardware/sparc64/Makefile
	1.3   -> 1.5  	hardware/sparc64/article.sgml
	1.11  -> 1.12 	hardware/sparc64/proc-sparc64.sgml
2004-09-20 11:19:33 +00:00
Denis Peplin
e481989c19 MFen 1.36 2004-09-20 11:17:56 +00:00
Denis Peplin
9842246d0e MFen 1.6 2004-09-20 09:52:35 +00:00
Brian Somers
a04946cf6e CTASSERT that MSZIE is a power of 2 (otherwise dtom() breaks)
Ask uma_zcreate() to align mbufs to MSIZE bytes (otherwise dtom() breaks)

As it happens, uma_zalloc_arg() always returned mbufs aligned to MSIZE
anyway, but that was an implementation side-effect....

KASSERT -> CTASSERT suggested by: dd@
Approved by:	silence on -net
2004-09-20 08:52:04 +00:00
MIHIRA Sanpei Yoshiro
82ad8eff9e Add support Nvidia nForce2(audio)
PR:		kern/71317
Submitted by:	Mezz <mezz@freebsd.org>
MFC after:	1 week
2004-09-20 07:19:49 +00:00
John-Mark Gurney
aedd16d964 trim trailing white space..
call the re mutex by it's name..

MFC after:	3 days
2004-09-20 06:33:37 +00:00