]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years agoRemove vestiges of old %-format which prevents build on amd64
ache [Sat, 6 Mar 2010 22:38:38 +0000 (22:38 +0000)]
Remove vestiges of old %-format which prevents build on amd64

14 years agoRemove unnecessary locking of divcbinfo lock from div_output(): this has not
rwatson [Sat, 6 Mar 2010 22:04:45 +0000 (22:04 +0000)]
Remove unnecessary locking of divcbinfo lock from div_output(): this has not
been required since FreeBSD 7.0 when the so_pcb pointer leading to inp was
guaranteed to be stable when a valid socket reference is held (as it is in
the output path).

MFC after: 1 week
Reviewed by: bz
Sponsored by: Juniper Networks

14 years agoAdd a comment to tcp_usr_accept() to indicate why it is we acquire the
rwatson [Sat, 6 Mar 2010 21:38:31 +0000 (21:38 +0000)]
Add a comment to tcp_usr_accept() to indicate why it is we acquire the
tcbinfo lock there: r175612, which re-added it, masked a race between
sonewconn(2) and accept(2) that could allow an incompletely initialized
address on a newly-created socket on a listen queue to be exposed.  Full
details can be found in that commit message.

MFC after: 1 week
Sponsored by: Juniper Networks

14 years agoIntroduce a function rn_detachhead() that will free the
bz [Sat, 6 Mar 2010 21:27:26 +0000 (21:27 +0000)]
Introduce a function rn_detachhead() that will free the
radix table root nodes.  This is only needed (and available)
in the virtualization case to free the resources when tearing
down a virtual network stack.

Sponsored by: ISPsystem
Reviewed by: julian, zec
MFC after: 5 days

14 years agoDestroy UDP UMA zones (empty or not) upon network stack teardown
bz [Sat, 6 Mar 2010 21:24:32 +0000 (21:24 +0000)]
Destroy UDP UMA zones (empty or not) upon network stack teardown
to not leak them making the VM subsystem unhappy with every stoped vnet(*).
We will still leak pages (especially as zones are marked NOFREE).

(*) This will also keep vmstat -z more usable.

Sponsored by: ISPsystem
MFC after: 5 days

14 years agoWrap use of rw_try_upgrade() on pcbinfo with macro INP_INFO_TRY_UPGRADE()
rwatson [Sat, 6 Mar 2010 21:24:11 +0000 (21:24 +0000)]
Wrap use of rw_try_upgrade() on pcbinfo with macro INP_INFO_TRY_UPGRADE()
to match other pcbinfo locking macros.

MFC after: 1 week

14 years agoRework reference counting in case we queue into the netisr,
bz [Sat, 6 Mar 2010 21:22:28 +0000 (21:22 +0000)]
Rework reference counting in case we queue into the netisr,
or overflow the netisr queue and fall back to the interface
queue so that we can garuantee that the ifnet pointer stays
valid.   Formerly we ended up with reference counts <= 0 in
case the netisr had returned ENOBUFS.  The idea is to track
any packet in the netisr queue and only change the refount
on edge operations for the fallback interface queue. This
also avoids problems in case the if_snd.ifq_len lies to us.

Also rework refount assertions to make sure they trigger if
we go below 1. Formerly a negative refence count did not
trigger the assert as the refcount variable is u_int.

Sponsored by: ISPsystem
MFC after: 5 days

14 years agoRemove racy assertion.
pjd [Sat, 6 Mar 2010 20:03:26 +0000 (20:03 +0000)]
Remove racy assertion.

Reported by: Attila Nagy <bra@fsn.hu>
Obtained from: OpenSolaris, Bug ID 6827260
MFC after: 1 week

14 years ago1) Rewrite input processing to not exit with error on the first EILSEQ found
ache [Sat, 6 Mar 2010 19:21:57 +0000 (19:21 +0000)]
1) Rewrite input processing to not exit with error on the first EILSEQ found
in the input data but fallback to "binary equal" check instead.

POSIX says: "The input file shall be a text file", nothing more,
so the text file with illegal sequence is valid input.
BTW, GNU sort does not fails on EILSEQ too.

2) Speedup input processing a bit in complex cases like skipping fields,
chars or ignore case.

3) Enforce the implied LINE_MAX limit (from POSIX definition of "text file"
and POSIX uniq(1) description).

14 years agosh: Make sure to popredir() even if a function caused an error.
jilles [Sat, 6 Mar 2010 17:31:09 +0000 (17:31 +0000)]
sh: Make sure to popredir() even if a function caused an error.

14 years agosh: Make sure to popredir() even if a special builtin caused an error.
jilles [Sat, 6 Mar 2010 17:09:22 +0000 (17:09 +0000)]
sh: Make sure to popredir() even if a special builtin caused an error.

14 years agosh: Improve the command builtin:
jilles [Sat, 6 Mar 2010 16:57:53 +0000 (16:57 +0000)]
sh: Improve the command builtin:
* avoid unnecessary fork
* allow executing builtins via command
* executing a special builtin via command removes its special properties

Obtained from: NetBSD (parts)

14 years agoSwitch to our preferred license text.
joel [Sat, 6 Mar 2010 05:57:24 +0000 (05:57 +0000)]
Switch to our preferred license text.

Approved by: imp

14 years agoCheck for device faults and for failures to set DRQ when expected, rather
jmallett [Sat, 6 Mar 2010 05:49:15 +0000 (05:49 +0000)]
Check for device faults and for failures to set DRQ when expected, rather
than spinning forever.  This fixes booting with CF ejected.

NB: I've made the driver pretty chatty about errors in case there's hardware
    that operates differently to mine, so we can easily track down any issues.

Reviewed by: imp
Sponsored by: Packet Forensics

14 years agoo) Consistently use MIPS_KSEGn_TO_PHYS instead of MIPS_{,UN}CACHED_TO_PHYS etc.
jmallett [Sat, 6 Mar 2010 05:45:49 +0000 (05:45 +0000)]
o) Consistently use MIPS_KSEGn_TO_PHYS instead of MIPS_{,UN}CACHED_TO_PHYS etc.
   Get rid of the macros that spell KSEG0 CACHED and KSEG1 UNCACHED.
o) Get rid of some nearby duplicated and unused macros.

Reviewed by: imp

14 years agoBug fixed:
fabient [Fri, 5 Mar 2010 23:08:19 +0000 (23:08 +0000)]
Bug fixed:
- no display on serial terminal in top mode.
- display alignment for continuation string.
- correct invalid value used for display limit.

MFC after: 3 days

14 years agoHarmonize Octeon ldscripts, reducing gratuitous diffs and using KERNLOADADDR in
jmallett [Fri, 5 Mar 2010 23:03:20 +0000 (23:03 +0000)]
Harmonize Octeon ldscripts, reducing gratuitous diffs and using KERNLOADADDR in
all of them to set the load address.

Set svn:keywords.

Sponsored by: Packet Forensics

14 years agoo) Simplify the implementation of bus read/write functions, and eliminate some
jmallett [Fri, 5 Mar 2010 22:48:34 +0000 (22:48 +0000)]
o) Simplify the implementation of bus read/write functions, and eliminate some
   redundant implementations.
o) Use ABI, not ISA, to determine address length.
o) Disable and restore interrupts around any operation that uses all 64 bits of
   a register.  In kernels using the O32 ABI, the upper 32 bits of those
   registers is likely to be corrupted by an interrupt.

Sponsored by: Packet Forensics

14 years agoProperly detect a type of real board that claims to have a 0.0 revision.
jmallett [Fri, 5 Mar 2010 22:46:11 +0000 (22:46 +0000)]
Properly detect a type of real board that claims to have a 0.0 revision.
This fixes at least memory detection on that board.

Sponsored by: Packet Forensics

14 years agoDo not mask off the low byte of the chipid, it makes some of the case
jmallett [Fri, 5 Mar 2010 22:44:49 +0000 (22:44 +0000)]
Do not mask off the low byte of the chipid, it makes some of the case
statements unreachable and seems to be wrong.  Fixes detection of the number
of ports available on some models.

Sponsored by: Packet Forensics

14 years agoMerge ACPICA 20100304.
jkim [Fri, 5 Mar 2010 21:39:16 +0000 (21:39 +0000)]
Merge ACPICA 20100304.

14 years agoTweak the linker spec a smidge.
imp [Fri, 5 Mar 2010 21:25:20 +0000 (21:25 +0000)]
Tweak the linker spec a smidge.
Correct a typo.

14 years agoMake little endian compiles produce little endian binaries on mips.
imp [Fri, 5 Mar 2010 21:24:41 +0000 (21:24 +0000)]
Make little endian compiles produce little endian binaries on mips.

Submitted by: neel@

14 years agoImport ACPICA 20100304.
jkim [Fri, 5 Mar 2010 19:58:45 +0000 (19:58 +0000)]
Import ACPICA 20100304.

14 years agoRemove stale path reference.
raj [Fri, 5 Mar 2010 19:51:02 +0000 (19:51 +0000)]
Remove stale path reference.

14 years agoProvide correct TCLK value for Kirkwood A1 silicon revision.
raj [Fri, 5 Mar 2010 19:45:45 +0000 (19:45 +0000)]
Provide correct TCLK value for Kirkwood A1 silicon revision.

While there improve SOC ID output accordingly.

Obtained from: Semihalf
MFC after: 1 week

14 years agoplug a memory leak on pipe's reconfiguration
luigi [Fri, 5 Mar 2010 17:53:28 +0000 (17:53 +0000)]
plug a memory leak on pipe's reconfiguration

14 years agoAdd support for o32 (when it isn't the default), n32, n64, and o64 to
imp [Fri, 5 Mar 2010 16:56:08 +0000 (16:56 +0000)]
Add support for o32 (when it isn't the default), n32, n64, and o64 to
the linker spec.  Provide the ability to have a default ABI that's
different than o32 (again, for all 4).

Submitted by: C. Jayachandran (JC) with tweaks for o64/o32 by me

14 years ago- Use errx(3) instead of err(3) when checking if snprintf(3) succeeded.
jh [Fri, 5 Mar 2010 15:23:01 +0000 (15:23 +0000)]
- Use errx(3) instead of err(3) when checking if snprintf(3) succeeded.
  snprintf(3) doesn't set errno in the tested cases.
- If the same argument reference (for example %1) was specified more than
  once, the command didn't necessarily fit to the final command buffer. Fix
  this using a dynamic sbuf buffer. Add a few regression tests for the case.

PR: bin/95079
No objections: freebsd-hackers

14 years agoRedirect stdin from /dev/null when starting a jail:
netchild [Fri, 5 Mar 2010 14:34:33 +0000 (14:34 +0000)]
Redirect stdin from /dev/null when starting a jail:
  At least in RELENG_7 this fixes some start problems for some programs
  from the ports. It is also more correct, as a jail shall not expect
  input (interactivity) from the jail-host.

Revert the current behavior of starting jails in the background and
make it optional only for the start of jails (jail_parallell_start=YES
in rc.conf):
 - The stop can not be done in the background, the system needs to wait
   until everything is stopped correctly before it can reboot or power
   down.
 - The start should not be done in parallel by default, this not only
   breaks POLA for people comming from RELENG_x, it may also break a
   dependency chain with other scripts in the jail-host, which need to
   do some stuff after the jails are up and running (e.g. hardlinking
   a mysql socket from one jail into another one).

Discussed on: freebsd-jails@

14 years agomore documentation on new dummynet features.
luigi [Fri, 5 Mar 2010 14:13:58 +0000 (14:13 +0000)]
more documentation on new dummynet features.

14 years agoUse default WARNS setting (of 6) for lib/csu.
uqs [Fri, 5 Mar 2010 13:29:05 +0000 (13:29 +0000)]
Use default WARNS setting (of 6) for lib/csu.

PR: bin/140089
Reviewed by: jmallett
Approved by: ed (co-mentor)

14 years agoProperly declare non-extern functions in crt1
uqs [Fri, 5 Mar 2010 13:28:05 +0000 (13:28 +0000)]
Properly declare non-extern functions in crt1

Also move the declarations after __progname consistently to
make the distinction clearer.

Reviewed by: jmallett
Approved by: ed (co-mentor)

14 years agoUpdate the list of the process flags. Note that the lists of pending
kib [Fri, 5 Mar 2010 13:13:35 +0000 (13:13 +0000)]
Update the list of the process flags. Note that the lists of pending
signals for process and its threads are distinct.

Reviewed by: jilles
MFC after: 2 weeks

14 years agofix a memory leak when deleting RED queues
luigi [Fri, 5 Mar 2010 12:58:19 +0000 (12:58 +0000)]
fix a memory leak when deleting RED queues

14 years agoMFx86: the part of r204641
nyan [Fri, 5 Mar 2010 11:11:42 +0000 (11:11 +0000)]
MFx86: the part of r204641

  In order to do that cleanly, lapic_setup_clock(), on both ia32 and amd64,
  now accepts as arguments the desired sources to handle, and returns the
  actual ones (LAPIC_CLOCK_NONE is forbidden because otherwise there is no
  meaning in calling such function).
  This allows to bring out into commont x86 code the handling part for
  machdep.lapic_allclocks tunable, which is retained.

14 years agoDon't spam dmesg with "registered firmware ..." when module is compiled
sobomax [Fri, 5 Mar 2010 03:37:42 +0000 (03:37 +0000)]
Don't spam dmesg with "registered firmware ..." when module is compiled
into kernel, unless there is a verbose boot flag set.  There is no real
need to have this information printed.

MFC after: 1 week

14 years agoUse our preferred license text (no more "voices in his head"). While here,
joel [Thu, 4 Mar 2010 22:06:57 +0000 (22:06 +0000)]
Use our preferred license text (no more "voices in his head").  While here,
also move to a 2-clause license.  From n_hibma@:

  "The 3rd clause was originally there for a reason, but I guess that it is
  safe to assume that no one can assume endorsement by me or anyone else
  without prior consent on anything really, so we might as well remove that
  clause."

Approved by: n_hibma

14 years agoRemove stale references to libkrb5.
imp [Thu, 4 Mar 2010 22:01:11 +0000 (22:01 +0000)]
Remove stale references to libkrb5.
Rejigger the SUBDIR setting a smidge: we now set all the libraries that depend
on something else, and then SUBDIR+= the rest.

A separate commit will fix the SUBDIR style to be the same as the rest
of the tree.

14 years agoput calls to gzclose() under ifdef COMPRESS_USER_CORES to prevent
alfred [Thu, 4 Mar 2010 21:53:45 +0000 (21:53 +0000)]
put calls to gzclose() under ifdef COMPRESS_USER_CORES to prevent
undefined symbols on kernels without this option.

Reported by: Alexander Best

14 years agoportability fixes
luigi [Thu, 4 Mar 2010 21:52:40 +0000 (21:52 +0000)]
portability fixes

14 years agodon't use keywords as variable names.
luigi [Thu, 4 Mar 2010 21:01:59 +0000 (21:01 +0000)]
don't use keywords as variable names.

14 years agomoused is useful even without usb, so remove comment asking if it is.
imp [Thu, 4 Mar 2010 20:31:49 +0000 (20:31 +0000)]
moused is useful even without usb, so remove comment asking if it is.

14 years agoUse our standard license text. No more voices in the authors head. :-)
joel [Thu, 4 Mar 2010 19:38:24 +0000 (19:38 +0000)]
Use our standard license text.  No more voices in the authors head. :-)

Approved by: trasz

14 years agoFix an obvious lock escape and fix a typo in a comment.
nwhitehorn [Thu, 4 Mar 2010 17:24:31 +0000 (17:24 +0000)]
Fix an obvious lock escape and fix a typo in a comment.

14 years agomake the listing of queues/pipes/schedulers handle the case of
luigi [Thu, 4 Mar 2010 16:56:36 +0000 (16:56 +0000)]
make the listing of queues/pipes/schedulers handle the case of
data size increasing while we fetch the info.

14 years agofix handling of sets
luigi [Thu, 4 Mar 2010 16:55:32 +0000 (16:55 +0000)]
fix handling of sets

14 years agoreduce diffs with the cross-platform version (windows needs
luigi [Thu, 4 Mar 2010 16:54:56 +0000 (16:54 +0000)]
reduce diffs with the cross-platform version (windows needs
some extra initialization)

14 years agouse callout_drain() (outside the lock) when unloading the module.
luigi [Thu, 4 Mar 2010 16:53:38 +0000 (16:53 +0000)]
use callout_drain() (outside the lock) when unloading the module.
This prevents a potential deadlock.

Submitted by: Francesco Magno

14 years agoimprove compatibility with RELENG_7.2
luigi [Thu, 4 Mar 2010 16:52:26 +0000 (16:52 +0000)]
improve compatibility with RELENG_7.2

14 years agoremove stale comment
luigi [Thu, 4 Mar 2010 16:08:51 +0000 (16:08 +0000)]
remove stale comment

14 years agoed(1): make WARNS=6 clean
uqs [Thu, 4 Mar 2010 16:08:01 +0000 (16:08 +0000)]
ed(1): make WARNS=6 clean

Although argc and argv are never read after the longjmp is complete,
gcc is not clever enough to see that and needlessly warns about it.
So add volatile to silence the compiler.

Approved by: ed (the co-mentor, not ed(1))

14 years agomount_nwfs(8): make WARNS=6 clean
uqs [Thu, 4 Mar 2010 16:07:14 +0000 (16:07 +0000)]
mount_nwfs(8): make WARNS=6 clean

uid_t and gid_t are unsigned. While initializing them to -1 and later
checking against -1 to see if they are still at their default usually
works, introduce two new flags and stop the inband signalling.

Approved by: ed (co-mentor)

14 years agoLet the afterinstall target ignore failures from running chflags. This
scottl [Thu, 4 Mar 2010 12:35:20 +0000 (12:35 +0000)]
Let the afterinstall target ignore failures from running chflags.  This
allows it to work over NFS, and puts it back into conformance with other
'schg' utlitilties in the system.

Reviewed by: ed

14 years agoRemove no-op of WARNS?=
edwin [Thu, 4 Mar 2010 12:18:24 +0000 (12:18 +0000)]
Remove no-op of WARNS?=

Submitted by: Ulrich Sp??rlein <uqs@spoerlein.net>

14 years agoAdd links to cam(4).
mav [Thu, 4 Mar 2010 11:09:49 +0000 (11:09 +0000)]
Add links to cam(4).

14 years agoReflect added CAM ATA support.
mav [Thu, 4 Mar 2010 10:59:21 +0000 (10:59 +0000)]
Reflect added CAM ATA support.

14 years ago- Implement -3 option (show previous, this and next month) option.
edwin [Thu, 4 Mar 2010 07:04:27 +0000 (07:04 +0000)]
- Implement -3 option (show previous, this and next month) option.
- Add -A option (months after this month).
- Add -B option (months before this month).
- Fix highlighting of today in year overview.
- Fix aligning of "foreign" characters.

MFC after: 2 weeks

14 years agoPatch some more concurrency issues here. This expands the page table
nwhitehorn [Thu, 4 Mar 2010 06:39:58 +0000 (06:39 +0000)]
Patch some more concurrency issues here. This expands the page table
lock to cover the PVOs, and removes the scratchpage PTEs from the PVOs
entirely to avoid the system trying to be helpful and rewriting them.

14 years agoRework smu(4) to be asynchronous. It turns out that the combination of
nwhitehorn [Thu, 4 Mar 2010 06:36:00 +0000 (06:36 +0000)]
Rework smu(4) to be asynchronous. It turns out that the combination of
the automatic fan management and the polling in smu_run_cmd() was
putting my system interrupt load at 20%. This change reduces that to
0.4%.

14 years agoEnable the use of nanosleep() instead of using pause() and signals.
gshapiro [Thu, 4 Mar 2010 05:53:06 +0000 (05:53 +0000)]
Enable the use of nanosleep() instead of using pause() and signals.
This Makefile change can be removed when the next version of sendmail
is imported as it will have this built in to the FreeBSD conf.h section.

Submitted by: John Marshall
MFC after: 3 days

14 years agoRemove some unused cruft.
neel [Thu, 4 Mar 2010 05:37:19 +0000 (05:37 +0000)]
Remove some unused cruft.

14 years agoAdd support for CPUs with cache coherent DMA. The two main changes are:
neel [Thu, 4 Mar 2010 05:23:08 +0000 (05:23 +0000)]
Add support for CPUs with cache coherent DMA. The two main changes are:

- We don't need to fall back to uncacheable memory to satisfy BUS_DMA_COHERENT
  requests on these CPUs.

- The bus_dmamap_sync() is a no-op for these CPUs.

A side-effect of this change is rename DMAMAP_COHERENT flag to
DMAMAP_UNCACHEABLE. This conveys the purpose of the flag more accurately.

Reviewed by: gonzo, imp

14 years agoUpdated rtld for n32 support.
imp [Thu, 4 Mar 2010 04:53:05 +0000 (04:53 +0000)]
Updated rtld for n32 support.

Submitted by: jmallet@
Obtained from: NetBSD

14 years agoMake the n32 scripts actually generate, ummm, n32 binaries... <blush>
imp [Thu, 4 Mar 2010 04:30:16 +0000 (04:30 +0000)]
Make the n32 scripts actually generate, ummm, n32 binaries... <blush>

Submitted by: jmallet

14 years agoMake 'make manlint' happy. No actual visible change.
delphij [Wed, 3 Mar 2010 23:11:14 +0000 (23:11 +0000)]
Make 'make manlint' happy.  No actual visible change.

14 years agoWhen returning error from msdosfs_lookup(), make sure that *vpp is NULL.
kib [Wed, 3 Mar 2010 21:59:45 +0000 (21:59 +0000)]
When returning error from msdosfs_lookup(), make sure that *vpp is NULL.
lookup() KASSERTs this condition.

Reported and tested by: pho
MFC after: 3 weeks

14 years agoUse ABI neutral macrosa
imp [Wed, 3 Mar 2010 21:59:23 +0000 (21:59 +0000)]
Use ABI neutral macrosa

Submitted by: jmallet

14 years ago__main and __gccmain are no longer required, so eliminate them.
imp [Wed, 3 Mar 2010 21:54:49 +0000 (21:54 +0000)]
__main and __gccmain are no longer required, so eliminate them.

Submitted by: jmallet@

14 years agoCast these to intmax_t before printing to fix build bustage. Better
imp [Wed, 3 Mar 2010 21:53:25 +0000 (21:53 +0000)]
Cast these to intmax_t before printing to fix build bustage.  Better
solutions welcome.

14 years agosched_getparam was just plain broke for time-share
rrs [Wed, 3 Mar 2010 21:46:51 +0000 (21:46 +0000)]
sched_getparam was just plain broke for time-share
processes. It did not return an error but instead
just let garbage be passed back. This I fix so
it actually properly translates the priority the
process is at to a posix's high means more priority.
I also fix it so that if the ULE scheduler has bumped
it up to a realtime process you get back a sane value
i.e. the highest priority (63 for time-share).

sched_setscheduler() had the setting of the
timeshare class priority disabled. With some notes
about rejecting the posix high numbers is greater
priority and use nice instead. This fix also
adjusts that to work, with the cavet that a t-s
process may well get bumped up or down i.e. the
setscheduler() will NOT change the nice value only
the current priority. I think this is reasonable
considering if the user wants to play with nice then
he can. At least all the posix'ish interfaces now
respond sanely.

MFC after: 3 weeks

14 years agoAdds bwn(4) to NOTES.
weongyo [Wed, 3 Mar 2010 21:40:44 +0000 (21:40 +0000)]
Adds bwn(4) to NOTES.

14 years agoLooks like S8 and SP are reversed in setjmp, so longjmp doesn't work
imp [Wed, 3 Mar 2010 21:28:55 +0000 (21:28 +0000)]
Looks like S8 and SP are reversed in setjmp, so longjmp doesn't work
as well as one would hope....

Submitted by: Arten Belevich

14 years ago- Make function of finding an available drive name a macro.
lulf [Wed, 3 Mar 2010 21:27:54 +0000 (21:27 +0000)]
- Make function of finding an available drive name a macro.
- Move check of /dev/ prefix and copy into a function to save code duplication.
  This also fixes a bug where the /dev/ prefix could not be used when creating
  volumes on the command line.

Tested by: Niclas Zeising <niclas.zeising - at - gmail.com>

14 years ago- Fix spelling.
lulf [Wed, 3 Mar 2010 21:22:53 +0000 (21:22 +0000)]
- Fix spelling.

Pointed out by: Pawel Worach <pawel.worach - at - gmail.com>, b. f. <bf1783 - at - googlemail.com>

14 years agoHook up the bwn driver.
weongyo [Wed, 3 Mar 2010 21:10:13 +0000 (21:10 +0000)]
Hook up the bwn driver.

Pointed by: nwhitehorn

14 years agoGive make kernel-toolchain a one-liner here. Although documented in
imp [Wed, 3 Mar 2010 21:08:44 +0000 (21:08 +0000)]
Give make kernel-toolchain a one-liner here.  Although documented in
build(7), many people look here for a quick reminder...

14 years agofixes an attached-at-boot issue that bwn(4) using device_identify
weongyo [Wed, 3 Mar 2010 20:06:09 +0000 (20:06 +0000)]
fixes an attached-at-boot issue that bwn(4) using device_identify
interface didn't be attached automatically at boot time so changes a
approach to attach children based on leveraging some newbus niceties.

Submitted by: nwhitehorn

14 years agoAdd a missing ar9285_reset.c file.
rpaulo [Wed, 3 Mar 2010 20:01:31 +0000 (20:01 +0000)]
Add a missing ar9285_reset.c file.

14 years agoAdd some more supported controllers.
mav [Wed, 3 Mar 2010 19:44:43 +0000 (19:44 +0000)]
Add some more supported controllers.
Crosslink with CAM ATA man pages.

14 years agoUse expand_number(3) from libutil instead of home-grown function to parse
sobomax [Wed, 3 Mar 2010 19:25:28 +0000 (19:25 +0000)]
Use expand_number(3) from libutil instead of home-grown function to parse
human-friendly power-of-two numbers (i.e. 2k, 5M etc).

Suggested by: many
MFC after: 1 week

14 years agoRemove C99 initializer, since dominant style is to use non-C99 initializers.
glebius [Wed, 3 Mar 2010 18:49:15 +0000 (18:49 +0000)]
Remove C99 initializer, since dominant style is to use non-C99 initializers.

Requested by: jhb

14 years agoRemove last traces of <utmp.h>.
ed [Wed, 3 Mar 2010 18:30:10 +0000 (18:30 +0000)]
Remove last traces of <utmp.h>.

14 years agoSeveral changes to fix livelock under high load, introduced by r203489:
mav [Wed, 3 Mar 2010 17:58:41 +0000 (17:58 +0000)]
Several changes to fix livelock under high load, introduced by r203489:
- change the way in which command queue overflow is handled;
- do not expose to CAM two command slots, used for driver's internal purposes;
- allow driver to use up to 1024 command slots, instead of 256 before.

14 years agoRemove programming LED register and enable 25MHz TX clock for
yongari [Wed, 3 Mar 2010 17:56:52 +0000 (17:56 +0000)]
Remove programming LED register and enable 25MHz TX clock for
88E1149 PHY. This will fix intermittent watchdog timeouts as well
as very slow network performance on 88E8072 Yukon Extreme.

PR: kern/144148
MFC after: 1 week

14 years agoThe NetBSD Foundation has granted permission to remove clause 3 and 4 from
joel [Wed, 3 Mar 2010 17:55:51 +0000 (17:55 +0000)]
The NetBSD Foundation has granted permission to remove clause 3 and 4 from
the software.

Obtained from: NetBSD

14 years agoIntroduce ath_hal_setInterrupts(), a macro for ah_setInterrupts().
rpaulo [Wed, 3 Mar 2010 17:42:39 +0000 (17:42 +0000)]
Introduce ath_hal_setInterrupts(), a macro for ah_setInterrupts().

Pointed out by: sam

14 years agoReplace Id keyword with FreeBSD keyword and set the svn props correctly.
rpaulo [Wed, 3 Mar 2010 17:32:32 +0000 (17:32 +0000)]
Replace Id keyword with FreeBSD keyword and set the svn props correctly.
No functional change.

14 years agoImproving the clocks auto-tunning by firstly checking if the atrtc may be
attilio [Wed, 3 Mar 2010 17:13:29 +0000 (17:13 +0000)]
Improving the clocks auto-tunning by firstly checking if the atrtc may be
correctly initialized and just then assign to softclock/profclock.
Right now, some atrtc seems reporting strange diagnostic error* making the
current pattern bogus.

In order to do that cleanly, lapic_setup_clock(), on both ia32 and amd64,
now accepts as arguments the desired sources to handle, and returns the
actual ones (LAPIC_CLOCK_NONE is forbidden because otherwise there is no
meaning in calling such function).
This allows to bring out into commont x86 code the handling part for
machdep.lapic_allclocks tunable, which is retained.

Sponsored by: Sandvine Incorporated
Tested by: yongari, Richard Todd
<rmtodd at ichotolot dot servalan dot com>
MFC: 3 weeks
X-MFC: r202387, 204309

14 years agoThe NetBSD Foundation has granted permission to remove clause 3 and 4 from
joel [Wed, 3 Mar 2010 17:07:02 +0000 (17:07 +0000)]
The NetBSD Foundation has granted permission to remove clause 3 and 4 from
their software.

Obtained from: NetBSD

14 years ago- Include CURDIR in case the makefile is not run from the same directory.
lulf [Wed, 3 Mar 2010 16:45:58 +0000 (16:45 +0000)]
- Include CURDIR in case the makefile is not run from the same directory.

14 years agoAllow lseek(SEEK_END) to work on disk devices by using the DIOCGMEDIASIZE
jhb [Wed, 3 Mar 2010 16:18:04 +0000 (16:18 +0000)]
Allow lseek(SEEK_END) to work on disk devices by using the DIOCGMEDIASIZE
to determine the media size.

Submitted by: nox
MFC after: 1 week

14 years agoIn reallocf(3), free the memory only when size != 0. Otherwise, when the
jh [Wed, 3 Mar 2010 15:43:26 +0000 (15:43 +0000)]
In reallocf(3), free the memory only when size != 0. Otherwise, when the
System V compatibility option (malloc "V" flag) is in effect a zero sized
reallocf() could cause a double free.

PR: bin/141753
Submitted by: Dan Lukes

14 years agoAdd support for hwpmc(4) on the MIPS 24K, 32 bit, embedded processor.
gnn [Wed, 3 Mar 2010 15:05:58 +0000 (15:05 +0000)]
Add support for hwpmc(4) on the MIPS 24K, 32 bit, embedded processor.

Add macros for properly accessing coprocessor 0 registers that
support performance counters.

Reviewed by: jkoshy rpaulo fabien imp
MFC after: 1 month

14 years agoMake the comment follow style(9) format.
ivoras [Wed, 3 Mar 2010 13:29:39 +0000 (13:29 +0000)]
Make the comment follow style(9) format.

Spotted by: jhb

14 years agoThe NetBSD Foundation has granted permission to remove clause 3 and 4 from
joel [Wed, 3 Mar 2010 10:18:03 +0000 (10:18 +0000)]
The NetBSD Foundation has granted permission to remove clause 3 and 4 from
their software.

Obtained from: NetBSD

14 years ago- Remove unused include path.
lulf [Wed, 3 Mar 2010 08:24:15 +0000 (08:24 +0000)]
- Remove unused include path.

14 years ago- Revert Makefile to revision r203368, as the svn mv from contrib/csup replaced
lulf [Wed, 3 Mar 2010 08:23:19 +0000 (08:23 +0000)]
- Revert Makefile to revision r203368, as the svn mv from contrib/csup replaced
  the Makefile with a broken version.

14 years agoThe NetBSD Foundation has granted permission to remove clause 3 and 4 from
joel [Wed, 3 Mar 2010 07:38:12 +0000 (07:38 +0000)]
The NetBSD Foundation has granted permission to remove clause 3 and 4 from
their software.

Obtained from: NetBSD

14 years agoUpgrade to version 9.6.2. This version includes all previously released
dougb [Wed, 3 Mar 2010 05:45:24 +0000 (05:45 +0000)]
Upgrade to version 9.6.2. This version includes all previously released
security patches to the 9.6.1 version, as well as many other bug fixes.

This version also incorporates a different fix for the problem we had
patched in contrib/bind9/bin/dig/dighost.c, so that file is now back
to being the same as the vendor version.

Due to the fact that the DNSSEC algorithm that will be used to sign the
root zone is only included in this version and in 9.7.x those who wish
to do validation MUST upgrade to one of these prior to July 2010.