]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoadd ca_AD, ca_FR and ca_IT locales
edwin [Wed, 10 Jun 2009 12:20:11 +0000 (12:20 +0000)]
add ca_AD, ca_FR and ca_IT locales

    Catalan language is not only spoken in Spain (ca_ES), but also
    in Andorra, France and Italy. In Andorra it is the official
    language.

    (see http://en.wikipedia.org/wiki/Catalan_language#Geographic_distribution)

Add a bunch of symlinks to between ca_ES and ca_AD, ca_FR and ca_IT.

PR: conf/92541
Submitted by: <rmh@io.debian.net>
MFC after: 1 week

15 years agoAttempt to fix parallel build.
ariff [Wed, 10 Jun 2009 11:33:47 +0000 (11:33 +0000)]
Attempt to fix parallel build.

15 years agoAll consumers of in_cksum.h have been properly #ifdefed already,
bz [Wed, 10 Jun 2009 11:19:34 +0000 (11:19 +0000)]
All consumers of in_cksum.h have been properly #ifdefed already,
so do not include the file either as it would give as an extra
dependency on INET.

15 years agoin ip_dn_ctl(), do not allocate a large structure on the stack,
luigi [Wed, 10 Jun 2009 10:47:31 +0000 (10:47 +0000)]
in ip_dn_ctl(), do not allocate a large structure on the stack,
and use malloc() instead if/when it is necessary.

The problem is less relevant in previous versions because
the variable involved (tmp_pipe) is much smaller there.
Still worth fixing though.

Submitted by: Marta Carbone (GSOC)
MFC after: 3 days

15 years agoRemove the "The option TCPDEBUG requires option INET." requirement.
bz [Wed, 10 Jun 2009 10:39:41 +0000 (10:39 +0000)]
Remove the "The option TCPDEBUG requires option INET." requirement.
In case of !INET we will not have a timestamp on the trace for now
but that might only affect spx debugging as long as INET6 requires
INET.

Reviewed by: rwatson (earlier version)

15 years agosmall simplifications to the code in charge of reaping deleted rules:
luigi [Wed, 10 Jun 2009 10:34:59 +0000 (10:34 +0000)]
small simplifications to the code in charge of reaping deleted rules:
- clear the head pointer immediately before using it, so there is
  no chance of mistakes;
- call reap_rules() unconditionally. The function can handle a NULL
  argument just fine, and the cost of the extra call is hardly
  significant given that we do it rarely and outside the lock.

MFC after: 3 days

15 years agoPrevent integer overflow in direct pipe write code from circumventing
cperciva [Wed, 10 Jun 2009 10:31:11 +0000 (10:31 +0000)]
Prevent integer overflow in direct pipe write code from circumventing
virtual-to-physical page lookups. [09:09]

Add missing permissions check for SIOCSIFINFO_IN6 ioctl. [09:10]

Fix buffer overflow in "autokey" negotiation in ntpd(8). [09:11]

Approved by: so (cperciva)
Approved by: re (not really, but SVN wants this...)
Security: FreeBSD-SA-09:09.pipe
Security: FreeBSD-SA-09:10.ipv6
Security: FreeBSD-SA-09:11.ntpd

15 years agoPut the variable declarations for TCPDEBUG under #ifdef INET as well.
bz [Wed, 10 Jun 2009 09:28:50 +0000 (09:28 +0000)]
Put the variable declarations for TCPDEBUG under #ifdef INET as well.
The implementation already has this right.

Reviewed by: rwatson

15 years agoThe llentry *lle is only used in cases of INET or INET6.
bz [Wed, 10 Jun 2009 09:07:05 +0000 (09:07 +0000)]
The llentry *lle is only used in cases of INET or INET6.
Put the variable declaration under proper #ifdefs.

In case variables are only needed for one of the two AFs
more them into proper scope.

15 years agoMove all sound related scripts to its own 'sound' subdir.
ariff [Wed, 10 Jun 2009 06:49:45 +0000 (06:49 +0000)]
Move all sound related scripts to its own 'sound' subdir.

Suggested by: jmallett

15 years agoOops, fix directory name.
yongari [Wed, 10 Jun 2009 04:18:11 +0000 (04:18 +0000)]
Oops, fix directory name.

15 years agoMove machine dependant AFMT_* definition from sound.h
ariff [Wed, 10 Jun 2009 03:56:24 +0000 (03:56 +0000)]
Move machine dependant AFMT_* definition from sound.h
to global soundcard.h .

15 years agoMarvell 88W8363 driver and associated firmware
sam [Wed, 10 Jun 2009 03:35:40 +0000 (03:35 +0000)]
Marvell 88W8363 driver and associated firmware

15 years agoiwn does not require a license ack
sam [Wed, 10 Jun 2009 03:28:34 +0000 (03:28 +0000)]
iwn does not require a license ack

15 years agoFix typo.
yongari [Wed, 10 Jun 2009 03:26:21 +0000 (03:26 +0000)]
Fix typo.

15 years agoAdd alc(4) man page and hook up ale(4) to the build.
yongari [Wed, 10 Jun 2009 02:19:54 +0000 (02:19 +0000)]
Add alc(4) man page and hook up ale(4) to the build.
Also add Xr to appropriate man pages.

15 years agoAdd alc(4) to the list of supported network interface.
yongari [Wed, 10 Jun 2009 02:10:35 +0000 (02:10 +0000)]
Add alc(4) to the list of supported network interface.

15 years agoAdd alc(4), a driver for Atheros AR8131/AR8132 PCIe ethernet
yongari [Wed, 10 Jun 2009 02:07:58 +0000 (02:07 +0000)]
Add alc(4), a driver for Atheros AR8131/AR8132 PCIe ethernet
controller. These controllers are also known as L1C(AR8131) and
L2C(AR8132) respectively. These controllers resembles the first
generation controller L1 but usage of different descriptor format
and new register mappings over L1 register space requires a new
driver. There are a couple of registers I still don't understand
but the driver seems to have no critical issues for performance and
stability. Currently alc(4) supports the following hardware
features.
  o MSI
  o TCP Segmentation offload
  o Hardware VLAN tag insertion/stripping
  o Tx/Rx interrupt moderation
  o Hardware statistics counters(dev.alc.%d.stats)
  o Jumbo frame
  o WOL
AR8131/AR8132 also supports Tx checksum offloading but I disabled
it due to stability issues. I'm not sure this comes from broken
sample boards or hardware bugs. If you know your controller works
without problems you can still enable it. The controller has a
silicon bug for Rx checksum offloading, so the feature was not
implemented.
I'd like to say big thanks to Atheros. Atheros kindly sent sample
boards to me and answered several questions I had.

HW donated by: Atheros Communications, Inc.

15 years agoAs far as I can tell systems that have less than 4GB are more often hurt
kmacy [Wed, 10 Jun 2009 01:21:32 +0000 (01:21 +0000)]
As far as I can tell systems that have less than 4GB are more often hurt
by prefetched than helped.  On i386 systems and systems with less than 4GB,
prefetch is now disabled by default. I've added a prefetch enable tunable, to
enable prefetching for those systems. The prefetch disable tunable will continue
to unconditionally disable prefetching.

15 years agoController will dma SCB command status for a given command and
yongari [Wed, 10 Jun 2009 01:15:30 +0000 (01:15 +0000)]
Controller will dma SCB command status for a given command and
driver should read updated status back after issuing a SCB command.
To send a command to controller and read updated status back,
driver should synchronize both memory read and write operations
with device. Fix bus_dmamap_sync operation specifier used in
fxp_dma_wait() by adding both memory read and memory write
operations.

15 years agoWe can actually remove devclass_find_driver.
imp [Wed, 10 Jun 2009 01:02:38 +0000 (01:02 +0000)]
We can actually remove devclass_find_driver.

15 years agoThese are no longer public, so remove the man page.
imp [Tue, 9 Jun 2009 23:38:19 +0000 (23:38 +0000)]
These are no longer public, so remove the man page.

15 years agoAs discussed on arch@, restire
imp [Tue, 9 Jun 2009 23:24:04 +0000 (23:24 +0000)]
As discussed on arch@, restire
devclass_{add,delete,find,quiesce}_driver.  They aren't needed or used
and complicate locking newbus.

15 years agoja_JP: AM/PM date format should be localized.
edwin [Tue, 9 Jun 2009 22:33:34 +0000 (22:33 +0000)]
ja_JP: AM/PM date format should be localized.

ja_JP.eucJP and ja_JP.SJIS fixes.

PR: conf/63527
Submitted by: Yukihiro Nakai <nakai@gnome.gr.jp>
MFC after: 1 week

15 years agoFix LC_NUMERIC and LC_MONETARY for de_CH locale
edwin [Tue, 9 Jun 2009 22:22:04 +0000 (22:22 +0000)]
Fix LC_NUMERIC and LC_MONETARY for de_CH locale

With the de_CH (swiss german) locale, numbers should look like this:

    numbers: 1'234.45
    monetary values: Fr. 1'234.45

Previously, the thousands separator was missing for numbers, and
"." for monetary values, and "," was incorrectly used as decimal
point.

PR: conf/75502
Submitted by: Benjamin Lutz <benlutz@datacomm.ch>
MFC after: 1 week

15 years agoFix some overflow errors: a signed allocation and an insufficiant
jamie [Tue, 9 Jun 2009 22:09:29 +0000 (22:09 +0000)]
Fix some overflow errors: a signed allocation and an insufficiant
array size.

Reported by: pho
Tested by: pho
Approved by: bz (mentor)

15 years agoopt in to flowtable on i386/amd64
kmacy [Tue, 9 Jun 2009 21:58:14 +0000 (21:58 +0000)]
opt in to flowtable on i386/amd64

15 years agorevert to opt-in flowtable
kmacy [Tue, 9 Jun 2009 21:55:28 +0000 (21:55 +0000)]
revert to opt-in flowtable

15 years agoAdd opt_inet.h back lost with r190872.
bz [Tue, 9 Jun 2009 21:43:04 +0000 (21:43 +0000)]
Add opt_inet.h back lost with r190872.
This will bring back improved IPv4 SIOCSIFADDR ioctl handling
not re-initializing the interface if avoidable.

15 years agoSync struct ng_ipfw_tag description with sources.
oleg [Tue, 9 Jun 2009 21:35:32 +0000 (21:35 +0000)]
Sync struct ng_ipfw_tag description with sources.

Submitted by: Mikolaj Golub

15 years agoadd explanatory header license
kmacy [Tue, 9 Jun 2009 21:29:16 +0000 (21:29 +0000)]
add explanatory header license

15 years agoClose long existed race with net.inet.ip.fw.one_pass = 0:
oleg [Tue, 9 Jun 2009 21:27:11 +0000 (21:27 +0000)]
Close long existed race with net.inet.ip.fw.one_pass = 0:
If packet leaves ipfw to other kernel subsystem (dummynet, netgraph, etc)
it carries pointer to matching ipfw rule. If this packet then reinjected back
to ipfw, ruleset processing starts from that rule. If rule was deleted
meanwhile, due to existed race condition panic was possible (as well as
other odd effects like parsing rules in 'reap list').

P.S. this commit changes ABI so userland ipfw related binaries should be
recompiled.

MFC after: 1 month
Tested by: Mikolaj Golub

15 years agomake flowtable opt-out
kmacy [Tue, 9 Jun 2009 20:27:30 +0000 (20:27 +0000)]
make flowtable opt-out

15 years agoremove flowtable from DEFAULTS
kmacy [Tue, 9 Jun 2009 20:26:52 +0000 (20:26 +0000)]
remove flowtable from DEFAULTS

15 years agomove jenkins hash to its own header in libkern
kmacy [Tue, 9 Jun 2009 20:21:40 +0000 (20:21 +0000)]
move jenkins hash to its own header in libkern

15 years ago1. Update the message that prints out for -U when the mtree database does
dougb [Tue, 9 Jun 2009 20:20:08 +0000 (20:20 +0000)]
1. Update the message that prints out for -U when the mtree database does
not exist to let the user know that it will be created for the next run.

2. Delete more stuff we're not going to use from the temproot prior to
creating the mtree database to dramatically reduce its size (162K -> 37K).

3. We've been deleting the zero-size files from temproot for a long time
now, so remove the spurious "-size +0" from the find command in the
comparison loop, and remove what is now a really stale comment.

15 years agoAdd part of NFSv4 ACL kernel support code that is required for the upcoming
trasz [Tue, 9 Jun 2009 19:51:22 +0000 (19:51 +0000)]
Add part of NFSv4 ACL kernel support code that is required for the upcoming
libc changes to work.  Not connected to the kernel build yet; for now,
it will be compiled into libc.

Reviewed by: rwatson

15 years ago- add drbr routines for accessing #qentries and conditionally dequeueing
kmacy [Tue, 9 Jun 2009 19:19:16 +0000 (19:19 +0000)]
- add drbr routines for accessing #qentries and conditionally dequeueing
- track bytes enqueued in buf_ring

15 years agoPass the previously returned IRQ back to arm_get_next_irq() so that
marcel [Tue, 9 Jun 2009 18:18:41 +0000 (18:18 +0000)]
Pass the previously returned IRQ back to arm_get_next_irq() so that
the implementation can guarantee forward progress in the event of
a stuck interrupt or interrupt storm. This is especially critical
for fast interrupt handlers, as they can cause a hard hang in that
case. When first called, arm_get_next_irq() is passed -1.

Obtained from: Juniper Networks, Inc.

15 years agoDisable interrupts to allow booting on firmware (e.g. U-Boot) that
marcel [Tue, 9 Jun 2009 17:21:47 +0000 (17:21 +0000)]
Disable interrupts to allow booting on firmware (e.g. U-Boot) that
has interrupts enabled and active.

Obtained from: Juniper Networks, Inc.

15 years agoEliminate an instance of VM_PROT_READ_IS_EXEC that I overlooked in r190705.
alc [Tue, 9 Jun 2009 17:18:41 +0000 (17:18 +0000)]
Eliminate an instance of VM_PROT_READ_IS_EXEC that I overlooked in r190705.

15 years agoprotect callouts with the com lock
sam [Tue, 9 Jun 2009 17:12:19 +0000 (17:12 +0000)]
protect callouts with the com lock

Prodded by: jhb

15 years agoadd missing calls to ieee80211_dfs_attach/detach
sam [Tue, 9 Jun 2009 17:11:41 +0000 (17:11 +0000)]
add missing calls to ieee80211_dfs_attach/detach

15 years agoEliminate an unnecessary restriction on the vm object type from
alc [Tue, 9 Jun 2009 17:04:39 +0000 (17:04 +0000)]
Eliminate an unnecessary restriction on the vm object type from
vm_map_pmap_enter().  The immediate effect of this change is that automatic
prefaulting by mmap() for small mappings is performed on POSIX shared memory
objects just the same as it is on ordinary files.

15 years agoCorrect ieee80211_gettid:
sam [Tue, 9 Jun 2009 16:32:07 +0000 (16:32 +0000)]
Correct ieee80211_gettid:
o don't increment extracted tid, this was a vestige of IEEE80211_NONQOS_TID
  being defined as 0 (w/ real tid's +1)
o handle 4-address frames (add IEEE80211_IS_DSTODS to check if an 802.11
  header is DSTODS)

Submitted by: cbzimmer
Reviewed by: avatar

15 years agoSince vn_lock() with the LK_RETRY flag never returns an error
rmacklem [Tue, 9 Jun 2009 15:18:01 +0000 (15:18 +0000)]
Since vn_lock() with the LK_RETRY flag never returns an error
for FreeBSD-CURRENT, the code that checked for and returned the
error was broken. Change it to check for VI_DOOMED set after
vn_lock() and return an error for that case. I believe this
should only happen for forced dismounts.

Approved by: kib (mentor)

15 years agoAdd support for multiple passes of the device tree during the boot-time
jhb [Tue, 9 Jun 2009 14:26:23 +0000 (14:26 +0000)]
Add support for multiple passes of the device tree during the boot-time
probe.  The current device order is unchanged.  This commit just adds the
infrastructure and ABI changes so that it is easier to merge later changes
into 8.x.
- Driver attachments now have an associated pass level.  Attachments are
  not allowed to probe or attach to drivers until the system-wide pass level
  is >= the attachment's pass level.  By default driver attachments use the
  "last" pass level (BUS_PASS_DEFAULT).  Driver's that wish to probe during
  an earlier pass use EARLY_DRIVER_MODULE() instead of DRIVER_MODULE() which
  accepts the pass level as an additional parameter.
- A new method BUS_NEW_PASS has been added to the bus interface.  This
  method is invoked when the system-wide pass level is changed to kick off
  a rescan of the device tree so that drivers that have just been made
  "eligible" can probe and attach.
- The bus_generic_new_pass() function provides a default implementation of
  BUS_NEW_PASS().  It first allows drivers that were just made eligible for
  this pass to identify new child devices.  Then it propogates the rescan to
  child devices that already have an attached driver by invoking their
  BUS_NEW_PASS() method.  It also reprobes devices without a driver.
- BUS_PROBE_NOMATCH() is only invoked for devices that do not have
  an attached driver after being scanned during the final pass.
- The bus_set_pass() function is used during boot to raise the pass level.
  Currently it is only called once during root_bus_configure() to raise
  the pass level to BUS_PASS_DEFAULT.  This has the effect of probing all
  devices in a single pass identical to previous behavior.

Reviewed by: imp
Approved by: re (kib)

15 years agoRework the _BBN handling for Host-PCI bridges. Previously we only trusted
jhb [Tue, 9 Jun 2009 13:44:17 +0000 (13:44 +0000)]
Rework the _BBN handling for Host-PCI bridges.  Previously we only trusted
a _BBN value of 0 if it was for the first bridge encountered since some
older systems returned _BBN of 0 for all bridges.  However, some newer
systems enumerate bridges with non-zero _BBN before bus 0 which is
perfectly valid.  Handle both cases by trusting the first bridge that has
a _BBN of 0 and falling back to reading from non-standard config registers
only for subsequent bridges with a _BBN of 0.  We also only perform this
check for segment (domain) 0.  We assume that _BBN is always correct
for segments other than 0.

Tested by: Josef Moellers  josef.moellers at fujitsu
MFC after: 1 week

15 years ago- Remove an unnecessary memory barrier from an atomic op.
jhb [Tue, 9 Jun 2009 13:33:03 +0000 (13:33 +0000)]
- Remove an unnecessary memory barrier from an atomic op.
- Use the per-softc mutex to protect the softc data in the callout routine
  rather than letting it run without any locks whatsoever.

15 years agoRevert r181651, which changed the ABI, and use a temp variable instead.
des [Tue, 9 Jun 2009 12:32:10 +0000 (12:32 +0000)]
Revert r181651, which changed the ABI, and use a temp variable instead.

Suggested by: attilio

15 years agoFor now only compile flowtable.c if both options FLOWTABLE and INET
bz [Tue, 9 Jun 2009 11:31:47 +0000 (11:31 +0000)]
For now only compile flowtable.c if both options FLOWTABLE and INET
are given.  This will also work when we add IPv6 support as for now
INET6 depends on INET.

15 years agoEach generated file should depend its own generator as well.
ariff [Tue, 9 Jun 2009 10:17:22 +0000 (10:17 +0000)]
Each generated file should depend its own generator as well.

15 years agoRemove one INET dependency by calling the general
bz [Tue, 9 Jun 2009 09:50:43 +0000 (09:50 +0000)]
Remove one INET dependency by calling the general
AF agnostic version for doing the routing lookup.

Reviewed by: kmacy

15 years agoUnbreak the build for amd64 after r193814 using correct variable names.
bz [Tue, 9 Jun 2009 09:47:02 +0000 (09:47 +0000)]
Unbreak the build for amd64 after r193814 using correct variable names.

15 years agoDepend on @ machine (_ILINKS) as we do with other modules so that @
bz [Tue, 9 Jun 2009 09:03:13 +0000 (09:03 +0000)]
Depend on @ machine (_ILINKS) as we do with other modules so that @
is there for parallel (-jN) builds.  Ideally beforedepends in kmod.mk
should do the right thing but it seems it does not.

15 years agoSpacing fixes. No actual change.
delphij [Tue, 9 Jun 2009 09:02:58 +0000 (09:02 +0000)]
Spacing fixes.  No actual change.

15 years agoStyle fix.
hrs [Tue, 9 Jun 2009 08:09:30 +0000 (08:09 +0000)]
Style fix.

Submitted by: bz

15 years agoWhen using i8254 as the only kernel timer source:
ariff [Tue, 9 Jun 2009 07:26:52 +0000 (07:26 +0000)]
When using i8254 as the only kernel timer source:

- Interpolate stat/prof clock using clkintr() in a similar fashion to
  local APIC timer, since statclock usually run slower.

- Liberate hardclockintr() from taking the burden of handling both stat
  and prof clock interrupt. Instead, send IPIs within clkintr() to handle
  those.

15 years agoUse new spelling of the NG_*LEN constants.
imp [Tue, 9 Jun 2009 07:14:32 +0000 (07:14 +0000)]
Use new spelling of the NG_*LEN constants.

15 years agoWorld now builds without these defines, so eliminate them.
imp [Tue, 9 Jun 2009 07:07:20 +0000 (07:07 +0000)]
World now builds without these defines, so eliminate them.

Approved by: julian@

15 years agoDocument the fact that some Core2 family CPUs lack fixed-function counters.
jkoshy [Tue, 9 Jun 2009 06:36:29 +0000 (06:36 +0000)]
Document the fact that some Core2 family CPUs lack fixed-function counters.

15 years agoFix parsing of Core2 event qualifiers.
jkoshy [Tue, 9 Jun 2009 06:34:48 +0000 (06:34 +0000)]
Fix parsing of Core2 event qualifiers.

Submitted by: Nikola K <laladelausanne at gmail dot com>

15 years agoGet the other NG_PATHLEN while I'm here too :(.
imp [Tue, 9 Jun 2009 05:24:06 +0000 (05:24 +0000)]
Get the other NG_PATHLEN while I'm here too :(.

15 years agoUse NG_PATHSIZ instead of NG_PATHLEN + 1.
imp [Tue, 9 Jun 2009 05:18:14 +0000 (05:18 +0000)]
Use NG_PATHSIZ instead of NG_PATHLEN + 1.

15 years agoMove C1E workaround into its own idle function. Previous workaround works
ariff [Tue, 9 Jun 2009 04:17:36 +0000 (04:17 +0000)]
Move C1E workaround into its own idle function. Previous workaround works
only during initial booting process, while there are laptops/BIOSes that
tend to act 'smarter' by force enabling C1E if the main power adapter
being pulled out, rendering previous workaround ineffective. Given the
fact that we still rely on local APIC to drive timer interrupt, this
workaround should keep all Turion (probably Phenom too) X\d+ alive whether
its on battery power or not.

URL: http://lists.freebsd.org/pipermail/freebsd-acpi/2008-April/004858.html
     http://lists.freebsd.org/pipermail/freebsd-acpi/2008-May/004888.html

Tested by: Peter Jeremy <peterjeremy at optushome d com d au>

15 years agounify zyd_tx_mgt() and zyd_tx_data() to simplify TX path and sorts
weongyo [Tue, 9 Jun 2009 04:17:08 +0000 (04:17 +0000)]
unify zyd_tx_mgt() and zyd_tx_data() to simplify TX path and sorts
setting TX descritor.

While I'm here fixes a bug that the management frames only sent at 2
Mbits/s.

15 years agoFix bug in zphys offset calculation I introduced while retyping
bland [Tue, 9 Jun 2009 04:09:31 +0000 (04:09 +0000)]
Fix bug in zphys offset calculation I introduced while retyping
original patch.

15 years agoChase ZFS v13 import changes.
bland [Tue, 9 Jun 2009 03:35:42 +0000 (03:35 +0000)]
Chase ZFS v13 import changes.
This is a temporary fix until we find a way to avoid fstat
to be broken each time we change the znode.

Approved by: lulf

15 years ago- Fix sanity check of GIFSOPTS ioctl.
hrs [Tue, 9 Jun 2009 02:27:59 +0000 (02:27 +0000)]
- Fix sanity check of GIFSOPTS ioctl.
- Rename option mask s/GIF_FULLOPTS/GIF_OPTMASK/

Spotted by: Eygene Ryabinkin, delphij

15 years agoAdd line width calculations for 15/16 and 24/32 bit modes in case
delphij [Tue, 9 Jun 2009 00:54:57 +0000 (00:54 +0000)]
Add line width calculations for 15/16 and 24/32 bit modes in case
the "Get Scan Line Length" function fails, as it does in Parallels
(in Version 2.2, Build 2112 at least).

PR: i386/127367
Obtained from: DragonFly
Submitted by: Pedro Giffuni
MFC after: 1 month

15 years agoMFV of tzdata2009i:
edwin [Tue, 9 Jun 2009 00:09:36 +0000 (00:09 +0000)]
MFV of tzdata2009i:

Bangladesh will go into DST on 20 June.

MFC after: 2 days

15 years agoFix compile time warning on sparc64, thanks to strict kobj signatures checking.
ariff [Mon, 8 Jun 2009 23:24:01 +0000 (23:24 +0000)]
Fix compile time warning on sparc64, thanks to strict kobj signatures checking.

Noticed by: bz

15 years agoAdd self, list mentor in committers-src.dot
np [Mon, 8 Jun 2009 22:03:37 +0000 (22:03 +0000)]
Add self, list mentor in committers-src.dot

Approved by: gnn (mentor)

15 years agoUpdate vnet_net size guard information after r193731.
bz [Mon, 8 Jun 2009 22:02:30 +0000 (22:02 +0000)]
Update vnet_net size guard information after r193731.

15 years agoReflect debug level changes from the recent ACPICA import.
jkim [Mon, 8 Jun 2009 21:48:13 +0000 (21:48 +0000)]
Reflect debug level changes from the recent ACPICA import.

15 years agoFix an off by one error when we limit append/prepend text sizes based on our
brian [Mon, 8 Jun 2009 21:42:30 +0000 (21:42 +0000)]
Fix an off by one error when we limit append/prepend text sizes based on our
internal buffer sizes.

When we 'append', assume we're appending to text.  Some MS dhcp servers will
give us a string with the length including the trailing NUL.  when we 'append
domain-name', we get something like "search x.y\000 z" in resolv.conf :(

MFC after: 1 week
Security: A buffer overflow (by one NUL byte) was possible.

15 years agoSimply shared vnode locking and extend it to also include fsync.
ps [Mon, 8 Jun 2009 21:23:54 +0000 (21:23 +0000)]
Simply shared vnode locking and extend it to also include fsync.
Also, in vop_write, no longer assert for exclusive locks on the
vnode.

Reviewed by: jhb, kmacy, jeffr

15 years agopurge dead code
sam [Mon, 8 Jun 2009 21:16:06 +0000 (21:16 +0000)]
purge dead code

15 years agofix big-endian machines
sam [Mon, 8 Jun 2009 21:15:40 +0000 (21:15 +0000)]
fix big-endian machines

15 years agoAdd myself.
tuexen [Mon, 8 Jun 2009 21:14:21 +0000 (21:14 +0000)]
Add myself.

Approved by: rrs (mentor)

15 years agoRemove redundant checks for ACPI_WAIT_FOREVER cases.
jkim [Mon, 8 Jun 2009 20:50:38 +0000 (20:50 +0000)]
Remove redundant checks for ACPI_WAIT_FOREVER cases.

15 years agoUse proper types in kbdmux_kbd_getc():
ed [Mon, 8 Jun 2009 20:24:29 +0000 (20:24 +0000)]
Use proper types in kbdmux_kbd_getc():

- The return value should be a signed integer, because -1 means failure.
- The c variable should be unsigned, to force it to be zero-extended
  when returned.

Reported by: Andreas Tobler <andreast-list fgznet ch>

15 years agoRewrite OsdSynch.c to reflect the latest ACPICA more closely:
jkim [Mon, 8 Jun 2009 20:07:16 +0000 (20:07 +0000)]
Rewrite OsdSynch.c to reflect the latest ACPICA more closely:

- Implement ACPI semaphore (ACPI_SEMAPHORE) with condvar(9) and mutex(9).
- Implement ACPI mutex (ACPI_MUTEX) with mutex(9).
- Implement ACPI lock (ACPI_SPINLOCK) with spin mutex(9).

15 years agoRemove two unneeded, hidden includes.
bz [Mon, 8 Jun 2009 20:04:46 +0000 (20:04 +0000)]
Remove two unneeded, hidden includes.

15 years agoAfter r193232 rt_tables in vnet.h are no longer indirectly dependent on
bz [Mon, 8 Jun 2009 19:57:35 +0000 (19:57 +0000)]
After r193232 rt_tables in vnet.h are no longer indirectly dependent on
the ROUTETABLES kernel option thus there is no need to include opt_route.h
anymore in all consumers of vnet.h and no longer depend on it for module
builds.

Remove the hidden include in flowtable.h as well and leave the two
explicit #includes in ip_input.c and ip_output.c.

15 years agoCommit missed driver_info to driver_ivar change in usb_attach_args.
thompsa [Mon, 8 Jun 2009 19:56:23 +0000 (19:56 +0000)]
Commit missed driver_info to driver_ivar change in usb_attach_args.

Pointed out by: kib

15 years agoFix nfscl_getcl() so that it doesn't crash when it is called to
rmacklem [Mon, 8 Jun 2009 18:41:23 +0000 (18:41 +0000)]
Fix nfscl_getcl() so that it doesn't crash when it is called to
do an NFSv4 Close operation with the cred argument NULL. Also,
clarify what NULL arguments mean in the function's comment.

Approved by: kib (mentor)

15 years agoRevert my change; reintroduce __gnu89_inline.
ed [Mon, 8 Jun 2009 18:23:43 +0000 (18:23 +0000)]
Revert my change; reintroduce __gnu89_inline.

It turns out our compiler in stable/7 can't build this code anymore.
Even though my opinion is that those people should just run `make
kernel-toolchain' before building a kernel, I am willing to wait and
commit this after we've branched stable/8.

Requested by: rwatson

15 years agoChange driver_info to a ulong as it always stores a number and remove the only
thompsa [Mon, 8 Jun 2009 18:09:51 +0000 (18:09 +0000)]
Change driver_info to a ulong as it always stores a number and remove the only
diff of the usb_device_id struct to Linux.

Reviewed by: HPS

15 years agoRemove __gnu89_inline.
ed [Mon, 8 Jun 2009 17:27:25 +0000 (17:27 +0000)]
Remove __gnu89_inline.

Now that we use C99 almost everywhere, just use C99-style in the pmap
code. Since the pmap code is the only consumer of __gnu89_inline, remove
it from cdefs.h as well. Because the flag was only introduced 17 months
ago, I don't expect any problems.

Reviewed by: alc

15 years agoIntroduce an infrastructure for dismantling vnet instances.
zec [Mon, 8 Jun 2009 17:15:40 +0000 (17:15 +0000)]
Introduce an infrastructure for dismantling vnet instances.

Vnet modules and protocol domains may now register destructor
functions to clean up and release per-module state.  The destructor
mechanisms can be triggered by invoking "vimage -d", or a future
equivalent command which will be provided via the new jail framework.

While this patch introduces numerous placeholder destructor functions,
many of those are currently incomplete, thus leaking memory or (even
worse) failing to stop all running timers.  Many of such issues are
already known and will be incrementaly fixed over the next weeks in
smaller incremental commits.

Apart from introducing new fields in structs ifnet, domain, protosw
and vnet_net, which requires the kernel and modules to be rebuilt, this
change should have no impact on nooptions VIMAGE builds, since vnet
destructors can only be called in VIMAGE kernels.  Moreover,
destructor functions should be in general compiled in only in
options VIMAGE builds, except for kernel modules which can be safely
kldunloaded at run time.

Bump __FreeBSD_version to 800097.
Reviewed by: bz, julian
Approved by: rwatson, kib (re), julian (mentor)

15 years agoClean up FreeBSD-specific header file:
jkim [Mon, 8 Jun 2009 17:11:47 +0000 (17:11 +0000)]
Clean up FreeBSD-specific header file:

- Define ACPI_USE_DO_WHILE_0 to add do while(0) around return_*() macros.
- Define __cdecl only for user land.  It will never be used in kernel.
- Remove __cli() and __sti().  They were deprecated long ago.

15 years agoNow that amd64's kernel map is 512GB (SVN rev 192216), there is no reason
alc [Mon, 8 Jun 2009 16:43:40 +0000 (16:43 +0000)]
Now that amd64's kernel map is 512GB (SVN rev 192216), there is no reason
to cap its buffer map at 1GB.

MFC after: 6 weeks

15 years agoChange the printf format string to match the variable type to quiet
jhb [Mon, 8 Jun 2009 15:54:07 +0000 (15:54 +0000)]
Change the printf format string to match the variable type to quiet
warnings.

15 years agoMove zombie-reaping code out of kern_wait() and into its own function,
rwatson [Mon, 8 Jun 2009 15:26:09 +0000 (15:26 +0000)]
Move zombie-reaping code out of kern_wait() and into its own function,
proc_reap().
Reviewed by: jhb
MFC after: 3 days
Sponsored by: Google, Inc.

15 years agoCode using COMPAT_ROUTE_FLAGS option, introduced with r187094,
bz [Mon, 8 Jun 2009 15:13:20 +0000 (15:13 +0000)]
Code using COMPAT_ROUTE_FLAGS option, introduced with r187094,
was changed again in r187328, removing any use of the option from
the kernel.  The option was never in NOTES.  Garbage collect.

15 years agoInstead of packing the individual fields in the PnP structures, pack the
jhb [Mon, 8 Jun 2009 15:09:22 +0000 (15:09 +0000)]
Instead of packing the individual fields in the PnP structures, pack the
entire structures.  This trims some warnings.

Verified by: md5(1)
MFC after: 1 week

15 years agoDon't attempt to free the GPT partition list for a disk with an empty GPT.
jhb [Mon, 8 Jun 2009 15:07:35 +0000 (15:07 +0000)]
Don't attempt to free the GPT partition list for a disk with an empty GPT.

Submitted by: Yuri Pankov  yuri.pankov of gmail
MFC after: 3 days

15 years agoUpdate vimage size guard values but do not yet re-enable them.
bz [Mon, 8 Jun 2009 15:02:30 +0000 (15:02 +0000)]
Update vimage size guard values but do not yet re-enable them.
Now that rt_tables does no longer change depending on kernel option
we do no longer need any special values for LINT.

The updated values will be used to make sure that an upcoming
opt_route.h cleanup will not again show any side effects.

15 years agoAdd another PCI id for Nvidia nForce MCP67, found in several Acer laptops.
ariff [Mon, 8 Jun 2009 14:37:47 +0000 (14:37 +0000)]
Add another PCI id for Nvidia nForce MCP67, found in several Acer laptops.