]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoDon't mention 'pax' in the context of POSIX-1988, since
Tim Kientzle [Sat, 29 Jul 2006 23:51:10 +0000 (23:51 +0000)]
Don't mention 'pax' in the context of POSIX-1988, since
pax wasn't introduced until the 1993 (?) revision.

(I need to double-check when pax was introduced and
clarify some of the history here.  In particular,
I should explain that the 'pax' standard now owns the
'ustar' format spec.)

18 years agoRemove mention of 'tp' format, since that support has been
Tim Kientzle [Sat, 29 Jul 2006 23:49:25 +0000 (23:49 +0000)]
Remove mention of 'tp' format, since that support has been
removed.  (It was introduced experimentally and I have simply
never had time to finish it.)

18 years agoSync FREEBSD-Xlist with what was actually excluded from OpenSSL 0.9.8b
Simon L. B. Nielsen [Sat, 29 Jul 2006 22:40:45 +0000 (22:40 +0000)]
Sync FREEBSD-Xlist with what was actually excluded from OpenSSL 0.9.8b
import.

18 years agoAdd some rough notes on how to import a new OpenSSL version into the
Simon L. B. Nielsen [Sat, 29 Jul 2006 22:01:26 +0000 (22:01 +0000)]
Add some rough notes on how to import a new OpenSSL version into the
FreeBSD base system.  Parts are inspired by the OpenSSH upgrade notes.

18 years agoDocument many of the sysctls in acpi. Bump the date on acpi_thermal.4
Nate Lawson [Sat, 29 Jul 2006 21:47:24 +0000 (21:47 +0000)]
Document many of the sysctls in acpi.  Bump the date on acpi_thermal.4
because I forgot to on the last change.

MFC after: 1 day

18 years agoAdd a new sysctl, hw.acpi.handle_reboot. If set, acpi will attempt to
Nate Lawson [Sat, 29 Jul 2006 21:46:16 +0000 (21:46 +0000)]
Add a new sysctl, hw.acpi.handle_reboot.  If set, acpi will attempt to
perform the reboot action via the reset register instead of our legacy
method.  Default is 0 (use legacy).  This is needed because some systems
hang on reboot even though they claim to support the reset register.

MFC after: 2 days

18 years agoAdd /usr/lib/engines for OpenSSL engines.
Simon L. B. Nielsen [Sat, 29 Jul 2006 19:47:09 +0000 (19:47 +0000)]
Add /usr/lib/engines for OpenSSL engines.

18 years agoBump __FreeBSD_version for OpenSSL 0.9.8b import.
Simon L. B. Nielsen [Sat, 29 Jul 2006 19:44:07 +0000 (19:44 +0000)]
Bump __FreeBSD_version for OpenSSL 0.9.8b import.

18 years agoLink kldxref(8) static on PowerPC to work around a SIGSEGV that
Marcel Moolenaar [Sat, 29 Jul 2006 19:43:26 +0000 (19:43 +0000)]
Link kldxref(8) static on PowerPC to work around a SIGSEGV that
cannot easily be analyzed due to there being no debugger yet.
The SIGSEGV only happens when kldxref is linked shared.
Since kldxref(8) is needed for a release build, having it not
dump core is important.

18 years agoUpgrade to OpenSSL 0.9.8b.
Simon L. B. Nielsen [Sat, 29 Jul 2006 19:41:41 +0000 (19:41 +0000)]
Upgrade to OpenSSL 0.9.8b.

18 years agoChange maketempfile() to return a FILE* so as to eliminate the fopen()
Marcel Moolenaar [Sat, 29 Jul 2006 19:39:03 +0000 (19:39 +0000)]
Change maketempfile() to return a FILE* so as to eliminate the fopen()
that immediately follows the only call to it. maketempfile() uses
mkstemp(), so the temporary file has already been opened and using
fopen() again just opens the file twice. This also fixes the invalid
mode used on the fopen().
While here, assign NULL to fxref after fclose() because we test for
fxref being !NULL to determine if we have the (temporary) hints file
open.

18 years agoResolve conflicts after import of OpenSSL 0.9.8b.
Simon L. B. Nielsen [Sat, 29 Jul 2006 19:14:51 +0000 (19:14 +0000)]
Resolve conflicts after import of OpenSSL 0.9.8b.

18 years agoThis commit was generated by cvs2svn to compensate for changes in r160814,
Simon L. B. Nielsen [Sat, 29 Jul 2006 19:10:21 +0000 (19:10 +0000)]
This commit was generated by cvs2svn to compensate for changes in r160814,
which included commits to RCS files with non-trunk default branches.

18 years agoVendor import of OpenSSL 0.9.8b
Simon L. B. Nielsen [Sat, 29 Jul 2006 19:10:21 +0000 (19:10 +0000)]
Vendor import of OpenSSL 0.9.8b

18 years agoRemove sio(4) and related options from MI files to amd64, i386
Marcel Moolenaar [Sat, 29 Jul 2006 18:38:54 +0000 (18:38 +0000)]
Remove sio(4) and related options from MI files to amd64, i386
and pc98 MD files. Remove nodevice and nooption lines specific
to sio(4) from ia64, powerpc and sparc64 NOTES. There were no
such lines for arm yet.
sio(4) is usable on less than half the platforms, not counting
a future mips platform. Its presence in MI files is therefore
increasingly becoming a burden.

18 years agoTell more of the sh(1) history.
Yaroslav Tykhiy [Sat, 29 Jul 2006 09:56:29 +0000 (09:56 +0000)]
Tell more of the sh(1) history.
Acknowledge Kenneth Almquist's contribution in AUTHORS.

MFC after: 5 days

18 years agoExtend the MK_INET6 section by rescue/ping6 and the manpages.
Yaroslav Tykhiy [Sat, 29 Jul 2006 06:29:07 +0000 (06:29 +0000)]
Extend the MK_INET6 section by rescue/ping6 and the manpages.

18 years agoDo not put BN_CTX structures on the stack, but instead allocate them
Simon L. B. Nielsen [Fri, 28 Jul 2006 23:00:16 +0000 (23:00 +0000)]
Do not put BN_CTX structures on the stack, but instead allocate them
runtime using BN_CTX_new().  This is done since in OpenSSL 0.9.7e we
can only allocate BN_CTX on the stack by including an internal OpenSSL
header file, and in OpenSSL 0.9.8 BN_CTX is entirely opaque, so having
it on the stack is not possible at all.

This is done as preparation for OpenSSL 0.9.8b import.

Tested on: amd64 i386 ia64
Tested with: src/tools/regression/lib/libmp

18 years agoRemove debug code.
Stefan Farfeleder [Fri, 28 Jul 2006 21:34:37 +0000 (21:34 +0000)]
Remove debug code.

Suggested by: des

18 years agoAllow to configure a kernel with envy24 support as documented in the
Alexander Leidinger [Fri, 28 Jul 2006 21:20:00 +0000 (21:20 +0000)]
Allow to configure a kernel with envy24 support as documented in the
manual page...

18 years ago- Add more debugging information to make it simpler to understand
Simon L. B. Nielsen [Fri, 28 Jul 2006 20:23:03 +0000 (20:23 +0000)]
- Add more debugging information to make it simpler to understand
  what's going on in cases where the "state engine" doesn't act as
  expected, e.g. in the case of a list not being closed in the manual
  page being parsed.
- Bump copyright year.

MFC after: 1 week

18 years agoRetire SYF_ARGMASK and remove both SYF_MPSAFE and SYF_ARGMASK. sy_narg is
John Baldwin [Fri, 28 Jul 2006 20:22:58 +0000 (20:22 +0000)]
Retire SYF_ARGMASK and remove both SYF_MPSAFE and SYF_ARGMASK.  sy_narg is
now back to just being an argument count.

18 years agoAdd missing .El to close list.
Simon L. B. Nielsen [Fri, 28 Jul 2006 20:14:43 +0000 (20:14 +0000)]
Add missing .El to close list.

This confused the manual page -> hardware notes perl script somewhat and
resulted in part of the output for the stge(4) entry not to be present
in the hardware notes.

Noticed by: brueffer

18 years agoRegen for MPSAFE flag removal.
John Baldwin [Fri, 28 Jul 2006 19:08:37 +0000 (19:08 +0000)]
Regen for MPSAFE flag removal.

18 years agoNow that all system calls are MPSAFE, retire the SYF_MPSAFE flag used to
John Baldwin [Fri, 28 Jul 2006 19:05:28 +0000 (19:05 +0000)]
Now that all system calls are MPSAFE, retire the SYF_MPSAFE flag used to
mark system calls as being MPSAFE:
- Stop conditionally acquiring Giant around system call invocations.
- Remove all of the 'M' prefixes from the master system call files.
- Remove support for the 'M' prefix from the script that generates the
  syscall-related files from the master system call files.
- Don't explicitly set SYF_MPSAFE when registering nfssvc.

18 years agoVarious fixes to comments in the syscall master files including removing
John Baldwin [Fri, 28 Jul 2006 18:55:18 +0000 (18:55 +0000)]
Various fixes to comments in the syscall master files including removing
cruft from the audit import and adding mention of COMPAT4 to freebsd32.

18 years ago- fix memory leak after "kldunload snd_ak452x.ko"
Alexander Leidinger [Fri, 28 Jul 2006 18:06:39 +0000 (18:06 +0000)]
- fix memory leak after "kldunload snd_ak452x.ko"
- fix "No sound in KDE":
  The problem is related to the implementation of Envy24(1712) hardware
  mixer support in the driver. Envy24(1712) has very precise 36bit wide
  hardware mixer, which is superior that vchans (software sound mixer in
  the kernel). The driver supports Envy24(1712) hardware mixer, so up to
  10 channels (5 stereo pairs) can be playback simultaneously.
  However, there are problems with the implementation of Envy24(1712)
  hardware mixer support in the driver, one of them is the problem with
  "no sound in KDE":
      When playing back several channels simultaneously and
      stoping one of the channels, sound starts to stutter and
      plays at very low speed.
  Another problem is:
      Playing back simultaneously more than one 24bit/32bit
      sound file or 16bit sound file and 24bit/32bit sound
      file doesn't work as expected.

Submitted by: "Konstantin Dimitrov" <kosio.dimitrov@gmail.com>

18 years agoRegen.
John Baldwin [Fri, 28 Jul 2006 16:56:44 +0000 (16:56 +0000)]
Regen.

18 years ago- Explicitly lock Giant to protect the fields in the svr4_strm structure
John Baldwin [Fri, 28 Jul 2006 16:56:17 +0000 (16:56 +0000)]
- Explicitly lock Giant to protect the fields in the svr4_strm structure
  except for s_family (which is read-only once after it is set when the
  structure is created).
- Mark svr4_sys_ioctl(), svr4_sys_getmsg(), and svr4_sys_putmsg() MPSAFE.

18 years ago- Achieve WARNS=3 by using sparse initializers or avoiding initializers at all.
Yaroslav Tykhiy [Fri, 28 Jul 2006 16:16:40 +0000 (16:16 +0000)]
- Achieve WARNS=3 by using sparse initializers or avoiding initializers at all.
- Fix a nlist initialization: it should be terminated by a NULL entry.
- Constify.
- Catch an unused parameter.

Tested on: i386 amd64 ia64

18 years agoAchieve WARNS=2 by using uintmax_t to pass around 64-bit quantities,
Yaroslav Tykhiy [Fri, 28 Jul 2006 16:09:19 +0000 (16:09 +0000)]
Achieve WARNS=2 by using uintmax_t to pass around 64-bit quantities,
including to printf().  Using uintmax_t is also robust to further
extensions in both the C language and the bitwidth of kernel counters.

Tested on: i386 amd64 ia64

18 years agoAdd a test program which performs some very basic tests of libmp(3).
Simon L. B. Nielsen [Fri, 28 Jul 2006 16:00:59 +0000 (16:00 +0000)]
Add a test program which performs some very basic tests of libmp(3).
It is by no means expected to perform a complete test of the library
for correctness, but is meant to test the API to make sure libmp (or
libcrypto) updates don't totally break the library.

18 years agoRemove trailing spaces.
Pawel Jakub Dawidek [Fri, 28 Jul 2006 14:48:30 +0000 (14:48 +0000)]
Remove trailing spaces.

18 years agoUse existing roundup2() macro.
Pawel Jakub Dawidek [Fri, 28 Jul 2006 14:46:19 +0000 (14:46 +0000)]
Use existing roundup2() macro.

Suggested by: njl

18 years ago'make distribution' must be run from src, not src/etc, so that the proper
Thomas Quinot [Fri, 28 Jul 2006 14:37:38 +0000 (14:37 +0000)]
'make distribution' must be run from src, not src/etc, so that the proper
set of /usr/share/mk/* is available. This is necessary to build a 7.x
NanoBSD image on a 6.x host.

Reviewed by: phk

18 years agoUpdate manual page.
Pawel Jakub Dawidek [Fri, 28 Jul 2006 13:56:17 +0000 (13:56 +0000)]
Update manual page.

18 years agoBoth fields of struct timeval are of a non-basic type,
Yaroslav Tykhiy [Fri, 28 Jul 2006 11:17:17 +0000 (11:17 +0000)]
Both fields of struct timeval are of a non-basic type,
so we should cast them to a type printf() knows about.

18 years agoAvoid useless work: Do not build inet6.c if INET6 support is off.
Yaroslav Tykhiy [Fri, 28 Jul 2006 11:09:21 +0000 (11:09 +0000)]
Avoid useless work: Do not build inet6.c if INET6 support is off.
This also avoids pretending that netstat includes inet6.c in the
output from ident(1).

18 years agoDo not forget about INET6 and MK_INET6_SUPPORT.
Yaroslav Tykhiy [Fri, 28 Jul 2006 10:59:27 +0000 (10:59 +0000)]
Do not forget about INET6 and MK_INET6_SUPPORT.

18 years agoThe lukemftpd code depends on INET6. Therefore MK_INET6_SUPPORT
Yaroslav Tykhiy [Fri, 28 Jul 2006 10:50:11 +0000 (10:50 +0000)]
The lukemftpd code depends on INET6.  Therefore MK_INET6_SUPPORT
should be respected.

18 years agoPopulate the MK_INET6 block.
Yaroslav Tykhiy [Fri, 28 Jul 2006 10:16:24 +0000 (10:16 +0000)]
Populate the MK_INET6 block.

18 years agoMention the dependency on firmware(4).
Christian Brueffer [Fri, 28 Jul 2006 08:43:49 +0000 (08:43 +0000)]
Mention the dependency on firmware(4).

18 years agoKerberos/Heimdal doesn't really depend on the INET6 macro.
Yaroslav Tykhiy [Fri, 28 Jul 2006 06:33:27 +0000 (06:33 +0000)]
Kerberos/Heimdal doesn't really depend on the INET6 macro.
In the Heimdal distro, only kerberized telnet refers to INET6,
but we don't build it, we use contrib/telnet linked with the
Kerberos libs instead.

Tested with: cmp(1)

18 years ago- Use SWIDTH0 for combining characters. [1]
Joseph Koshy [Fri, 28 Jul 2006 06:10:33 +0000 (06:10 +0000)]
- Use SWIDTH0 for combining characters. [1]
- Unicode 4.1 related changes:
  - Add definitions for a new range of code points
    U+1DC0..U+1DFF "Combining Diacritical Marks Supplement".
  - Add U+04F6 and U+04F7 to the Cyrillic range.
  - Mark U+034F "Combining Grapheme Joiner" as non-printable.
  - Add new combining characters in the range U+0350..U+035F
    to the section "Combining Diacritical Marks".

PR: misc/100212 [1]
Submitted by: "J.R. Oldroyd" <<fbsd AT opal.com>>
Reviewed by: "J.R. Oldroyd" <<fbsd AT opal.com>> (revised patch)

18 years agoUnify the checking for lock misbehavior in the various syscall()
John Baldwin [Thu, 27 Jul 2006 22:32:30 +0000 (22:32 +0000)]
Unify the checking for lock misbehavior in the various syscall()
implementations and adjust some of the checks while I'm here:
- Add a new check to make sure we don't return from a syscall in a critical
  section.
- Add a new explicit check before userret() to make sure we don't return
  with any locks held.  The advantage here is that we can include the
  syscall number and name in syscall() whereas that info is not available
  in userret().
- Drop the mtx_assert()'s of sched_lock and Giant.  They are replaced by
  the more general checks just added.

MFC after: 2 weeks

18 years agoArgh, fix compile with XBOX enabled. Somehow I missed a LINT compile. :(
John Baldwin [Thu, 27 Jul 2006 22:19:02 +0000 (22:19 +0000)]
Argh, fix compile with XBOX enabled.  Somehow I missed a LINT compile. :(

18 years agoAdjust td_locks for non-spin mutexes, rwlocks, and sx locks so that it is
John Baldwin [Thu, 27 Jul 2006 21:45:55 +0000 (21:45 +0000)]
Adjust td_locks for non-spin mutexes, rwlocks, and sx locks so that it is
a count of all non-spin locks, not just lockmgr locks.  This can give us a
much cheaper way to see if we have any locks held (such as when returning
to userland via userret()) without requiring WITNESS.

MFC after: 1 week

18 years agoAdd KTR_SYSC tracing to the syscall() implementations that didn't have it
John Baldwin [Thu, 27 Jul 2006 21:25:50 +0000 (21:25 +0000)]
Add KTR_SYSC tracing to the syscall() implementations that didn't have it
yet.

MFC after: 1 week

18 years agoRemove the dependency of bridgestp.h on if_bridgevar.h by moving a couple of
Andrew Thompson [Thu, 27 Jul 2006 21:01:48 +0000 (21:01 +0000)]
Remove the dependency of bridgestp.h on if_bridgevar.h by moving a couple of
private structures to if_bridge.c.

18 years agoAdd extra code into kbdmux(4)s read_char() method to
Maksim Yevmenkin [Thu, 27 Jul 2006 20:33:48 +0000 (20:33 +0000)]
Add extra code into kbdmux(4)s read_char() method to
poll (i.e. call read_char() method) slave keyboards.

This workaround should fix problem with kbdmux(4) and
atkbd(4) not working in ddb(4) and mid-boot.

MFC after: 1 week

18 years agoHold the reference on the mountpoint slightly longer in kern_statfs() and
John Baldwin [Thu, 27 Jul 2006 20:00:27 +0000 (20:00 +0000)]
Hold the reference on the mountpoint slightly longer in kern_statfs() and
kern_fstatfs() so that it is still held when prison_enforce_statfs() is
called (since that function likes to poke and prod at the mountpoint
structure).

MFC after: 3 days

18 years agoWrite a magic value into mtx_lock when destroying a mutex that will force
John Baldwin [Thu, 27 Jul 2006 19:58:18 +0000 (19:58 +0000)]
Write a magic value into mtx_lock when destroying a mutex that will force
all other mtx_lock() operations to block.  Previously, when the mutex was
destroyed, it would still have a valid value in mtx_lock(): either the
unowned cookie, which would allow a subsequent mtx_lock() to succeed, or a
pointer to the thread who destroyed the mutex if the mutex was locked when
it was destroyed.

MFC after: 3 days

18 years agoFix a file descriptor race I reintroduced when I split accept1() up into
John Baldwin [Thu, 27 Jul 2006 19:54:41 +0000 (19:54 +0000)]
Fix a file descriptor race I reintroduced when I split accept1() up into
kern_accept() and accept1().  If another thread closed the new file
descriptor and the first thread later got an error trying to copyout the
socket address, then it would attempt to close the wrong file object.  To
fix, add a struct file ** argument to kern_accept().  If it is non-NULL,
then on success kern_accept() will store a pointer to the new file object
there and not release any of the references.  It is up to the calling code
to drop the references appropriately (including a call to fdclose() in case
of error to safely handle the aforementioned race).  While I'm at it, go
ahead and fix the svr4 streams code to not leak the accept fd if it gets an
error trying to copyout the streams structures.

18 years agoAdd missing ptrace(2) system-call stops to various syscall()
John Baldwin [Thu, 27 Jul 2006 19:50:16 +0000 (19:50 +0000)]
Add missing ptrace(2) system-call stops to various syscall()
implementations.

MFC after: 1 week

18 years agoDon't allow MAXMEM or hw.physmem to extend the top of memory if our memory
John Baldwin [Thu, 27 Jul 2006 19:47:22 +0000 (19:47 +0000)]
Don't allow MAXMEM or hw.physmem to extend the top of memory if our memory
map was obtained from the SMAP.  SMAP is trustworthy, and the memory
extending feature is a band-aid for older systems where FreeBSD's methods
of detecting memory were not always trustworthy.  This fixes the issue
where using hw.physmem could result in the ACPI tables getting trashed
breaking ACPI.

MFC after: 3 days
Tested on: i386

18 years agoRemove Alpha remnants.
Marcel Moolenaar [Thu, 27 Jul 2006 19:12:49 +0000 (19:12 +0000)]
Remove Alpha remnants.

18 years agoConditionally expand the size_invs lookup table in arena_run_reg_dalloc()
Jason Evans [Thu, 27 Jul 2006 19:09:32 +0000 (19:09 +0000)]
Conditionally expand the size_invs lookup table in arena_run_reg_dalloc()
so that architectures with a quantum of 8 (rather than 16) work.

Restore arm's quantum to 8.

Submitted by: jmg

18 years agoDocument that both sides of -a or -o are always evaluated. This
Yaroslav Tykhiy [Thu, 27 Jul 2006 19:08:21 +0000 (19:08 +0000)]
Document that both sides of -a or -o are always evaluated.  This
"feature" doesn't seem to be in the standards or elsewhere, and
it is against what we are used to in C and sh(1), so put the
paragraph under BUGS.

Pointed out by: dougb
MFC after: 3 days

18 years agoAdd eye candy while I'm here: a blank line between
Yaroslav Tykhiy [Thu, 27 Jul 2006 18:28:14 +0000 (18:28 +0000)]
Add eye candy while I'm here: a blank line between
the license and the $FreeBSD$ line.

18 years agoINET6 has no effect on rtsol, it's an IPv6-only tool with its
Yaroslav Tykhiy [Thu, 27 Jul 2006 17:56:57 +0000 (17:56 +0000)]
INET6 has no effect on rtsol, it's an IPv6-only tool with its
code independent of the macro.  This utility is just omitted
from the build as a whole by ../Makefile if MK_INET6 is set to false.

Pointed out by: ume
Tested with: cmp(1)

18 years agortsol is just a stripped-down version of rtsold and as such it should
Yaroslav Tykhiy [Thu, 27 Jul 2006 17:50:05 +0000 (17:50 +0000)]
rtsol is just a stripped-down version of rtsold and as such it should
be built only if MK_INET6 is true: it's specific to IPv6.

Pointed out by: ume

18 years agoip6addrctl belongs to under MK_INET6, it is of no use w/o IPv6
Yaroslav Tykhiy [Thu, 27 Jul 2006 15:39:29 +0000 (15:39 +0000)]
ip6addrctl belongs to under MK_INET6, it is of no use w/o IPv6
in the system.

18 years agoThese IPv6-only tools have no explicit dependency on the INET6 macro.
Yaroslav Tykhiy [Thu, 27 Jul 2006 15:31:13 +0000 (15:31 +0000)]
These IPv6-only tools have no explicit dependency on the INET6 macro.

Tested with: cmp(1)

18 years agondp, rrenumd, rtadvd, and rtsold are IPv6-only tools,
Yaroslav Tykhiy [Thu, 27 Jul 2006 15:28:22 +0000 (15:28 +0000)]
ndp, rrenumd, rtadvd, and rtsold are IPv6-only tools,
they belong to under MK_INET6 with their friends.

18 years agoObey MK_INET6_SUPPORT.
Yaroslav Tykhiy [Thu, 27 Jul 2006 14:52:12 +0000 (14:52 +0000)]
Obey MK_INET6_SUPPORT.

18 years agoFix build w/o INET6.
Yaroslav Tykhiy [Thu, 27 Jul 2006 14:49:51 +0000 (14:49 +0000)]
Fix build w/o INET6.

18 years agoUse 4 as QUANTUM_2POW_MIN on arm as it is on any other architecture, to avoid
Olivier Houchard [Thu, 27 Jul 2006 14:36:28 +0000 (14:36 +0000)]
Use 4 as QUANTUM_2POW_MIN on arm as it is on any other architecture, to avoid
triggering an assertion later.

18 years agoObey MK_INET6_SUPPORT.
Yaroslav Tykhiy [Thu, 27 Jul 2006 14:20:14 +0000 (14:20 +0000)]
Obey MK_INET6_SUPPORT.

18 years agoRespect MK_INET6_SUPPORT.
Yaroslav Tykhiy [Thu, 27 Jul 2006 14:19:30 +0000 (14:19 +0000)]
Respect MK_INET6_SUPPORT.
Move INET6 out of the RELEASE_CRUNCH conditional block
because it saves as little as 2% of the binary size and
IPv6 is rather popular today.  (Some other binaries, e.g.,
telnetd, include INET6 for RELEASE_CRUNCH already.)

18 years agorpcinfo(1) doesn't depend on INET6 explicitly.
Yaroslav Tykhiy [Thu, 27 Jul 2006 13:47:02 +0000 (13:47 +0000)]
rpcinfo(1) doesn't depend on INET6 explicitly.

18 years agoObey MK_INET6_SUPPORT.
Yaroslav Tykhiy [Thu, 27 Jul 2006 13:26:29 +0000 (13:26 +0000)]
Obey MK_INET6_SUPPORT.
This is also a good chance to apply style.Makefile(5) in some cases.

18 years agostyle.Makefile(5) is good for our eyes.
Yaroslav Tykhiy [Thu, 27 Jul 2006 12:36:46 +0000 (12:36 +0000)]
style.Makefile(5) is good for our eyes.

18 years agoRespect MK_INET6_SUPPORT.
Yaroslav Tykhiy [Thu, 27 Jul 2006 12:28:05 +0000 (12:28 +0000)]
Respect MK_INET6_SUPPORT.

18 years agoRespect MK_INET6_SUPPORT.
Yaroslav Tykhiy [Thu, 27 Jul 2006 12:15:37 +0000 (12:15 +0000)]
Respect MK_INET6_SUPPORT.
Apply style.Makefile(5).

18 years agoCook CFLAGS by the modern recipe:
Yaroslav Tykhiy [Thu, 27 Jul 2006 12:05:05 +0000 (12:05 +0000)]
Cook CFLAGS by the modern recipe:
- use WARNS;
- respect MK_INET6_SUPPORT.

18 years agoFix what looks like a typo: MODULE_DEPEND() takes module names,
Yaroslav Tykhiy [Thu, 27 Jul 2006 11:52:12 +0000 (11:52 +0000)]
Fix what looks like a typo: MODULE_DEPEND() takes module names,
not KLD file names; and GELI module's name is g_eli, not geom_eli.

Approved by: pjd (silence)
MFC after: 5 days

18 years agoDefine BYTE_MSF if we're compiling a big endian kernel, so that DDB can
Olivier Houchard [Thu, 27 Jul 2006 11:41:37 +0000 (11:41 +0000)]
Define BYTE_MSF if we're compiling a big endian kernel, so that DDB can
correctly disassemble instructions on big endian.

18 years agoFixing compilation bustage: net/if_bridgevar.h depends on net/bridgestp.h.
Tai-hwa Liang [Thu, 27 Jul 2006 06:15:37 +0000 (06:15 +0000)]
Fixing compilation bustage: net/if_bridgevar.h depends on net/bridgestp.h.

18 years agoAdd device ID for second generation D-Link DGE-530T.
Pyun YongHyeon [Thu, 27 Jul 2006 05:06:43 +0000 (05:06 +0000)]
Add device ID for second generation D-Link DGE-530T.

PR: kern/99903

18 years agoRespect MK_INET6_SUPPORT.
Yaroslav Tykhiy [Thu, 27 Jul 2006 04:54:03 +0000 (04:54 +0000)]
Respect MK_INET6_SUPPORT.

18 years agoFix cpp logic in arena_malloc() to adjust size when assertions are enabled,
Jason Evans [Thu, 27 Jul 2006 04:00:12 +0000 (04:00 +0000)]
Fix cpp logic in arena_malloc() to adjust size when assertions are enabled,
even if stats gathering is disabled. [1]

Remove 'size' parameter from several functions that do not use it.

Reported by: [1] ache

18 years agoFixing compilation bustage: net/if_bridgevar.h depends on net/bridgestp.h.
Tai-hwa Liang [Thu, 27 Jul 2006 03:50:38 +0000 (03:50 +0000)]
Fixing compilation bustage: net/if_bridgevar.h depends on net/bridgestp.h.

18 years agoPrepending an mbuf after loading a DMA map results in unexpected
Pyun YongHyeon [Thu, 27 Jul 2006 00:43:34 +0000 (00:43 +0000)]
Prepending an mbuf after loading a DMA map results in unexpected
result. So, modify mbuf chains before loading a DMA map.

18 years agoNuke invalid use of BUS_DMA_ALLOCNOW.
Pyun YongHyeon [Thu, 27 Jul 2006 00:29:44 +0000 (00:29 +0000)]
Nuke invalid use of BUS_DMA_ALLOCNOW.

18 years agoMake sure to use the same DMA map in DMA map load/unload operations
Pyun YongHyeon [Thu, 27 Jul 2006 00:26:20 +0000 (00:26 +0000)]
Make sure to use the same DMA map in DMA map load/unload operations
by remembering a map used in bus_dmamap_load_mbuf_sg(9). I have
no idea how it could ever worked before.
This fixes a warning generated by a diagnostic check in sun4v
iommu driver.

Reported by: jb
Tested by: jb(sun4v)

18 years agoProperly propagate overrun conditions to the TTY layer.
Marcel Moolenaar [Thu, 27 Jul 2006 00:07:10 +0000 (00:07 +0000)]
Properly propagate overrun conditions to the TTY layer.

MFC after: 3 days

18 years agobridgestp is now a seperate module.
Andrew Thompson [Wed, 26 Jul 2006 22:15:15 +0000 (22:15 +0000)]
bridgestp is now a seperate module.

18 years agoHook bridgestp up to the build.
Andrew Thompson [Wed, 26 Jul 2006 22:10:10 +0000 (22:10 +0000)]
Hook bridgestp up to the build.

18 years agoAdd bridgestp as a seperate module.
Andrew Thompson [Wed, 26 Jul 2006 22:07:39 +0000 (22:07 +0000)]
Add bridgestp as a seperate module.

18 years agoRemove stp variables that are already initialised in bstp_attach().
Andrew Thompson [Wed, 26 Jul 2006 20:56:02 +0000 (20:56 +0000)]
Remove stp variables that are already initialised in bstp_attach().

18 years agoAdd Memory Corp 512MB CF Flash.
Simon L. B. Nielsen [Wed, 26 Jul 2006 20:35:52 +0000 (20:35 +0000)]
Add Memory Corp 512MB CF Flash.

MFC after: 3 days

18 years agoRemove zs(4). It has been replaced by scc(4) & uart(4).
Marcel Moolenaar [Wed, 26 Jul 2006 19:44:42 +0000 (19:44 +0000)]
Remove zs(4). It has been replaced by scc(4) & uart(4).

18 years agoReplace sio_iobus.c with uart_iobus.c.
Marcel Moolenaar [Wed, 26 Jul 2006 19:43:02 +0000 (19:43 +0000)]
Replace sio_iobus.c with uart_iobus.c.

18 years agoTurn this into an uart(4) bus attachment.
Marcel Moolenaar [Wed, 26 Jul 2006 19:39:55 +0000 (19:39 +0000)]
Turn this into an uart(4) bus attachment.

18 years agoRepocopy from: src/sys/powerpc/psim/sio_iobus.c
Marcel Moolenaar [Wed, 26 Jul 2006 19:29:11 +0000 (19:29 +0000)]
Repocopy from: src/sys/powerpc/psim/sio_iobus.c
 to: src/sys/powerpc/psim/uart_iobus.c

Meister: simon@

18 years agoRemove call to soisdisconnected() in uipc_detach(), since it will already
Robert Watson [Wed, 26 Jul 2006 19:16:34 +0000 (19:16 +0000)]
Remove call to soisdisconnected() in uipc_detach(), since it will already
have been invoked by uipc_close() or uipc_abort(), and the socket is in a
state of being torn down by the time we get to this point, so kqueue
state frobbed by soisdisconnected() is not available, so frobbing it will
result in a panic.

Reported by: Munehiro Matsuda <haro at h4 dot dion dot ne dot jp>

18 years agoo Remove device zs
Marcel Moolenaar [Wed, 26 Jul 2006 17:35:40 +0000 (17:35 +0000)]
o  Remove device zs
o  Remove nodevice uart
o  Reorder

18 years agoo Enable -Werror
Marcel Moolenaar [Wed, 26 Jul 2006 17:34:05 +0000 (17:34 +0000)]
o  Enable -Werror
o  Remove commented-out sio(4)
o  Remove zs(4)
o  Add scc(4)
o  Add uart(4)

18 years agoOn PowerPC the clock for the BRG comes from RTxC, not PCLK. Add a
Marcel Moolenaar [Wed, 26 Jul 2006 17:29:37 +0000 (17:29 +0000)]
On PowerPC the clock for the BRG comes from RTxC, not PCLK. Add a
quick hack to deal with this. We may need to formalize this better
and have this information come from the bus attachments.

18 years agoImplement UART_IOCTL_BAUD for the Z8530. This allows a serial console
Marcel Moolenaar [Wed, 26 Jul 2006 17:21:59 +0000 (17:21 +0000)]
Implement UART_IOCTL_BAUD for the Z8530. This allows a serial console
on PowerPC use the current setting of the hardware and not second
guess what the OFW does on various machines.