]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years ago1) Adds the rest of the VIMAGE change macros
Randall Stewart [Wed, 9 Jul 2008 16:45:30 +0000 (16:45 +0000)]
1) Adds the rest of the VIMAGE change macros
2) Adds some __UserSpace__ on some of the common defines that
   the user space code needs
3) Fixes a bug when we send up data to a user that failed. We
   need to a) trim off the data chunk headers, if present, and
   b) make sure the frag bit is communicated properly for the
   msgs coming off the stream queues... i.e. we see if some
   of the msg has been taken.

Obtained from: jeli contributed the VIMAGE changes on this pass Thanks Julain!

16 years agoDocument required locking in in6_sleectsrc() in case an inp is
Bjoern A. Zeeb [Wed, 9 Jul 2008 16:33:21 +0000 (16:33 +0000)]
Document required locking in in6_sleectsrc() in case an inp is
passed in by adding an assert.

Requested by: rwatson
Reviewed by: rwatson

16 years agoRemove unused support for local and foreign addresses in generic raw
Robert Watson [Wed, 9 Jul 2008 15:48:16 +0000 (15:48 +0000)]
Remove unused support for local and foreign addresses in generic raw
socket support.  These utility routines are used only for routing and
pfkey sockets, neither of which have a notion of address, so were
required to mock up fake socket addresses to avoid connection
requirements for applications that did not specify their own fake
addresses (most of them).

Quite a bit of the removed code is #ifdef notdef, since raw sockets
don't support bind() or connect() in practice.  Removing this
simplifies the raw socket implementation, and removes two (commented
out) uses of dtom(9).

Fake addresses passed to sendto(2) by applications are ignored for
compatibility reasons, but this is now done in a more consistent way
(and with a comment).  Possibly, EINVAL could be returned here in
the future if it is determined that no applications depend on the
semantic inconsistency of specifying a destination address for a
protocol without address support, but this will require some amount
of careful surveying.

NB: This does not affect netinet, netinet6, or other wire protocol
raw sockets, which provide their own independent infrastructure with
control block address support specific to the protocol.

MFC after: 3 weeks
Reviewed by: bz

16 years agoDriver failed to allocate MMIO resources. Attached patch adds a fallback path.
Remko Lodder [Wed, 9 Jul 2008 15:10:53 +0000 (15:10 +0000)]
Driver failed to allocate MMIO resources. Attached patch adds a fallback path.
It uses generic IDE facilities if sii-specific allocations failed

PR: 125421
Submitted by: Andrey V. Elsukov <bu7cher at yandex dot ru>
Approved by: imp (mentor, implicit)
MFC after: 1 week

16 years agoAdd new device id for ICH8M, which supports greater than UDMA33 mode
Remko Lodder [Wed, 9 Jul 2008 15:07:53 +0000 (15:07 +0000)]
Add new device id for ICH8M, which supports greater than UDMA33 mode
when it worked as generic IDE.

PR: 125422
Submitted by: Andrey V. Elsukov <bu7cher at yandex dot ru>
Approved by: imp (mentor, implicit)
MFC after: 1 week

16 years agoAdd support for the ICH9 in non AHCI mode (RAID mode).
Remko Lodder [Wed, 9 Jul 2008 15:06:41 +0000 (15:06 +0000)]
Add support for the ICH9 in non AHCI mode (RAID mode).

Submitted by: Andrey V. Elsukov <bu7cher at yandex dot ru>
Tested by: Vitalij L. Fadeev <fvl at mail dot ru>
Approved by: imp (mentor, implicit)
MFC after: 1 week

16 years ago- nested functions are a GCC extensions and should not be used
Daniel Gerzo [Wed, 9 Jul 2008 14:04:28 +0000 (14:04 +0000)]
- nested functions are a GCC extensions and should not be used

Submitted by: gahr
MFC after: 3 days

16 years agoAllow comment to be placed at the end of a configuration line.
Maxim Sobolev [Wed, 9 Jul 2008 07:37:54 +0000 (07:37 +0000)]
Allow comment to be placed at the end of a configuration line.

MFC after: 2 weeks

16 years agoLeapsecond at end of december.
Poul-Henning Kamp [Wed, 9 Jul 2008 06:59:14 +0000 (06:59 +0000)]
Leapsecond at end of december.

16 years agoFix lines that are too long in pmap_growkernel() by substituting shorter but
Alan Cox [Wed, 9 Jul 2008 06:04:10 +0000 (06:04 +0000)]
Fix lines that are too long in pmap_growkernel() by substituting shorter but
equivalent expressions.

16 years agoAdd driver support for RTL8102E and RTL8102EL which is the second
Pyun YongHyeon [Wed, 9 Jul 2008 01:58:18 +0000 (01:58 +0000)]
Add driver support for RTL8102E and RTL8102EL which is the second
generation of RTL810x PCIe fast ethernet controller. Note, Tx/Rx
descriptor format is different from that of first generation of
RTL8101E series. Jumbo frame is not supported for RTL810x
family.

Tested by: NAGATA Shinya ( maya AT negeta DOT com )

16 years agoDisable jumbo frame support for RTL810x fast ethernet controllers.
Pyun YongHyeon [Wed, 9 Jul 2008 01:44:06 +0000 (01:44 +0000)]
Disable jumbo frame support for RTL810x fast ethernet controllers.

16 years agoFix a mutex LOR introduced by the conversion of if_ndis from spinlocks to
Coleman Kane [Wed, 9 Jul 2008 00:10:55 +0000 (00:10 +0000)]
Fix a mutex LOR introduced by the conversion of if_ndis from spinlocks to
mutexes and replacing the obsolete if_watchdog interface. The ndis_ticktask
function calls into ieee80211_new_state under one condition with NDIS_LOCK
held. The ieee80211_new_state would call into ndis_start in some cases too,
resulting in the occasional case where ndis_start acquires NDIS_LOCK from
inside the NDIS_LOCK held by ndis_ticktask.

Obtained from: Paul B. Mahol <onemda@gmail.com>
MFC after: 1 week

16 years agoImprove the output of kldload(8) to show which module can't be loaded.
Edwin Groothuis [Tue, 8 Jul 2008 23:51:38 +0000 (23:51 +0000)]
Improve the output of kldload(8) to show which module can't be loaded.

Was: kldload: Unsupported file type
Is now: kldload: /boot/modules/test.ko: Unsupported file type

PR: kern/121276
Submitted by: Edwin Groothuis <edwin@mavetju.org>
Approved by: bde (mentor)
MFC after: 1 week

16 years agoEliminate pmap_growkernel()'s dependence on create_pagetables() preallocating
Alan Cox [Tue, 8 Jul 2008 22:59:17 +0000 (22:59 +0000)]
Eliminate pmap_growkernel()'s dependence on create_pagetables() preallocating
page directory pages from VM_MIN_KERNEL_ADDRESS through the end of the
kernel's bss.  Specifically, the dependence was in pmap_growkernel()'s one-
time initialization of kernel_vm_end, not in its main body.  (I could not,
however, resist the urge to optimize the main body.)

Reduce the number of preallocated page directory pages to just those needed
to support NKPT page table pages.  (In fact, this allows me to revert a
couple of my earlier changes to create_pagetables().)

16 years agoBack out r180370. It was not discussed with subsystem maintainers.
Oleksandr Tymoshenko [Tue, 8 Jul 2008 20:19:43 +0000 (20:19 +0000)]
Back out r180370. It was not discussed with subsystem maintainers.

16 years agoChange the parameters to in6_selectsrc():
Bjoern A. Zeeb [Tue, 8 Jul 2008 18:41:36 +0000 (18:41 +0000)]
Change the parameters to in6_selectsrc():
 - pass in the inp instead of both in6p_moptions and laddr.
 - pass in cred for upcoming prison checks.

Reviewed by: rwatson

16 years ago Queue decapsulated packed instead of performing direct dispatch. Some
Oleksandr Tymoshenko [Tue, 8 Jul 2008 18:21:44 +0000 (18:21 +0000)]
  Queue decapsulated packed instead of performing direct dispatch. Some
execution pathes might hit stack limit under certain circumstances
(e.g. ng_mppc).

PR:                     kern/125314
Reported by:            Illya Klymov <ilia dot klimov at gmail dot com>

16 years ago- Simplify the procedure of retrieving XML-data from the kernel.
Ulf Lilleengen [Tue, 8 Jul 2008 17:34:50 +0000 (17:34 +0000)]
- Simplify the procedure of retrieving XML-data from the kernel.
- Fix a number of potential memory leaks in libgeom related to doing realloc
  without freeing old pointer if things go wrong.
- Fix a number of places in libgeom where malloc and calloc return values
  were not checked.
- Check malloc return value and provide sufficient warning messages when XML
  parsing fails.

PR: kern/83464
Submitted by: Dan Lukes <dan - at - obluda.cz>
Approved by: kib (mentor)

16 years agoProvide some initial chicken-scratching annotations of locking for
Robert Watson [Tue, 8 Jul 2008 17:22:59 +0000 (17:22 +0000)]
Provide some initial chicken-scratching annotations of locking for
struct inpcb.

Prodded by: bz
MFC after: 3 days

16 years agoAdded my birthday to the FreeBSD calendar.
Stacey Son [Tue, 8 Jul 2008 15:43:54 +0000 (15:43 +0000)]
Added my birthday to the FreeBSD calendar.

Approved by: jb (mentor)

16 years agoAdded myself to the src committers graph.
Stacey Son [Tue, 8 Jul 2008 15:36:44 +0000 (15:36 +0000)]
Added myself to the src committers graph.

Approved by: jb (mentor)

16 years agoUse soreceive_dgram() and sosend_dgram() with UDPv6, as we do with UDPv4.
Robert Watson [Tue, 8 Jul 2008 10:15:23 +0000 (10:15 +0000)]
Use soreceive_dgram() and sosend_dgram() with UDPv6, as we do with UDPv4.

Tested by: ps
MFC after: 3 months

16 years agoremove a useless example.
Weongyo Jeong [Tue, 8 Jul 2008 04:15:07 +0000 (04:15 +0000)]
remove a useless example.

Pointed by: imp

16 years agoRev 180333, ``Change create_pagetables() and pmap_init() so that many fewer
Alan Cox [Tue, 8 Jul 2008 04:00:22 +0000 (04:00 +0000)]
Rev 180333, ``Change create_pagetables() and pmap_init() so that many fewer
page table pages have to be preallocated ...'', violates an assumption made
by minidumpsys(): kernel_vm_end is the highest virtual address that has ever
been used by the kernel.  Now, however, the kernel code, data, and bss may
reside at addresses beyond kernel_vm_end.  This revision modifies the upper
bound on minidumpsys()'s two page table traversals to account for this
possibility.

16 years agoEnable the -n option of pkg_create(1).
Giorgos Keramidas [Tue, 8 Jul 2008 03:21:05 +0000 (03:21 +0000)]
Enable the -n option of pkg_create(1).

The changes to make the option work are already in place, but I missed
the patch hunk that adds it to the getopt() option-handling loop.

Pointy hat: keramida
Approved by: flz
MFC after: 1 week

16 years agoposix_spawn() is supported, set _POSIX_SPAWN to 200212L.
David Xu [Tue, 8 Jul 2008 03:08:32 +0000 (03:08 +0000)]
posix_spawn() is supported, set _POSIX_SPAWN to 200212L.

16 years agoAdd HWPMC_HOOKS to GENERIC kernels, this makes hwpmc.ko work out
Xin LI [Mon, 7 Jul 2008 22:55:11 +0000 (22:55 +0000)]
Add HWPMC_HOOKS to GENERIC kernels, this makes hwpmc.ko work out
of the box.

16 years agoAdd a `show cpusets' DDB command to print numbered root and
Bjoern A. Zeeb [Mon, 7 Jul 2008 21:32:02 +0000 (21:32 +0000)]
Add a `show cpusets' DDB command to print numbered root and
assigned CPU affinity sets.

Reviewed by: brooks

16 years agoMFp4 144659:
Bjoern A. Zeeb [Mon, 7 Jul 2008 20:53:49 +0000 (20:53 +0000)]
MFp4 144659:
Plug a memory leak with jail services.

PR: 125257
Submitted by: Mateusz Guzik <mjguzik gmail.com>
MFC after: 6 days

16 years agoMove cpuset_refroot and cpuset_refbase functions up, grouping the
Bjoern A. Zeeb [Mon, 7 Jul 2008 20:45:55 +0000 (20:45 +0000)]
Move cpuset_refroot and cpuset_refbase functions up, grouping the
cpuset_ref* functions together. Will make it easier to read and
add code without forward declarations.
No functional changes.

16 years agoAdd inline function ia64_fc_i() to abstract inline assembly.
Marcel Moolenaar [Mon, 7 Jul 2008 17:43:56 +0000 (17:43 +0000)]
Add inline function ia64_fc_i() to abstract inline assembly.
Use the new inline function in ia64_invalidate_icache().
While there, add proper synchronization so that we know
the fc.i instructions have taken effect when we return.

16 years agoIn FreeBSD 7.0 and beyond, pmap_growkernel() should pass VM_ALLOC_INTERRUPT
Alan Cox [Mon, 7 Jul 2008 17:31:02 +0000 (17:31 +0000)]
In FreeBSD 7.0 and beyond, pmap_growkernel() should pass VM_ALLOC_INTERRUPT
to vm_page_alloc() instead of VM_ALLOC_SYSTEM.

16 years agoIn FreeBSD 7.0 and beyond, pmap_growkernel() should pass VM_ALLOC_INTERRUPT
Alan Cox [Mon, 7 Jul 2008 17:25:09 +0000 (17:25 +0000)]
In FreeBSD 7.0 and beyond, pmap_growkernel() should pass VM_ALLOC_INTERRUPT
to vm_page_alloc() instead of VM_ALLOC_SYSTEM.  VM_ALLOC_SYSTEM was the
logical choice before FreeBSD 7.0 because VM_ALLOC_INTERRUPT could not
reclaim a cached page.  Simply put, there was no ordering between
VM_ALLOC_INTERRUPT and VM_ALLOC_SYSTEM as to which "dug deeper" into the
cache and free queues.  Now, there is; VM_ALLOC_INTERRUPT dominates
VM_ALLOC_SYSTEM.

While I'm here, teach pmap_growkernel() to request a prezeroed page.

MFC after: 1 week

16 years agoreorder RSN/WPA2 ie in beacon and probe response frames to comply
Sam Leffler [Mon, 7 Jul 2008 17:24:55 +0000 (17:24 +0000)]
reorder RSN/WPA2 ie in beacon and probe response frames to comply
with IEEE802.11-2007 spec

Submitted by: Chris Zimmermann

16 years agoWhen making release with NOPORTS, we'll checkout only the
Marcel Moolenaar [Mon, 7 Jul 2008 16:23:04 +0000 (16:23 +0000)]
When making release with NOPORTS, we'll checkout only the
mininal set of ports required to make the docs. However,
we also need ports/sysutils/cdrtools in order to make the
ISO images. When a platform doesn't have packages, the
release will fail in that case. Add ports/sysutils/cdrtools
to RELEASEPORTSMODULE for the DOMINIMALDOCPORTS case to
handle the NOPORTS release build.

Note that this change doesn't try to handle the NOPORTS with
NODOC case. For we have NOPORTSATALL set and it seems wrong
to check out a ports module in that case.

16 years agoFix some spelling errors (improper review from my
Remko Lodder [Mon, 7 Jul 2008 13:08:30 +0000 (13:08 +0000)]
Fix some spelling errors (improper review from my
side).

Submitted by: ed, danger

16 years agoAllow udp_notify() to accept read, as well as write, locks on the passed
Robert Watson [Mon, 7 Jul 2008 12:27:55 +0000 (12:27 +0000)]
Allow udp_notify() to accept read, as well as write, locks on the passed
inpcb.  When directly invoking udp_notify() from udp_ctlinput(), acquire
only a read lock; we may still see write locks in udp_notify() as the
in_pcbnotifyall() routine is shared with TCP and always uses a write lock
on the inpcb being notified.

MFC after: 1 month

16 years agoAdd #include <inttypes.h> for the strtoimax().
Konstantin Belousov [Mon, 7 Jul 2008 12:20:34 +0000 (12:20 +0000)]
Add #include <inttypes.h> for the strtoimax().

Submitted by: Jilles Tjoelker <jilles stack nl>
MFC after: 3 days

16 years agoAdd additional udbinfo and inpcb locking assertions to udp_output(); for
Robert Watson [Mon, 7 Jul 2008 12:14:10 +0000 (12:14 +0000)]
Add additional udbinfo and inpcb locking assertions to udp_output(); for
some code paths, global or inpcb write locks are required, but for other
code paths, read locks or no locking at all are sufficient for the data
structures.

MFC after: 1 month

16 years agoAdd missing information for geom_mirror metadata.
Remko Lodder [Mon, 7 Jul 2008 11:44:57 +0000 (11:44 +0000)]
Add missing information for geom_mirror metadata.

PR: 124434
Submitted by: Philip M. Golluci <pgolluci at p6m7g8 dot com>
MFC after: 3 days

Prodded through: bugbusters@

16 years agoFirst step towards parallel transmit in UDP: if neither a specific
Robert Watson [Mon, 7 Jul 2008 10:56:55 +0000 (10:56 +0000)]
First step towards parallel transmit in UDP: if neither a specific
source or a specific destination address is requested as part of a send
on a UDP socket, read lock the inpcb rather than write lock it.  This
will allow fully parallel transmit down to the IP layer when sending
simultaneously from multiple threads on a connected UDP socket.

Parallel transmit for more complex cases, such as when sendto(2) is
invoked with an address and there's already a local binding, will
follow.

MFC after: 1 month

16 years agoDrop read lock on udbinfo earlier during delivery to the last matching
Robert Watson [Mon, 7 Jul 2008 10:11:17 +0000 (10:11 +0000)]
Drop read lock on udbinfo earlier during delivery to the last matching
UDP socket for a datagram; the inpcb read lock is sufficient to provide
inpcb stability during udp6_append().

MFC after:      1 month

16 years agoApply learning from RAIEC (Redundant Array of Independeng English Courses)
Poul-Henning Kamp [Mon, 7 Jul 2008 10:04:16 +0000 (10:04 +0000)]
Apply learning from RAIEC (Redundant Array of Independeng English Courses)
kindly provided by four different correspondents since my last commit.

16 years agoThe kqueue_register() function assumes that it is called from the top of
Konstantin Belousov [Mon, 7 Jul 2008 09:30:11 +0000 (09:30 +0000)]
The kqueue_register() function assumes that it is called from the top of
the syscall code and acquires various event subsystem locks as needed.
The handling of the NOTE_TRACK for EVFILT_PROC is currently done by
calling the kqueue_register() from filt_proc() filter, causing recursive
entrance of the kqueue code. This results in the LORs and recursive
acquisition of the locks.

Implement the variant of the knote() function designed to only handle
the fork() event. It mostly copies the knote() body, but also handles
the NOTE_TRACK, removing the handling from the filt_proc(), where it
causes problems described above. The function is called from the fork1()
instead of knote().

When encountering NOTE_TRACK knote, it marks the knote as influx
and drops the knlist and kqueue lock. In this context call to
kqueue_register is safe from the problems.

An error from the kqueue_register() is reported to the observer as
NOTE_TRACKERR fflag.

PR: 108201
Reviewed by: jhb, Pramod Srinivasan <pramod juniper net> (previous version)
Discussed with: jmg
Tested by: pho
MFC after: 2 weeks

16 years agoUpdate man page for addition of BIOCSETFNR. Subversion didn't want
David Malone [Mon, 7 Jul 2008 09:27:02 +0000 (09:27 +0000)]
Update man page for addition of BIOCSETFNR. Subversion didn't want
to commit this at the same time for some reason.

16 years agoDrop read lock on udbinfo earlier during delivery to the last matching
Robert Watson [Mon, 7 Jul 2008 09:26:52 +0000 (09:26 +0000)]
Drop read lock on udbinfo earlier during delivery to the last matching
UDP socket for a datagram; the inpcb read lock is sufficient to provide
inpcb stability during udp_append().

MFC after: 1 month

16 years agoAdd a new ioctl for changing the read filter (BIOCSETFNR). This is
David Malone [Mon, 7 Jul 2008 09:25:49 +0000 (09:25 +0000)]
Add a new ioctl for changing the read filter (BIOCSETFNR). This is
just like BIOCSETF but it doesn't drop all the packets buffered on
the discriptor and reset the statistics.

Also, when setting the write filter, don't drop packets waiting to
be read or reset the statistics.

PR: 118486
Submitted by: Matthew Luckie <mluckie@cs.waikato.ac.nz>
MFC after: 1 month

16 years agoThe r178914 I erronously put the setting of the KQ_FLUXWAIT flag before
Konstantin Belousov [Mon, 7 Jul 2008 09:15:29 +0000 (09:15 +0000)]
The r178914 I erronously put the setting of the KQ_FLUXWAIT flag before
KQ_FLUX_WAKEUP(). Since the later macro clears the KQ_FLUXWAIT, the
kqueue_scan() thread may be not woken up.

Move the setting of KQ_FLUXWAIT after wakeup to correct the issue.

Reported and tested by: pho
MFC after: 3 days

16 years agocorrect device name errors and wrong informations that currently malo(4)
Weongyo Jeong [Mon, 7 Jul 2008 02:39:39 +0000 (02:39 +0000)]
correct device name errors and wrong informations that currently malo(4)
don't support ad-hoc mode and there's no a man page like malofw(4).

16 years agoAdd hard sentence breaks.
Christian S.J. Peron [Sun, 6 Jul 2008 22:47:10 +0000 (22:47 +0000)]
Add hard sentence breaks.

Pointed out by: rwatson
MFC after: 1 week

16 years agoChange create_pagetables() and pmap_init() so that many fewer page table
Alan Cox [Sun, 6 Jul 2008 22:36:28 +0000 (22:36 +0000)]
Change create_pagetables() and pmap_init() so that many fewer page table
pages have to be preallocated by create_pagetables().

16 years agoAs discussed on IRC and at BSDcan, move the mips32/* directories up a
Warner Losh [Sun, 6 Jul 2008 21:09:29 +0000 (21:09 +0000)]
As discussed on IRC and at BSDcan, move the mips32/* directories up a
level.  The distinction was artificial.  Some more movement around the
deck charis is likely depending on the fallout from this one.

Paths were corrected after the svn mv.  Hope that's OK.

16 years agoObsolete bsdlabel(8) on powerpc. Use gpart(8) instead.
Marcel Moolenaar [Sun, 6 Jul 2008 20:57:35 +0000 (20:57 +0000)]
Obsolete bsdlabel(8) on powerpc. Use gpart(8) instead.

16 years agoDocument default ACLs and how to use them.
Christian S.J. Peron [Sun, 6 Jul 2008 20:29:35 +0000 (20:29 +0000)]
Document default ACLs and how to use them.
MFC after: 1 week

16 years ago- This code was intially obtained from NetBSD, but it's missing licence
Daniel Gerzo [Sun, 6 Jul 2008 17:03:37 +0000 (17:03 +0000)]
- This code was intially obtained from NetBSD, but it's missing licence
  statement. Add the one from the current NetBSD version.
- Also bump a date to reflect my content changes I have done in previous
  revision

Approved by: imp
MFC after: 3 days

16 years agoPreserve ownership if cpio is run as root.
Tim Kientzle [Sun, 6 Jul 2008 16:39:18 +0000 (16:39 +0000)]
Preserve ownership if cpio is run as root.

16 years agoFix comment: s/before/after.
Rui Paulo [Sun, 6 Jul 2008 16:18:58 +0000 (16:18 +0000)]
Fix comment: s/before/after.

16 years ago- Add description about a missing return value
Daniel Gerzo [Sun, 6 Jul 2008 12:17:53 +0000 (12:17 +0000)]
- Add description about a missing return value

PR: docs/75995
Submitted by: Tarc <tarc@po.cs.msu.su>
MFC after: 3 days

16 years ago- remove superfluous word
Daniel Gerzo [Sun, 6 Jul 2008 11:31:20 +0000 (11:31 +0000)]
- remove superfluous word
- remove contractions

MFC after: 3 days

16 years ago- avoid future breakage: cnw(4), sbni(4) and sbsh(4) have been removed
Daniel Gerzo [Sun, 6 Jul 2008 10:57:58 +0000 (10:57 +0000)]
- avoid future breakage: cnw(4), sbni(4) and sbsh(4) have been removed

16 years ago- fix build; oltr(4) has been removed in r180259
Daniel Gerzo [Sun, 6 Jul 2008 10:44:34 +0000 (10:44 +0000)]
- fix build; oltr(4) has been removed in r180259

16 years agoRemove the $DUMPDIR variable. It's redundant and the rest of the
Mike Makonnen [Sun, 6 Jul 2008 08:31:29 +0000 (08:31 +0000)]
Remove the $DUMPDIR variable. It's redundant and the rest of the
script uses $dumpdir directly.

16 years agoMake checking for the availability of core dumps work in the case
Mike Makonnen [Sun, 6 Jul 2008 07:51:29 +0000 (07:51 +0000)]
Make checking for the availability of core dumps work in the case
that $dumpdev is not set to "AUTO".

Reported by: Paul B. Mahol <onemda@gmail.com>

16 years agoAdd two corega cards and annotate 8041 V2 chipset.
Warner Losh [Sun, 6 Jul 2008 06:24:02 +0000 (06:24 +0000)]
Add two corega cards and annotate 8041 V2 chipset.

16 years agoAdd two corega cards from NetBSD: FETEHR II PCC TXD and LAPCCTXD.
Warner Losh [Sun, 6 Jul 2008 06:19:19 +0000 (06:19 +0000)]
Add two corega cards from NetBSD: FETEHR II PCC TXD and LAPCCTXD.

16 years agoMerge from NetBSD's pcmciadev file (rev ~1.208 - 1.226) where
Warner Losh [Sun, 6 Jul 2008 06:17:39 +0000 (06:17 +0000)]
Merge from NetBSD's pcmciadev file (rev ~1.208 - 1.226) where
appropriate (versions not appropriate to merge omitted):
o 1.226 imp nop, save for NetBSD string (minor merging the other way)
o 1.225 jnemeth Coreage LAPCCTXD
o 1.224 martin (remove 3rd and 4th clauses)
o 1.223 kiyohara (TDK bluetooth PC Card)
o 1.222 kiyohara (Anycom BlueCard)
o 1.221 ichiro (NEC Infrontia AX420N)
o 1.219 jmcneill (EDIMAX EP-4101)
o 1.213 tsutsui (TEAC IDECARDII entry fix)

Also, while I'm here, fix some tab problems that have crept in.

16 years agoAdd a missing call to config_intrhook_establish().
Rui Paulo [Sat, 5 Jul 2008 23:54:02 +0000 (23:54 +0000)]
Add a missing call to config_intrhook_establish().

16 years agoUse config_intrhook API to create the dev.cpu.N.temperature sysctl node.
Rui Paulo [Sat, 5 Jul 2008 23:19:37 +0000 (23:19 +0000)]
Use config_intrhook API to create the dev.cpu.N.temperature sysctl node.
Our hook creates the sysctl node before root is mounted, but after cpu
is probed. It seems that k8temp can be loaded before the cpu module and,
in those cases, dev.cpu.0.temperature was not created.

PR: 124939

16 years agoIncrease the kernel map's size to 7GB, making room for a kmem map of size
Alan Cox [Sat, 5 Jul 2008 20:44:55 +0000 (20:44 +0000)]
Increase the kernel map's size to 7GB, making room for a kmem map of size
greater than 4GB.  (Auto-sizing will set the ceiling on the kmem map size
to 4.2GB.)

16 years agoMake sure we are clearing the ZBUF_FLAG_IMMUTABLE any time a free buffer
Christian S.J. Peron [Sat, 5 Jul 2008 20:11:28 +0000 (20:11 +0000)]
Make sure we are clearing the ZBUF_FLAG_IMMUTABLE any time a free buffer
is reclaimed by the kernel.  This fixes a bug resulted in the kernel
over writing packet data while user-space was still processing it when
zerocopy is enabled.  (Or a panic if invariants was enabled).

Discussed with: rwatson

16 years agocorrect construction of delba action frame; don't shift+mask the initiator
Sam Leffler [Sat, 5 Jul 2008 19:56:47 +0000 (19:56 +0000)]
correct construction of delba action frame; don't shift+mask the initiator
argument

Submitted by: Marvell

16 years agoEnable the creation of a kmem map larger than 4GB.
Alan Cox [Sat, 5 Jul 2008 19:34:33 +0000 (19:34 +0000)]
Enable the creation of a kmem map larger than 4GB.
Submitted by: Tz-Huan Huang

Make several variables related to kmem map auto-sizing static.
Found by: CScout

16 years agoClarify comments and prototypes in raw_cb.h:
Robert Watson [Sat, 5 Jul 2008 19:12:55 +0000 (19:12 +0000)]
Clarify comments and prototypes in raw_cb.h:

- the protosw entries are used directly
- the usrreq functions are library routines, generally wrapped by
  consumers rather than being used directly
- the usrreq structure entries are likewise typically wrapped

Remove the rather incorrect #if 0'd pr_input_t prototype for raw_input.

MFC after: 3 days

16 years agoRename raw_append() to rip_append(): the raw_ prefix is generally used
Robert Watson [Sat, 5 Jul 2008 18:55:03 +0000 (18:55 +0000)]
Rename raw_append() to rip_append(): the raw_ prefix is generally used
for functions in the generic raw socket library (raw_cb.c, raw_usrreq.c),
and they are not used for IPv4 raw sockets.

MFC after: 3 days

16 years agoImprove approximation of style(9) in raw socket code.
Robert Watson [Sat, 5 Jul 2008 18:03:39 +0000 (18:03 +0000)]
Improve approximation of style(9) in raw socket code.

16 years agoRename several functions in if_lmc with potential name collisions with
Robert Watson [Sat, 5 Jul 2008 16:39:24 +0000 (16:39 +0000)]
Rename several functions in if_lmc with potential name collisions with
global symbols, such as raw_input and raw_output, to have lmc_ prefixes.
This doesn't affect actual functionality since the functions are static,
but will limit the opportunities for current confusion and future
difficulty.

MFC after: 3 days

16 years agoAdd i386_memio_compare() to compare two resources.
Yoshihiro Takahashi [Sat, 5 Jul 2008 16:31:58 +0000 (16:31 +0000)]
Add i386_memio_compare() to compare two resources.
It's used by uart(4) in the future.

16 years ago- Merge macros depending on the flags being preserved between calls
Marius Strobl [Sat, 5 Jul 2008 15:44:56 +0000 (15:44 +0000)]
- Merge macros depending on the flags being preserved between calls
  into a single "__asm"-statement as GCC doesn't guarantee their
  consecutive output even when using consecutive "__asm __volatile"-
  statement for them. Remove the otherwise unnecessary "__volatile". [1]
- The inline assembler instructions used here alter the condition
  codes so add them to the clobber list accordingly.
- The inline assembler instructions used here uses output operands
  before all input operands are consumed so add appropriate modifiers.

Pointed out by: bde [1]
MFC after: 2 weeks

16 years ago- Fix spelling and style.
Marius Strobl [Sat, 5 Jul 2008 15:30:07 +0000 (15:30 +0000)]
- Fix spelling and style.
- Use __FBSDID.

16 years agoRevert the addition of "__volatile" to "__asm" done in r180011, since
Marius Strobl [Sat, 5 Jul 2008 15:28:30 +0000 (15:28 +0000)]
Revert the addition of "__volatile" to "__asm" done in r180011, since
the condition codes where added to the clobber lists in r180073 the
former is unnecessary.

16 years agoNo need to display the result of enabling the ipfw sysctl if it's
Mike Makonnen [Sat, 5 Jul 2008 15:27:39 +0000 (15:27 +0000)]
No need to display the result of enabling the ipfw sysctl if it's
successfull. Issue a warning if it fails, however.

16 years agoThere's no need to announce that we're mounting local filesystems when
Mike Makonnen [Sat, 5 Jul 2008 15:19:58 +0000 (15:19 +0000)]
There's no need to announce that we're mounting local filesystems when
running in quiet mode since if we fail to mount any of them the boot
process gets interrupted.

16 years agoQuiet down rc.d/nfsclient by not printing anything in 'quiet' mode. Instead
Mike Makonnen [Sat, 5 Jul 2008 15:13:21 +0000 (15:13 +0000)]
Quiet down rc.d/nfsclient by not printing anything in 'quiet' mode. Instead
issue a warning of it fails to set the sysctls.

16 years agoIntroduce a new lock, hostname_mtx, and use it to synchronize access
Robert Watson [Sat, 5 Jul 2008 13:10:10 +0000 (13:10 +0000)]
Introduce a new lock, hostname_mtx, and use it to synchronize access
to global hostname and domainname variables.  Where necessary, copy
to or from a stack-local buffer before performing copyin() or
copyout().  A few uses, such as in cd9660 and daemon_saver, remain
under-synchronized and will require further updates.

Correct a bug in which a failed copyin() of domainname would leave
domainname potentially corrupted.

MFC after: 3 weeks

16 years agoTwo quotes too good to miss.
Poul-Henning Kamp [Sat, 5 Jul 2008 08:54:58 +0000 (08:54 +0000)]
Two quotes too good to miss.

16 years agoMove duplicated code from tar_mode_[cru] into archive_write.
Colin Percival [Sat, 5 Jul 2008 08:10:55 +0000 (08:10 +0000)]
Move duplicated code from tar_mode_[cru] into archive_write.

Fix a bug I introduced 7 minutes ago: clean up properly from archive_write
if we exit the argv-handling loop due to -C not having an argument.

16 years agoUse malloc in write_archive to allocate a 64kB buffer for holding file data
Colin Percival [Sat, 5 Jul 2008 08:03:08 +0000 (08:03 +0000)]
Use malloc in write_archive to allocate a 64kB buffer for holding file data
instead of using 64kB of stack space in copy_file_data and write_file_data.

16 years agoAdd CTF conversion to the objects compiled from generated code.
John Birrell [Sat, 5 Jul 2008 06:12:14 +0000 (06:12 +0000)]
Add CTF conversion to the objects compiled from generated code.
This allows DTrace scripts to access variables like 'ostype'.

16 years agoClean up write_entry by eliminating fd except in the #ifdef __linux block
Colin Percival [Sat, 5 Jul 2008 06:05:34 +0000 (06:05 +0000)]
Clean up write_entry by eliminating fd except in the #ifdef __linux block
where it is used. [1]

Don't leak file descriptors in write_entry_backend if archive_write_header
returns ARCHIVE_FAILED.

Found by: Coverity Prevent [1]

16 years agobsdcpio is now at version 1.0.0.
Tim Kientzle [Sat, 5 Jul 2008 05:17:33 +0000 (05:17 +0000)]
bsdcpio is now at version 1.0.0.

16 years agoIn -pl mode, only hardlink regular files. I need to test
Tim Kientzle [Sat, 5 Jul 2008 05:16:23 +0000 (05:16 +0000)]
In -pl mode, only hardlink regular files.  I need to test
other implementations, but it's clear that dirs and symlinks,
at least, shouldn't be hardlinked.

16 years agoRemove an unused define.
Tim Kientzle [Sat, 5 Jul 2008 05:15:07 +0000 (05:15 +0000)]
Remove an unused define.

16 years agoRevert CVS revision 1.68; it is now possible for entry to be NULL at the end
Colin Percival [Sat, 5 Jul 2008 02:21:51 +0000 (02:21 +0000)]
Revert CVS revision 1.68; it is now possible for entry to be NULL at the end
of write_entry.  (This was perfectly safe, since archive_entry_free(NULL) is
a no-op, but adding the check back makes the style more consistent.)

16 years agoFreeBSD-CURRENT bsdtar is synched up with libarchive-portable 2.5.5.
Tim Kientzle [Sat, 5 Jul 2008 02:09:54 +0000 (02:09 +0000)]
FreeBSD-CURRENT bsdtar is synched up with libarchive-portable 2.5.5.

16 years agoRemove HAVE_STRUCT_STAT_ST_RDEV, as it's not used anywhere.
Tim Kientzle [Sat, 5 Jul 2008 02:09:13 +0000 (02:09 +0000)]
Remove HAVE_STRUCT_STAT_ST_RDEV, as it's not used anywhere.

16 years agoStop using the deprecated linux/ext2_fs.h.
Tim Kientzle [Sat, 5 Jul 2008 02:06:55 +0000 (02:06 +0000)]
Stop using the deprecated linux/ext2_fs.h.

16 years agoUse %H:%M for strftime() time formatting instead of the non-portable %R.
Tim Kientzle [Sat, 5 Jul 2008 02:05:55 +0000 (02:05 +0000)]
Use %H:%M for strftime() time formatting instead of the non-portable %R.

16 years agolibarchive in FreeBSD-CURRENT is now synched with libarchive-portable 2.5.5.
Tim Kientzle [Sat, 5 Jul 2008 01:50:40 +0000 (01:50 +0000)]
libarchive in FreeBSD-CURRENT is now synched with libarchive-portable 2.5.5.

16 years agoRemove a couple of capability definitions that are never used.
Tim Kientzle [Sat, 5 Jul 2008 01:50:07 +0000 (01:50 +0000)]
Remove a couple of capability definitions that are never used.