]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoadd makefs to the base system; FreeBSD_version bumped just in case
Sam Leffler [Fri, 19 Dec 2008 23:10:55 +0000 (23:10 +0000)]
add makefs to the base system; FreeBSD_version bumped just in case

Reviewed by: imp

15 years agoMerge nc(1) from OpenBSD 4.4. While there, rename our '-O' (no
Xin LI [Fri, 19 Dec 2008 23:00:23 +0000 (23:00 +0000)]
Merge nc(1) from OpenBSD 4.4.  While there, rename our '-O' (no
tcp options) to '--no-tcpopt' in order to resolve a comflicit
with OpenBSD's -O semantics.

15 years agofix pathnames to work w/ buildworld
Sam Leffler [Fri, 19 Dec 2008 22:59:05 +0000 (22:59 +0000)]
fix pathnames to work w/ buildworld

15 years agofix 64-bit build
Sam Leffler [Fri, 19 Dec 2008 22:58:39 +0000 (22:58 +0000)]
fix 64-bit build

15 years agoburncd(8) doesn't handle signals and interrupting burncd during operation.
David E. O'Brien [Fri, 19 Dec 2008 20:20:14 +0000 (20:20 +0000)]
burncd(8) doesn't handle signals and interrupting burncd during operation.
For example, ^C (SIGINT) may leave the drive spinning and locked.
This may also happen if you try to write a too-large image to a disc
and burncd(8) exits with an I/O error.

Add signal handling by doing a CDRIOCFLUSH ioctl to attempt to leave
burner in a sane state when burning is interrupted with SIGHUP, SIGINT,
SIGTERM, or in case an I/O error occurs during write.
Note, that blanking will still continue after interrupt but it seems to
finish correctly even after burncd(8) has quit.

Also, while I'm here bump WARNS to "6".

PR: 48730
Submitted by: Jaakko Heinonen <jh@saunalahti.fi>

15 years agoimport netbsd makefs tool
Sam Leffler [Fri, 19 Dec 2008 18:47:46 +0000 (18:47 +0000)]
import netbsd makefs tool

15 years agoadd properties and FreeBSD id's
Sam Leffler [Fri, 19 Dec 2008 18:45:43 +0000 (18:45 +0000)]
add properties and FreeBSD id's

15 years agoadd FreeBSD property
Sam Leffler [Fri, 19 Dec 2008 18:34:40 +0000 (18:34 +0000)]
add FreeBSD property

15 years agoCorrect 5212 ani support so that max noise immunity, spur immunity, and
Sam Leffler [Fri, 19 Dec 2008 18:33:53 +0000 (18:33 +0000)]
Correct 5212 ani support so that max noise immunity, spur immunity, and
step levels are used.

Noticed by: Jiri Fojtasek <jiri.fojtasek@hlohovec.net>
Reviewed by: rpaulo

15 years agoConstify 'name' field in struct funix. This commit makes syslogd(8)
Xin LI [Fri, 19 Dec 2008 18:27:51 +0000 (18:27 +0000)]
Constify 'name' field in struct funix.  This commit makes syslogd(8)
WARNS?=6 on amd64 but I have not tested under universe so keep WARNS?=
level as-is for now.

15 years agoFix a typo.
Wesley Shields [Fri, 19 Dec 2008 16:56:49 +0000 (16:56 +0000)]
Fix a typo.

Approved by: rwatson

15 years agoFurther beautify the lock strings to be more pleasing to the eye and
Ivan Voras [Fri, 19 Dec 2008 14:49:14 +0000 (14:49 +0000)]
Further beautify the lock strings to be more pleasing to the eye and
self documenting within 6 characters.

Reviewed by: ed (older version)
Approved by: gnn (older version)

15 years agoFix cam_sim_free() wakeup condition and add mtx_asserts.
Edward Tomasz Napierala [Fri, 19 Dec 2008 14:33:29 +0000 (14:33 +0000)]
Fix cam_sim_free() wakeup condition and add mtx_asserts.

Submitted by: Christoph Mallon
Reviewed by: scottl
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation

15 years agoPeriph driver fixes, second try.
Edward Tomasz Napierala [Fri, 19 Dec 2008 14:31:40 +0000 (14:31 +0000)]
Periph driver fixes, second try.

Reviewed by: scottl
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation

15 years agoMove mtx_assert lower, when we can be sure that the pointer
Edward Tomasz Napierala [Fri, 19 Dec 2008 14:27:10 +0000 (14:27 +0000)]
Move mtx_assert lower, when we can be sure that the pointer
to the mutex is valid.

Reviewed by: scottl
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation

15 years agoThe proxy-arp code was broken and responds to ARP
Qing Li [Fri, 19 Dec 2008 11:07:34 +0000 (11:07 +0000)]
The proxy-arp code was broken and responds to ARP
requests for addresses that are not proxied locally.

15 years agoUpdate elf_common.h with new EM_ types found in the latest ELF gABI.
Kai Wang [Fri, 19 Dec 2008 09:32:31 +0000 (09:32 +0000)]
Update elf_common.h with new EM_ types found in the latest ELF gABI.

This commit is slightly different from the original patch in the PR:
1. EM_ALPHA keeps the old value for compatibility reason.
2. Non-standard SHT_NUM is not added.
3. Style.

PR:     kern/118540
Submitted by: "Pedro F. Giffuni" <giffunip[at]tutopia.com>

15 years agoDo not segfault when procstat -f or procstat -v is called on a process not
Joe Marcus Clarke [Fri, 19 Dec 2008 06:50:15 +0000 (06:50 +0000)]
Do not segfault when procstat -f or procstat -v is called on a process not
owned by the current user.  If kinfo_getfile() or kinfo_getvmmap() return
NULL, simply exit, and do not try and derefernce the memory.

Reviewed by: peter
Approved by: peter

15 years agoInitialize the cntp pointer to 0 prior to doing any work so that callers
Joe Marcus Clarke [Fri, 19 Dec 2008 06:47:59 +0000 (06:47 +0000)]
Initialize the cntp pointer to 0 prior to doing any work so that callers
don't try to iterate through garbage or NULL memory.  Additionally, return
NULL instead of 0 on error.

Reviewed by: peter
Approved by: peter

15 years agoThe ppp application relies on the if_tun interface to properly
Qing Li [Fri, 19 Dec 2008 01:37:20 +0000 (01:37 +0000)]
The ppp application relies on the if_tun interface to properly
install a p2p host route between the end points. The ppp module
upates this router based on user configuration later on. The
rt_Update() seems to always set the RTF_GATEWAY flag, which is
broken.

15 years agoconvert MALLOC/FREE to malloc/free
Sam Leffler [Thu, 18 Dec 2008 23:00:09 +0000 (23:00 +0000)]
convert MALLOC/FREE to malloc/free

15 years agoAdd ULI M5461 chipset and vendor ID.
Alexander Motin [Thu, 18 Dec 2008 22:04:13 +0000 (22:04 +0000)]
Add ULI M5461 chipset and vendor ID.

15 years agoGarbage collect entries from pcireg.h since we now include it.
Robert Noland [Thu, 18 Dec 2008 22:01:46 +0000 (22:01 +0000)]
Garbage collect entries from pcireg.h since we now include it.

Approved by: kib@
MFC after: 2 weeks

15 years agoWe only want drm to ever attach to the primary pci device.
Robert Noland [Thu, 18 Dec 2008 21:58:57 +0000 (21:58 +0000)]
We only want drm to ever attach to the primary pci device.
Intel 855 chips present the same pci id for both heads.  This prevents
us from attaching to the dummy second head.  All other chips that I
am aware of either only present a single pci id, or different ids
for each head so that we only match on the correct head.

Approved by: kib@
MFC after: 2 weeks

15 years agoUpdate the ipfw man page to reflect last change (-q option with nat option).
Paolo Pisati [Thu, 18 Dec 2008 21:46:18 +0000 (21:46 +0000)]
Update the ipfw man page to reflect last change (-q option with nat option).

MFC after: 3 days

15 years agoHonor the quiet (-q) option while adding a nat rule.
Paolo Pisati [Thu, 18 Dec 2008 21:37:31 +0000 (21:37 +0000)]
Honor the quiet (-q) option while adding a nat rule.

Submitted by: Andrey V. Elsukov<bu7cher@yandex.ru>
MFC after: 3 days

15 years agoBefore modularization commit, atapci driver was attaching only to devices of
Alexander Motin [Thu, 18 Dec 2008 21:13:46 +0000 (21:13 +0000)]
Before modularization commit, atapci driver was attaching only to devices of
storage class. This check was lost. It is not important for the most cases,
but as it was reported on current@, it does important for sis driver and
surely inportant for AHCI driver. So restore it there.

Submitted by:   Toshikazu ICHINOSEKI, Andrey V. Elsukov
Discussed on:   current@

15 years agorework drm_scatter.c which allocates scatter / gather pages for use by
Robert Noland [Thu, 18 Dec 2008 21:04:50 +0000 (21:04 +0000)]
rework drm_scatter.c which allocates scatter / gather pages for use by
ati pci gart to use bus_dma to handle the allocations.  This fixes
a garbled screen issue on at least some radeons (X1400 tested).  It is
also likely that this is the correct fix for PR# 119324, though that
is not confirmed yet.

Reviewed by: jhb@ (mentor, prior version)
Approved by: kib@
MFC after: 2 weeks

15 years agoFix last commit, ttydisc_rint_bypass returns the total, not remainder.
Andrew Thompson [Thu, 18 Dec 2008 19:15:25 +0000 (19:15 +0000)]
Fix last commit, ttydisc_rint_bypass returns the total, not remainder.

15 years agoOnly unlock the llentry if it is actually valid.
Bjoern A. Zeeb [Thu, 18 Dec 2008 19:09:14 +0000 (19:09 +0000)]
Only unlock the llentry if it is actually valid.

Reported by: ed

15 years agoAttempt to handoff the entire buffer with ttydisc_rint_bypass() before banging
Andrew Thompson [Thu, 18 Dec 2008 19:08:19 +0000 (19:08 +0000)]
Attempt to handoff the entire buffer with ttydisc_rint_bypass() before banging
each char separately.

15 years agoBe a little bit more pestimistic in argument handling - check if we've
David E. O'Brien [Thu, 18 Dec 2008 18:44:46 +0000 (18:44 +0000)]
Be a little bit more pestimistic in argument handling - check if we've
overflown our internal buffer (though after the fact), and s/strncpy/strlcpy/

Reviewed by: rodrigc
Obtained from: Juniper Networks

15 years ago- Failing to register as interrupt controller during attach shouldn't
Marius Strobl [Thu, 18 Dec 2008 18:29:15 +0000 (18:29 +0000)]
- Failing to register as interrupt controller during attach shouldn't
  be fatal so just inform about this instead of panicing.
- Ensure we use the right softc in case the interrupt of a child is
  is routed to the companion PBM instead. This hasn't been seen in the
  wild so far but given that it's the case for the Schizo interrupts,
  handling this situation also for child interrupts as a precaution
  seemed a good idea.
- Deal with broken firmware versions which miss child entries in the
  ino-bitmap as seen on V880 by belatedly registering as interrupt
  controller in schizo_setup_intr(). [1]
- Add missing '\n' when printing the warning regarding Schizo Errata
  I-13.

Reported and tested by: Beat Gaetzi [1]

15 years agoMinor spelling fix in E500 locore.
Rafal Jaworowski [Thu, 18 Dec 2008 18:28:03 +0000 (18:28 +0000)]
Minor spelling fix in E500 locore.

15 years agoExtend and improve MPC85XX Local Bus management.
Rafal Jaworowski [Thu, 18 Dec 2008 18:27:12 +0000 (18:27 +0000)]
Extend and improve MPC85XX Local Bus management.

- Make LBC resources management self-contained: introduce explicit LBC
  resources definition (much like the OCP), provide dedicated rman for LB mem
  space.

- Full configuration of an LB chip select device: program LAW and BR/OR, map
  into KVA, handle all LB attributes (bus width, machine select, ecc,
  write protect etc).

- Factor out LAW manipulation routines into shared code, adjust OCP area
  accordingly.

- Other LBC fixes and clean-ups.

Obtained from: Semihalf

15 years agoRemoved a comment made obsolete by revisions 157927 and 174292.
Ruslan Ermilov [Thu, 18 Dec 2008 15:56:12 +0000 (15:56 +0000)]
Removed a comment made obsolete by revisions 157927 and 174292.

15 years agoBy popular request, stringify kern.vm_guest sysctl. Now it returns a
Ivan Voras [Thu, 18 Dec 2008 15:34:38 +0000 (15:34 +0000)]
By popular request, stringify kern.vm_guest sysctl. Now it returns a
short, self-documenting string describing the detected virtual
environment.

Approved by: gnn (mentor) (earlier version)

15 years agoRemove spaces in wait object names to make top (1) output prettier and
Ivan Voras [Thu, 18 Dec 2008 15:25:33 +0000 (15:25 +0000)]
Remove spaces in wait object names to make top (1) output prettier and
unbreak scripts that examine ps (1) output.

Reviewed by: ed
Approved by: gnn (mentor)

15 years agoAdd new tool tionxcl to bring ttys out of exclusive mode when
Bruce M Simpson [Thu, 18 Dec 2008 15:12:04 +0000 (15:12 +0000)]
Add new tool tionxcl to bring ttys out of exclusive mode when
left by e.g. legacy uucp or tip.

15 years agoCheck in the actual module recognition code for the Chelsio
George V. Neville-Neil [Thu, 18 Dec 2008 14:21:35 +0000 (14:21 +0000)]
Check in the actual module recognition code for the Chelsio
driver.

Obtained from: Chelsio Inc.

15 years agoExit with error code 2 when run with -k (continue if errors) and build failed.
Max Khon [Thu, 18 Dec 2008 12:16:51 +0000 (12:16 +0000)]
Exit with error code 2 when run with -k (continue if errors) and build failed.

15 years agoDo not busy twice the mount point where a quota operation is performed.
Konstantin Belousov [Thu, 18 Dec 2008 12:01:53 +0000 (12:01 +0000)]
Do not busy twice the mount point where a quota operation is performed.

Tested by: pho
MFC after: 1 month

15 years agoThe quotactl, statfs and fstatfs syscall implementations may dereference
Konstantin Belousov [Thu, 18 Dec 2008 12:01:19 +0000 (12:01 +0000)]
The quotactl, statfs and fstatfs syscall implementations may dereference
NULL pointer to struct mount if the looked up vnode is reclaimed. Also,
these syscalls only mnt_ref() the mp, still allowing it to be unmounted;
only struct mount memory is kept from being reused.

Lock the vnode when doing name lookup, then reference its mount point,
unlock the vnode and vfs_busy the mountpoint. This sequence shall take
care of both races.

Reported and tested by: pho
Discussed with: attilio
MFC after: 1 month

15 years agoDo not return success and doomed vnode from lookup. LK_UPGRADE allows
Konstantin Belousov [Thu, 18 Dec 2008 11:58:12 +0000 (11:58 +0000)]
Do not return success and doomed vnode from lookup. LK_UPGRADE allows
the vnode to be reclaimed.

Tested by: pho
MFC after: 1 month

15 years agoif_rtdel is always called with the RADIX_NODE_HEAD lock held
Kip Macy [Thu, 18 Dec 2008 09:59:24 +0000 (09:59 +0000)]
if_rtdel is always called with the RADIX_NODE_HEAD lock held

15 years agoo Synchronize comment and example. Add missed comma.
Maxim Konovalov [Thu, 18 Dec 2008 06:38:11 +0000 (06:38 +0000)]
o Synchronize comment and example.  Add missed comma.

PR: misc/129699
Submitted by: Glen Barber [1]
MFC after: 2 weeks

15 years agoturn warnx into a debug msg
Sam Leffler [Thu, 18 Dec 2008 05:58:14 +0000 (05:58 +0000)]
turn warnx into a debug msg

15 years agoenable support for st_flags and st_gen
Sam Leffler [Thu, 18 Dec 2008 05:55:26 +0000 (05:55 +0000)]
enable support for st_flags and st_gen

15 years agoanother nbtool turd
Sam Leffler [Thu, 18 Dec 2008 05:54:54 +0000 (05:54 +0000)]
another nbtool turd

15 years agofix stuff i broke
Sam Leffler [Thu, 18 Dec 2008 05:41:51 +0000 (05:41 +0000)]
fix stuff i broke

15 years agoadd ifnet_byindex_locked to allow for use of IFNET_RLOCK
Kip Macy [Thu, 18 Dec 2008 04:50:44 +0000 (04:50 +0000)]
add ifnet_byindex_locked to allow for use of IFNET_RLOCK

15 years agoIf the filesystem size rounded up to a multiple of the block size
Sam Leffler [Thu, 18 Dec 2008 04:38:47 +0000 (04:38 +0000)]
If the filesystem size rounded up to a multiple of the block size
is larger than what a user specified then round down to get something
that works but wastes a little space.

This happens reliably for me when building filesystems for CF parts
>1G; not sure why noone else is complaining.

15 years agounbreak cg_chkmagic_swap
Sam Leffler [Thu, 18 Dec 2008 04:36:44 +0000 (04:36 +0000)]
unbreak cg_chkmagic_swap

15 years agoFixing !INET6 builds after bumping WARNS to 3.
Tai-hwa Liang [Thu, 18 Dec 2008 04:03:29 +0000 (04:03 +0000)]
Fixing !INET6 builds after bumping WARNS to 3.

15 years agoIt seems that we don't need to reserve a TBD to set total TCP
Pyun YongHyeon [Thu, 18 Dec 2008 01:36:46 +0000 (01:36 +0000)]
It seems that we don't need to reserve a TBD to set total TCP
payload length in TSO case. Leaving unused TBD also seem to cause
SCB timeouts under certain conditions when TSO/non-TSO traffics
are active at the same time.

15 years agoApply the big hammer:
Sam Leffler [Thu, 18 Dec 2008 00:54:15 +0000 (00:54 +0000)]
Apply the big hammer:
o remove all of compat except for pwcache and strstuftoll; these might
  end up in libutil or similar so keep them in the subdir
o mv getid.c up to the top level; this looks like something that'll be
  makefs-specific
o eliminate private versions of .h files in sys; use system files instead
o eliminate private ffs_tables.c; use the system version directly (might
  want to adopt const'ification at some point but that's the only diff I
  can see)
o mv remaining code from sys to ffs and strip out unused bits; this now
  becomes part of makefs
o add compat defs and shims to makefs.h
o strip all vestiges of nbtool_config.h, compat_defs.h, etc.
o fixup includes after file shuffling
o rename system #defines that do implicit byte swapping to have an _swap
  suffix; e.g. DIRSIZ -> DIRSIZ_SWAP, cg_inosused -> cg_inosused_swap; if
  we ever add endian-agnostic support to the kernel these can go back to
  their original names
o strip some netbsd'isms that aren't worth shim'ing (e.g. _DIAGASSERT)

Code compiles w/o complaints but is untested.

15 years agoAdd TWINAX (Twin Axial Copper for 10G networking) media types.
George V. Neville-Neil [Wed, 17 Dec 2008 22:59:29 +0000 (22:59 +0000)]
Add TWINAX (Twin Axial Copper for 10G networking) media types.

Add code to the Chelsio driver so that it can recognize different
module types which may be plugged into it, including SR, LR lasers
and TWINAX copper cables.

Obtained from: Chelsio Inc.
MFC after: 1 week

15 years agogone
Sam Leffler [Wed, 17 Dec 2008 22:07:44 +0000 (22:07 +0000)]
gone

15 years agofparseln is in libutil
Sam Leffler [Wed, 17 Dec 2008 22:03:31 +0000 (22:03 +0000)]
fparseln is in libutil

15 years agogetmode+setmode are in libc, remove
Sam Leffler [Wed, 17 Dec 2008 21:55:51 +0000 (21:55 +0000)]
getmode+setmode are in libc, remove

15 years agoFirst step toward proper mtree integration:
Sam Leffler [Wed, 17 Dec 2008 21:54:08 +0000 (21:54 +0000)]
First step toward proper mtree integration:
o use mtree code directly from ../mtree; s/spec(fp)/mtree_readspec(fp)/
  (assume this will eventually go in usr.sbin)
o nuke st_rdev use; there's no reason to create filesystems with device nodes
o shim missing compat bits for inotype and nodetoino
o remove now unneeded compat/mtree bits, pack_dev.?, and stat_flags.?
o temporarily move getid.c code up to compat to keep this building

15 years ago- Protect against sc->sc_primary being null
Andrew Thompson [Wed, 17 Dec 2008 21:04:43 +0000 (21:04 +0000)]
- Protect against sc->sc_primary being null
- Initialise speed where its used

15 years agoUpdate the interface baudrate taking into account the max speed for the
Andrew Thompson [Wed, 17 Dec 2008 20:58:10 +0000 (20:58 +0000)]
Update the interface baudrate taking into account the max speed for the
different aggregation protocols.

15 years agoDocument that the devd config is in /etc/devd/asus.conf
Andrew Thompson [Wed, 17 Dec 2008 20:24:34 +0000 (20:24 +0000)]
Document that the devd config is in /etc/devd/asus.conf

15 years agoIntroduce a sysctl kern.vm_guest that reflects what the kernel knows about
Ivan Voras [Wed, 17 Dec 2008 19:57:12 +0000 (19:57 +0000)]
Introduce a sysctl kern.vm_guest that reflects what the kernel knows about
it running under a virtual environment. This also introduces a globally
accessible variable vm_guest that can be used where appropriate in the
kernel to inspect this environment.

To make it easier for the long run, an enum VM_GUEST is also introduced,
which could possibly be factored out in a header somewhere (but the
question is where - vm/vm_param.h? sys/param.h?) so it eventually becomes
a part of the standard KPI. In any case, it's a start.

The purpose of all this isn't to absolutely detect that the OS is running
under a virtual environment (cf. "redpill") but to allow the parts of the
kernel and the userland that care about this particular aspect and can do
something useful depending on it to have a standardised interface. Reducing
kern.hz is one example but there are other things that could be done like
avoiding context switches, not using CPU instructions that are known to be
slow in emulation, possibly different strategies in VM (memory) allocation,
CPU scheduling, etc.

It isn't clear if the JAILS/VIMAGE functionality should also be exposed
by this particular mechanism (probably not since they're not "full"
virtual hardware environments). Sometime in the future another sysctl and
a variable could be introduced to reflect if the kernel supports any kind
of virtual hosting (e.g. VMWare VMI, Xen dom0).

Reviewed by: silence from src-commiters@, virtualization@, kmacy@
Approved by: gnn (mentor)
Security: Obscurity doesn't help.

15 years agosplit stanzas in preparation for better integration
Sam Leffler [Wed, 17 Dec 2008 19:19:14 +0000 (19:19 +0000)]
split stanzas in preparation for better integration

15 years agoImprove error handling at ata_ahci_chipinit().
Alexander Motin [Wed, 17 Dec 2008 19:17:58 +0000 (19:17 +0000)]
Improve error handling at ata_ahci_chipinit().

Submitted by: Andrey V. Elsukov

15 years agoAdd /etc/devd/ and move hardware specific configuration there. This makes it
Andrew Thompson [Wed, 17 Dec 2008 19:12:30 +0000 (19:12 +0000)]
Add /etc/devd/ and move hardware specific configuration there. This makes it
easier to maintain custom rules for non-system things like ACPI hotkeys.

/etc/devd.conf is already set up to check this directory, no change needed there.

15 years agoFill in a missing const
Tim Kientzle [Wed, 17 Dec 2008 19:05:58 +0000 (19:05 +0000)]
Fill in a missing const

15 years agoExit earlier on failure in this test.
Tim Kientzle [Wed, 17 Dec 2008 19:05:25 +0000 (19:05 +0000)]
Exit earlier on failure in this test.

15 years agoOnce the test has failed, exit before the segfault.
Tim Kientzle [Wed, 17 Dec 2008 19:05:00 +0000 (19:05 +0000)]
Once the test has failed, exit before the segfault.

15 years agoUpdate the ar write test to give more detailed information about failures.
Tim Kientzle [Wed, 17 Dec 2008 19:03:44 +0000 (19:03 +0000)]
Update the ar write test to give more detailed information about failures.

15 years agoClarify an 'ar' error message.
Tim Kientzle [Wed, 17 Dec 2008 19:02:42 +0000 (19:02 +0000)]
Clarify an 'ar' error message.

15 years agoUse full 64bit arithmetic when converting file offsets to block numbers - fixes
Doug Rabson [Wed, 17 Dec 2008 18:12:01 +0000 (18:12 +0000)]
Use full 64bit arithmetic when converting file offsets to block numbers - fixes
booting on filesystems with inode numbers with values above 4194304.

Submitted by: ps

15 years agoIncrease maximum memory configuration that is reported as stable for
Murray Stokely [Wed, 17 Dec 2008 18:05:30 +0000 (18:05 +0000)]
Increase maximum memory configuration that is reported as stable for
FreeBSD/amd64 to 64GB.

Submitted by: Matt Olander (matt@ixsystems.net)

15 years ago1. Update fetch to consistently return 1 on error, as the man page states,
Murray Stokely [Wed, 17 Dec 2008 18:00:18 +0000 (18:00 +0000)]
1. Update fetch to consistently return 1 on error, as the man page states,
   rather than usually returning 1 but in a few instances using a sysexits(3)
   return value.

2. Remove a few unused variables from libfetch.

PR: docs/122470  (1, only)
Reviewed by: des

15 years agoMake gpart the default partitioning class on all platforms.
Marcel Moolenaar [Wed, 17 Dec 2008 17:43:22 +0000 (17:43 +0000)]
Make gpart the default partitioning class on all platforms.
Both ia64 and powerpc were using gpart exclusively already
so there's no change for those two.

Discussed on: arch@

15 years agoCorrect a bug where /etc/rc.d/defaultroute fails to finish by printing a
Brooks Davis [Wed, 17 Dec 2008 17:35:14 +0000 (17:35 +0000)]
Correct a bug where /etc/rc.d/defaultroute fails to finish by printing a
newline when it fails to obtain an address via DHCP. This made the next
rc script begin its output on the same line.

PR: conf
Submitted by: Bruce Cran <bruce at cran dot org dot uk>
MFC after: 3 days

15 years agoUse passed parameter rather than the #define.
David E. O'Brien [Wed, 17 Dec 2008 16:55:58 +0000 (16:55 +0000)]
Use passed parameter rather than the #define.
(more accurate extraction of Juniper Networks change)

15 years agoRemove sysctl debug.elf_trace and the trace field in auxargs. They go
Peter Wemm [Wed, 17 Dec 2008 16:54:29 +0000 (16:54 +0000)]
Remove sysctl debug.elf_trace and the trace field in auxargs.  They go
nowhere.  It used to be the equivalent of $LD_DEBUG in rtld-elf.
Elf_Auxargs is an internal structure.

15 years agoRather than hardcode the 'struct iovec iov' array size, use a #define.
David E. O'Brien [Wed, 17 Dec 2008 16:51:40 +0000 (16:51 +0000)]
Rather than hardcode the 'struct iovec iov' array size, use a #define.
While I'm here bump WARNS to 3.

Obtained from: Juniper Networks

15 years agoMinor style(9) nit.
Warner Losh [Wed, 17 Dec 2008 16:25:20 +0000 (16:25 +0000)]
Minor style(9) nit.

15 years agoImprove style(9) in PowerPC U-Boot support lib.
Rafal Jaworowski [Wed, 17 Dec 2008 15:58:07 +0000 (15:58 +0000)]
Improve style(9) in PowerPC U-Boot support lib.

15 years agoFix E500 cache invalidation routines.
Rafal Jaworowski [Wed, 17 Dec 2008 15:54:25 +0000 (15:54 +0000)]
Fix E500 cache invalidation routines.

When invalidating the i/d-cache we need to wait until the core complex is
really finished with the operation.

Obtained from: Semihalf

15 years agoRework E500 locore.
Rafal Jaworowski [Wed, 17 Dec 2008 15:44:34 +0000 (15:44 +0000)]
Rework E500 locore.

- split bootstrap code into more modular routines, which will also be used for
  the non-booting cores
- clean up registers usage
- improve comments to better reflect reality
- eliminate dead or redundant code
- other minor fixes

This refactoring is a preliminary step before importing dual-core (MPC8572)
support.

Obtained from: Freescale, Semihalf

15 years agoMinor clean up of BookE/MPC85XX: iprove naming and style(9).
Rafal Jaworowski [Wed, 17 Dec 2008 15:31:15 +0000 (15:31 +0000)]
Minor clean up of BookE/MPC85XX: iprove naming and style(9).

15 years agoImprove MPC85XX helper routines.
Rafal Jaworowski [Wed, 17 Dec 2008 15:27:49 +0000 (15:27 +0000)]
Improve MPC85XX helper routines.

- Move CCSR accessors to the shared MPC85XX area
- Simplify SVR version subfield handling
- Adjust OCP

15 years agoRemove two remnant uses of AT_DEBUG.
Konstantin Belousov [Wed, 17 Dec 2008 13:13:35 +0000 (13:13 +0000)]
Remove two remnant uses of AT_DEBUG.

15 years agoBoot out <sysexits.h> once and for all.
Dag-Erling Smørgrav [Wed, 17 Dec 2008 13:01:19 +0000 (13:01 +0000)]
Boot out <sysexits.h> once and for all.

MFC after: 1 week

15 years agoAnother step assimilating IPv[46] PCB code:
Bjoern A. Zeeb [Wed, 17 Dec 2008 13:00:18 +0000 (13:00 +0000)]
Another step assimilating IPv[46] PCB code:
normalize IN6P_* compat flags usage to their equialent
INP_* counterpart.

Discussed with: rwatson
Reviewed by: rwatson
MFC after: 4 weeks

15 years agoUse inc_flags instead of the inc_isipv6 alias which so far
Bjoern A. Zeeb [Wed, 17 Dec 2008 12:52:34 +0000 (12:52 +0000)]
Use inc_flags instead of the inc_isipv6 alias which so far
had been the only flag with random usage patterns.
Switch inc_flags to be used as a real bit field by using
INC_ISIPV6 with bitops to check for the 'isipv6' condition.

While here fix a place or two where in case of v4 inc_flags
were not properly initialized before.[1]

Found by: rwatson during review [1]
Discussed with: rwatson
Reviewed by: rwatson
MFC after: 4 weeks

15 years agoRevert r186186 for now; it breaks stuff.
Edward Tomasz Napierala [Wed, 17 Dec 2008 10:49:03 +0000 (10:49 +0000)]
Revert r186186 for now; it breaks stuff.

Approved by: rwatson (mentor)

15 years agoSynaptics touchpads must be reinitialized after suspend/resume.
Jean-Sébastien Pédron [Wed, 17 Dec 2008 10:42:53 +0000 (10:42 +0000)]
Synaptics touchpads must be reinitialized after suspend/resume.

This fixes touchpad resume on Asus EeePC among others.

Submitted by: rpaulo

15 years agoRemove the rt argument from nd6_storelladdr() because
Qing Li [Wed, 17 Dec 2008 10:27:34 +0000 (10:27 +0000)]
Remove the rt argument from nd6_storelladdr() because
rt is no longer accessed.

15 years agoA couple of files were not meant to be committed.
Qing Li [Wed, 17 Dec 2008 10:19:53 +0000 (10:19 +0000)]
A couple of files were not meant to be committed.

15 years agoin6_clsroute() was applied to prefix routes causing some
Qing Li [Wed, 17 Dec 2008 10:03:49 +0000 (10:03 +0000)]
in6_clsroute() was applied to prefix routes causing some
of them to expire. in6_clsroute() was only applied to
cloned routes that are no longer applicable after the
arp-v2 commit.

15 years agoIt seems that RealTek PCIe controllers require an explicit Tx poll
Pyun YongHyeon [Wed, 17 Dec 2008 08:18:11 +0000 (08:18 +0000)]
It seems that RealTek PCIe controllers require an explicit Tx poll
command whenever Tx completion interrupt is raised. The Tx poll
bit is cleared when all packets waiting to be transferred have been
processed. This means the second Tx poll command can be silently
ignored as the Tx poll bit could be still active while processing
of previous Tx poll command is in progress.
To address the issue re(4) used to invoke the Tx poll command in Tx
completion handler whenever it detects there are pending packets in
TxQ. However that still does not seem to completely eliminate
watchdog timeouts seen on RealTek PCIe controllers. To fix the
issue kick Tx poll command only after Tx completion interrupt is
raised as this would indicate Tx is now idle state such that it can
accept new Tx poll command again. While here apply this workaround
for PCIe based controllers as other controllers does not seem to
have this limitation.

Tested by: Victor Balada Diaz < victor <> bsdes DOT net >

15 years agoKeep stats in drbr_enqueue
Kip Macy [Wed, 17 Dec 2008 08:12:50 +0000 (08:12 +0000)]
Keep stats in drbr_enqueue

Discussed with: ps

15 years agoAT_DEBUG and AT_BRK were OBE like 10 years ago, so retire them.
Warner Losh [Wed, 17 Dec 2008 06:56:58 +0000 (06:56 +0000)]
AT_DEBUG and AT_BRK were OBE like 10 years ago, so retire them.

Reviewed by: peter

15 years agoRemove obsolete AT_DEBUG stuff. It never should have been committed
Warner Losh [Wed, 17 Dec 2008 06:11:42 +0000 (06:11 +0000)]
Remove obsolete AT_DEBUG stuff.  It never should have been committed
in the first place, let alone migrated to linux emulation.

Reviewed by: peter, rdivacky