]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
12 years agoA workaround in r238563 was for makes (notably bmake) without the
ru [Fri, 24 Aug 2012 06:55:16 +0000 (06:55 +0000)]
A workaround in r238563 was for makes (notably bmake) without the
internal knowledge that "cd" is a shell's built-in.  Such makes
may attempt to exec() "cd" that in turn will fail on systems that
lack the "cd" executable.

Reworked this by eliminating the root cause.

Submitted by: Simon Gerraty <sjg@juniper.net>

12 years agoImplement an API to fetch the default DFS parameters for the given chip.
adrian [Fri, 24 Aug 2012 01:29:46 +0000 (01:29 +0000)]
Implement an API to fetch the default DFS parameters for the given chip.

The only chip this is currently implemented for is the AR5416 HAL family.
A follow-up commit will add AR5212 support.

PR: kern/170904

12 years agoBring over some new EEPROM regulatory domain flags.
adrian [Fri, 24 Aug 2012 01:14:00 +0000 (01:14 +0000)]
Bring over some new EEPROM regulatory domain flags.

Obtained from: Qualcomm Atheros

12 years agoAdd some basic definitions for a future htree implementation.
pfg [Fri, 24 Aug 2012 01:12:07 +0000 (01:12 +0000)]
Add some basic definitions for a future htree implementation.

MFC after: 3 days

12 years agoOops, another copy/paste issue.
adrian [Fri, 24 Aug 2012 00:54:31 +0000 (00:54 +0000)]
Oops, another copy/paste issue.

12 years agoAdd ath_hal_get_curmode() - this is used by the Osprey HAL.
adrian [Fri, 24 Aug 2012 00:52:37 +0000 (00:52 +0000)]
Add ath_hal_get_curmode() - this is used by the Osprey HAL.

Obtained from: Qualcomm Atheros

12 years agoAdd rfkill HAL accessor methods.
adrian [Fri, 24 Aug 2012 00:43:10 +0000 (00:43 +0000)]
Add rfkill HAL accessor methods.

12 years agoOops, fix copy/paste silliness.
adrian [Fri, 24 Aug 2012 00:40:01 +0000 (00:40 +0000)]
Oops, fix copy/paste silliness.

12 years agoAdd some more capabilities (unused at the present.)
adrian [Fri, 24 Aug 2012 00:36:47 +0000 (00:36 +0000)]
Add some more capabilities (unused at the present.)

Obtained from: Qualcomm Atheros

12 years agoAdd the MFP capability to ath_hal_getcapability().
adrian [Fri, 24 Aug 2012 00:33:25 +0000 (00:33 +0000)]
Add the MFP capability to ath_hal_getcapability().

Obtained from: Qualcomm Atheros

12 years agoAdd some more diagnostic codes.
adrian [Fri, 24 Aug 2012 00:17:39 +0000 (00:17 +0000)]
Add some more diagnostic codes.

Obtained from: Qualcomm Atheros

12 years agoWrap this a little so it's slightly easier on the eyes.
adrian [Fri, 24 Aug 2012 00:15:26 +0000 (00:15 +0000)]
Wrap this a little so it's slightly easier on the eyes.

12 years agoAdd some new flags:
adrian [Fri, 24 Aug 2012 00:09:49 +0000 (00:09 +0000)]
Add some new flags:

* mfp support;
* 4.9ghz support in the HAL;
* device type - specifically, the bus type and whether it's a HB63
  NIC (which requires some subtle chainmask handling differences
  in the AR5416 HAL.)

Obtained from: Qualcomm Atheros

12 years agoFetch the chip select in the bridge driver, like all the other spi
imp [Thu, 23 Aug 2012 22:38:37 +0000 (22:38 +0000)]
Fetch the chip select in the bridge driver, like all the other spi
bridges do.

12 years agoRemove duplicated GEOM_PART_* options.
ray [Thu, 23 Aug 2012 22:23:56 +0000 (22:23 +0000)]
Remove duplicated GEOM_PART_* options.

PR: 170931
Approved by: adrian

12 years agoAllow nmbjumbop, nmbjumbo9, and nmbjumbo16 to be set directly via loader
np [Thu, 23 Aug 2012 21:32:02 +0000 (21:32 +0000)]
Allow nmbjumbop, nmbjumbo9, and nmbjumbo16 to be set directly via loader
tunables.

MFC after: 1 month

12 years agoUse proper resource type when freeing.
imp [Thu, 23 Aug 2012 21:31:52 +0000 (21:31 +0000)]
Use proper resource type when freeing.

Submitted by: Ian Lapore (indirectly in a larger patch)

12 years agoApply fix for vendor pull request #17:
mm [Thu, 23 Aug 2012 19:40:28 +0000 (19:40 +0000)]
Apply fix for vendor pull request #17:
Support appending to empty archives

References:
  https://github.com/libarchive/libarchive/pull/17

Submitted by: myself
Obtained from: libarchive master branch on github

12 years agoPartially roll back r239601 - keep parameter strings both length-delimited
jamie [Thu, 23 Aug 2012 19:39:23 +0000 (19:39 +0000)]
Partially roll back r239601 - keep parameter strings both length-delimited
and null-terminated at the same time, because they're later passed to
libjail as null-terminated.  That means I also need to add a nul byte when
comma-combining array parameters.

MFC after: 6 days

12 years agoMerge recent vendor changes:
mm [Thu, 23 Aug 2012 19:32:57 +0000 (19:32 +0000)]
Merge recent vendor changes:
3086 unnecessarily setting DS_FLAG_INCONSISTENT on async destroyed datasets
3090 vdev_reopen() during reguid causes vdev to be treated as corrupt
3102 vdev_uberblock_load() and vdev_validate() may read the wrong label

Referenes:
  https://www.illumos.org/issues/3086
  https://www.illumos.org/issues/3090
  https://www.illumos.org/issues/3102

PR: kern/170912, kern/170914
Obtained from: illumos (changeset #13776, #13777)
MFC after: 2 weeks

12 years agoPull in r162360 from upstream clang trunk:
dim [Thu, 23 Aug 2012 18:14:59 +0000 (18:14 +0000)]
Pull in r162360 from upstream clang trunk:

  Merge existing attributes before processing pragmas in friend template
  declarations.
  Fixes pr13662.

This should help when building Firefox with libc++.

12 years agoSince our clang now supports the tls_model attribute, remove the
dim [Thu, 23 Aug 2012 17:58:22 +0000 (17:58 +0000)]
Since our clang now supports the tls_model attribute, remove the
workaround for it in jemalloc_FreeBSD.h.

Reviewed by: jasone

12 years agoAdd tunable for XHCI port routing.
hselasky [Thu, 23 Aug 2012 17:40:20 +0000 (17:40 +0000)]
Add tunable for XHCI port routing.

MFC after: 1 week

12 years agoSprinkle a bit of style.Makefile(5) across various clang Makefiles. No
dim [Thu, 23 Aug 2012 17:08:07 +0000 (17:08 +0000)]
Sprinkle a bit of style.Makefile(5) across various clang Makefiles.  No
functional changes.

MFC after: 3 days

12 years agoMake sure bsd.dep.mk does not filter out -stdlib=xxx from CXXFLAGS,
dim [Thu, 23 Aug 2012 17:03:33 +0000 (17:03 +0000)]
Make sure bsd.dep.mk does not filter out -stdlib=xxx from CXXFLAGS,
since this determines parts of the C++ include path.

MFC after: 1 week

12 years agoCheck the return value of sbuf_finish().
jh [Thu, 23 Aug 2012 16:25:36 +0000 (16:25 +0000)]
Check the return value of sbuf_finish().

12 years ago- Put arguments for print_syscall_ret() function in proper order.
zont [Thu, 23 Aug 2012 12:20:29 +0000 (12:20 +0000)]
- Put arguments for print_syscall_ret() function in proper order.
  Bug was introduced in r192025.

Approved by: kib (mentor)

12 years agoEliminate redundant code, _thr_spinlock_init() has already been called
davidxu [Thu, 23 Aug 2012 05:15:15 +0000 (05:15 +0000)]
Eliminate redundant code, _thr_spinlock_init() has already been called
in init_private(), don't call it again in fork() wrapper.

12 years agoThe check for MAXPHYS doesn't make sense, so remove it.
imp [Thu, 23 Aug 2012 04:35:55 +0000 (04:35 +0000)]
The check for MAXPHYS doesn't make sense, so remove it.
Report errors indicated by the transport.  If this is too chatty, I'll
throw it behind a debug write.
Remove commented out debugs that are no longer useful.

12 years agoAdd a placeholder and typedefs for MFP (management frame protection.)
adrian [Thu, 23 Aug 2012 03:37:01 +0000 (03:37 +0000)]
Add a placeholder and typedefs for MFP (management frame protection.)

Obtained from: Qualcomm Atheros

12 years agoAdd some more interrupt handling bits.
adrian [Thu, 23 Aug 2012 03:25:09 +0000 (03:25 +0000)]
Add some more interrupt handling bits.

Obtained from: Qualcomm Atheros

12 years agoAdd AR9380 devid HAL definitions and probe/attach strings.
adrian [Thu, 23 Aug 2012 03:03:00 +0000 (03:03 +0000)]
Add AR9380 devid HAL definitions and probe/attach strings.

Obtained from: Device IDs are from Qualcomm Atheros

12 years agoAdd chipset names.
adrian [Thu, 23 Aug 2012 02:58:06 +0000 (02:58 +0000)]
Add chipset names.

12 years agoPre-separate IP addresses passed on the command line, so they can be
jamie [Thu, 23 Aug 2012 01:43:22 +0000 (01:43 +0000)]
Pre-separate IP addresses passed on the command line, so they can be
properly parsed for interface prefixes and netmask suffixes.  This was
already done for the old-style (fixed) command line, but missed for
the new-style.

MFC after: 1 week

12 years agoRemember that I'm using length-defined strings in parameters:
jamie [Thu, 23 Aug 2012 01:43:01 +0000 (01:43 +0000)]
Remember that I'm using length-defined strings in parameters:

 Remove a bogus null terminator when stripping the netmask from
 IP addresses.  This was causing later addresses in a comma-separated
 string to disappear.

 Use memcpy instead of strcpy.  This could just cause Bad Things.

PR: 170832
MFC after: 1 week

12 years agoCorrect style.
obrien [Wed, 22 Aug 2012 23:44:12 +0000 (23:44 +0000)]
Correct style.

12 years ago* Reinstate r128059's consumption of our best entropy first.
obrien [Wed, 22 Aug 2012 23:37:24 +0000 (23:37 +0000)]
* Reinstate r128059's consumption of our best entropy first.
  r128060 for "hardware-supplied entropy" reversed this without reason,
  seems a typo.
* Isolate "better than nothing" implementation to a function.

Submitted by: obrien & Arthur Mesh <arthurmesh@gmail.com>
Sponsored by: Juniper Networks

12 years agoDo not change "cachable" attribute for DMA memory allocated with
gonzo [Wed, 22 Aug 2012 22:48:50 +0000 (22:48 +0000)]
Do not change "cachable" attribute for DMA memory allocated with
BUS_DMA_COHERENT attribute

The minimum unit for changing "cachable" attribute is page, so call
to pmap_change_attr effectively disable cache for all pages that newly
allocated DMA memory region spans on. The problem is that general-purpose
memory could reside on these pages too and disabling cache might affect
performance. Moreover ldrex/strex operators raise Data Abort exception
when accessing memory on page with "cachable" attribute off.

BUS_DMA_COHERENT does nto require memory to be coherent. It just suggests
to do best effort for reducing synchronization overhead.

12 years agoThe entire comment block is now spell checked this time -- I promise.
obrien [Wed, 22 Aug 2012 22:34:55 +0000 (22:34 +0000)]
The entire comment block is now spell checked this time --  I promise.

12 years agoAllow - be used in the name of a provider. Without this change it's not
delphij [Wed, 22 Aug 2012 22:17:35 +0000 (22:17 +0000)]
Allow - be used in the name of a provider.  Without this change it's not
possible to specify a gptid in geli_devices.

12 years agoFix comment misspelling.
obrien [Wed, 22 Aug 2012 20:56:53 +0000 (20:56 +0000)]
Fix comment misspelling.

Submitted by: kargl

12 years agoRemove unncessary atomic operation when reading process flags in
jimharris [Wed, 22 Aug 2012 20:22:55 +0000 (20:22 +0000)]
Remove unncessary atomic operation when reading process flags in
PMC_PROC_IS_USING_PMCS macro.

Invocations of this macro are not synchronized with setting/clearing
of P_HWPMC flag, so the atomic operation here isn't needed.  Removing
the atomic operation provides noticeable improvement (5-6%) on
some scheduler-intensive workloads with HWPMC_HOOKS enabled on an
8C Sandy Bridge Xeon system.

Sponsored by: Intel
Reviewed by: jhb
MFC after: 1 week

12 years agoProvide some compat32 shims for sysctl vfs.conflist. It is required
kib [Wed, 22 Aug 2012 20:05:34 +0000 (20:05 +0000)]
Provide some compat32 shims for sysctl vfs.conflist. It is required
for getvfsbyname(3) operation when called from 32bit process, and
getvfsbyname(3) is used by recent bsdtar import.

Reported by: many
Tested by: David Naylor <naylor.b.david@gmail.com>
MFC after: 5 days

12 years agoAssert that system calls do not leak a pinned thread (via sched_pin()) to
jhb [Wed, 22 Aug 2012 20:02:42 +0000 (20:02 +0000)]
Assert that system calls do not leak a pinned thread (via sched_pin()) to
userland.

12 years agoFix a typo.
jhb [Wed, 22 Aug 2012 20:01:57 +0000 (20:01 +0000)]
Fix a typo.

12 years agoMark the idle threads as non-sleepable and also assert that an idle
jhb [Wed, 22 Aug 2012 20:01:38 +0000 (20:01 +0000)]
Mark the idle threads as non-sleepable and also assert that an idle
thread never blocks on a turnstile.

12 years agoFix the 'show witness' DDB command to honor db_pager_quit.
jhb [Wed, 22 Aug 2012 20:00:41 +0000 (20:00 +0000)]
Fix the 'show witness' DDB command to honor db_pager_quit.

12 years agoSort options.
hrs [Wed, 22 Aug 2012 19:27:42 +0000 (19:27 +0000)]
Sort options.

12 years agoAdd -m option (for printing sampled PCs to a file) to pmcstat usage
jimharris [Wed, 22 Aug 2012 19:02:07 +0000 (19:02 +0000)]
Add -m option (for printing sampled PCs to a file) to pmcstat usage
message.

Sponsored by: Intel
MFC after: 3 days

12 years agoDepend on the new 'postrandom' instead of random.
obrien [Wed, 22 Aug 2012 18:49:02 +0000 (18:49 +0000)]
Depend on the new 'postrandom' instead of random.
We need to limit the amount of time between consuming the entropy seeds
and removing it in case of a kernel panic.

12 years agoRemove old entropy seeding after consumption initializing /dev/random PRNG.
obrien [Wed, 22 Aug 2012 18:43:21 +0000 (18:43 +0000)]
Remove old entropy seeding after consumption initializing /dev/random PRNG.
Not doing so opens us up to replay attacks.

Submitted by: Arthur Mesh <arthurmesh@gmail.com>
Sponsored by: Juniper Networks

12 years agoAdd dependencies based on security(7).
obrien [Wed, 22 Aug 2012 18:35:17 +0000 (18:35 +0000)]
Add dependencies based on security(7).

12 years agoAdd new USB device ID.
hselasky [Wed, 22 Aug 2012 18:30:13 +0000 (18:30 +0000)]
Add new USB device ID.

Submitted by: Dmitry Luhtionov
MFC after: 1 week

12 years agoRevert r239356 and use an alternate algorithm.
jhb [Wed, 22 Aug 2012 13:53:37 +0000 (13:53 +0000)]
Revert r239356 and use an alternate algorithm.

First, don't exit when the link goes down on an interface.  Instead,
teach dhclient to track changes in link state and to enter the reboot
state when the link on an interface goes up causing dhclient to attempt
to renew its existing lease.

Second, remove the change I added to clear the old lease when dhclient
exits due to an error (such as ifconfig down).  If an interface is
using autoconfiguration it should keep its autoconfiguration as much as
possible.  If the next time it needs a configuration it is able to reuse
the previous autoconfiguration, then leaving the settings intact allows
existing connections to survive temporary outages, etc.

PR: bin/166656
MFC after: 1 month

12 years agoAdd -p flag to create the image as a sparse file.
hrs [Wed, 22 Aug 2012 06:37:30 +0000 (06:37 +0000)]
Add -p flag to create the image as a sparse file.

Submitted by: Shesha Sreenivasamurthy
PR: bin/167779

12 years agoAfter r239366, fix the ti_edma3.c driver to use the
kientzle [Wed, 22 Aug 2012 05:14:59 +0000 (05:14 +0000)]
After r239366, fix the ti_edma3.c driver to use the
exact name as used in the FDT.

12 years agophandle_t is unsigned, and OF_finddevice() returns (phandle_t)(-1) on
jhibbits [Tue, 21 Aug 2012 23:55:29 +0000 (23:55 +0000)]
phandle_t is unsigned, and OF_finddevice() returns (phandle_t)(-1) on
failure, so check for that instead of 0.

While here, provide a better description for ATI backlight driver.

Reported by: jchandra@
MFC after: 3 days

12 years agoGet rid of ARM_BIG_ENDIAN for good:
gonzo [Tue, 21 Aug 2012 23:44:47 +0000 (23:44 +0000)]
Get rid of ARM_BIG_ENDIAN for good:
  - remove leftovers in Makefile.arm
  - Let ld use default output format instead of providing one in ldscript

12 years agoFix/add support for SCSI UNMAP to ATA DSM translation.
jimharris [Tue, 21 Aug 2012 22:28:14 +0000 (22:28 +0000)]
Fix/add support for SCSI UNMAP to ATA DSM translation.

This addresses kernel panic observed when sending SCSI UNMAP
commands to SATA disks attached to isci(4).

1) Flesh out callback routines to allocate/free buffers needed for
   translating SCSI UNMAP data to ATA DSM data.
2) Add controller-level pool for storing buffers previously allocated
   for UNMAP translation, to lessen chance of no buffer available
   under memory pressure.
3) Ensure driver properly handles case where buffer pool is empty
   and contigmalloc returns NULL.

Sponsored by: Intel
Reported by: Maksim Yevmenkin <max at netflix dot com>
Discussed with:  scottl
MFC after: 3 days

12 years agoDeal with the case where a syncache entry added by the TOE driver is
np [Tue, 21 Aug 2012 22:23:17 +0000 (22:23 +0000)]
Deal with the case where a syncache entry added by the TOE driver is
evicted from the syncache but a later syncache_expand succeeds because
of syncookies.  The TOE driver has to resort to more direct means to
install its hooks in the socket in this case.

12 years agoRemove trailing whitespace.
joel [Tue, 21 Aug 2012 20:40:12 +0000 (20:40 +0000)]
Remove trailing whitespace.

12 years agoStyle.
hselasky [Tue, 21 Aug 2012 20:18:01 +0000 (20:18 +0000)]
Style.

12 years agoFix USB drivers for KB920X target.
hselasky [Tue, 21 Aug 2012 20:10:59 +0000 (20:10 +0000)]
Fix USB drivers for KB920X target.
Add missing clock settings.
VBUS GPIO IRQ is still missing (TODO).

12 years agoMake some at91_pcm_xxx() functions NULL safe.
hselasky [Tue, 21 Aug 2012 19:55:24 +0000 (19:55 +0000)]
Make some at91_pcm_xxx() functions NULL safe.

12 years agoAvoid a NULL pointer dereference.
np [Tue, 21 Aug 2012 19:45:19 +0000 (19:45 +0000)]
Avoid a NULL pointer dereference.

12 years agoCannot hold a mutex around vm_fault_quick_hold_pages, so don't. Tweak
np [Tue, 21 Aug 2012 19:39:09 +0000 (19:39 +0000)]
Cannot hold a mutex around vm_fault_quick_hold_pages, so don't.  Tweak
some comments while here.

12 years agoFix a silly grammar bogon.
jhb [Tue, 21 Aug 2012 19:07:28 +0000 (19:07 +0000)]
Fix a silly grammar bogon.

Submitted by: Stephen McKay

12 years agoAdd a manpage for BUS_CHILD_DETACHED().
jhb [Tue, 21 Aug 2012 18:41:38 +0000 (18:41 +0000)]
Add a manpage for BUS_CHILD_DETACHED().

12 years agoMinor cleanup: use bitwise ops instead of pointless wrappers around
np [Tue, 21 Aug 2012 18:30:16 +0000 (18:30 +0000)]
Minor cleanup: use bitwise ops instead of pointless wrappers around
setbit/clrbit.

12 years agoWhen WITH_CLANG_EXTRAS is enabled, avoid needlessly building the llvm
dim [Tue, 21 Aug 2012 18:24:11 +0000 (18:24 +0000)]
When WITH_CLANG_EXTRAS is enabled, avoid needlessly building the llvm
and clang extras in the cross-tools stage.

MFC after: 1 week

12 years agoAdd a BUS_CHILD_DELETED() method that a bus can hook to allow it to cleanup
jhb [Tue, 21 Aug 2012 18:13:09 +0000 (18:13 +0000)]
Add a BUS_CHILD_DELETED() method that a bus can hook to allow it to cleanup
any bus-specific state (such as ivars) when a child device is deleted.

Requested by: kan
MFC after: 1 month

12 years agoCorrectly handle the case where an inp has already been dropped by the time
np [Tue, 21 Aug 2012 18:09:33 +0000 (18:09 +0000)]
Correctly handle the case where an inp has already been dropped by the time
the TOE driver reports that an active open failed.  toe_connect_failed is
supposed to handle this but it should be provided the inpcb instead of the
tcpcb which may no longer be around.

12 years agoDocument DRIVER_MODULE_ORDERED, EARLY_DRIVER_MODULE, and
jhb [Tue, 21 Aug 2012 17:58:39 +0000 (17:58 +0000)]
Document DRIVER_MODULE_ORDERED, EARLY_DRIVER_MODULE, and
EARLY_DRIVER_MODULE_ORDERED.

12 years agoSupport the WITH_SHARED_TOOLCHAIN setting that was introduced in r234782
dim [Tue, 21 Aug 2012 17:58:30 +0000 (17:58 +0000)]
Support the WITH_SHARED_TOOLCHAIN setting that was introduced in r234782
for the clang executable.  Build it statically by default, like the gcc
executables, which should improve performance a little bit.

MFC after: 1 week

12 years ago- Calculate the I2C baud rate to keep them <100 kHz under different TCLK
hrs [Tue, 21 Aug 2012 17:49:20 +0000 (17:49 +0000)]
- Calculate the I2C baud rate to keep them <100 kHz under different TCLK
  frequencies.  The maximum freqency is 100 kHz according to the datasheet.

- Add child device probing support based on the device tree.  It now tries to
  find i2c-address property in the tree and attach the device with given slave
  address to iicbus.

12 years agoAdd s35390a_rtc(4) driver for Seiko Instruments S-35390A RTC.
hrs [Tue, 21 Aug 2012 17:31:10 +0000 (17:31 +0000)]
Add s35390a_rtc(4) driver for Seiko Instruments S-35390A RTC.

Submitted by: Yusuke Tanaka

12 years agoMissing one in r239505.
obrien [Tue, 21 Aug 2012 17:06:36 +0000 (17:06 +0000)]
Missing one in r239505.

12 years agoRestore the style of r195843 to that of pre-r194498
obrien [Tue, 21 Aug 2012 17:05:10 +0000 (17:05 +0000)]
Restore the style of r195843 to that of pre-r194498
to reduce gratuitous diffs to older sources.

12 years agoInitialise an uninitialised variable.
adrian [Tue, 21 Aug 2012 16:44:25 +0000 (16:44 +0000)]
Initialise an uninitialised variable.

GCC on -9 didn't pick this up; clang did.

Submitted by: David Wolfskill

12 years agoAdd missing .Pp macro.
zeising [Tue, 21 Aug 2012 16:35:14 +0000 (16:35 +0000)]
Add missing .Pp macro.

PR: docs/170380
Submitted by: Garrett Cooper <yanegomi@gmail.com>
Approved by: joel (mentor)

12 years agoRemove dependence on MAXPHYS.
mjacob [Tue, 21 Aug 2012 16:18:11 +0000 (16:18 +0000)]
Remove dependence on MAXPHYS.

MFC after: 1 month

12 years ago- Use pid_t type instead of just int.
zont [Tue, 21 Aug 2012 14:58:51 +0000 (14:58 +0000)]
- Use pid_t type instead of just int.

Approved by: kib (mentor)

12 years agoFix "unexpected operator" error when passed multi-word first-argument
dteske [Tue, 21 Aug 2012 13:46:46 +0000 (13:46 +0000)]
Fix "unexpected operator" error when passed multi-word first-argument
containing whitespace. Also make other changes to support multi-word
arguments.

PR: bin/170759
Submitted by: dteske
Reviewed by: emaste (mentor)
Approved by: emaste (mentor)
MFC after: 3 days

12 years agoRemove trailing whitespace.
joel [Tue, 21 Aug 2012 13:33:48 +0000 (13:33 +0000)]
Remove trailing whitespace.

12 years ago- Add myself to the calendar.
zont [Tue, 21 Aug 2012 12:47:34 +0000 (12:47 +0000)]
- Add myself to the calendar.

Approved by: kib (mentor)

12 years ago- Add myself as a new src committer.
zont [Tue, 21 Aug 2012 12:39:38 +0000 (12:39 +0000)]
- Add myself as a new src committer.

Approved by:    kib (mentor)

12 years agoAdd correct range parameter in XLP DTS
jchandra [Tue, 21 Aug 2012 09:37:23 +0000 (09:37 +0000)]
Add correct range parameter in XLP DTS

r239274 added support for ranges. Update XLP DTS to provide the correct
range parameter for the XLP SoC bus.  Also fix bus_space_map method
for XLP bus space.

Submitted by: Sreekanth M. <sreekanth.molagavalli@broadcom.com>

12 years agoAdd manual pages for clock_getcpuclockid and pthread_getcpuclockid.
davidxu [Tue, 21 Aug 2012 09:18:28 +0000 (09:18 +0000)]
Add manual pages for clock_getcpuclockid and pthread_getcpuclockid.

12 years agoFix prototype. Also the function should return error code instead of
davidxu [Tue, 21 Aug 2012 09:17:13 +0000 (09:17 +0000)]
Fix prototype. Also the function should return error code instead of
-1 on error.

12 years agoOn Nintendo Wii CPUs, the mdp value will be garbage. Set it to NULL
adrian [Tue, 21 Aug 2012 06:34:21 +0000 (06:34 +0000)]
On Nintendo Wii CPUs, the mdp value will be garbage.  Set it to NULL
so as to not confuse things.

Submitted by: Margarida Gouveia

12 years agoDon't probe the openfirmware framebuffer if the system is a Wii or it
adrian [Tue, 21 Aug 2012 06:33:10 +0000 (06:33 +0000)]
Don't probe the openfirmware framebuffer if the system is a Wii or it
will crash.

Submitted by: Margarida Gouveia

12 years agoInitial support for running FreeBSD on the Nintendo Wii. We're able to
adrian [Tue, 21 Aug 2012 06:31:26 +0000 (06:31 +0000)]
Initial support for running FreeBSD on the Nintendo Wii. We're able to
reach single user mode using a memory disk device as the file system.

This port includes the framebuffer driver, the PIC driver, a platform
driver and the GPIO driver. The IPC driver (to talk to IOS kernels) is
not yet written but there's a placeholder for it.

There are still some MMU problems and to get a working system you need to
patch locore32.S. Since we haven't found the best way yet to address that
problem, we're not committing those changes yet. The problem is related to
the different BAT layout on the Wii and to the fact that the Homebrew
loader doesn't clean up the special registers (including the 8 BATs)
before passing control to us.

You'll need a Wii with Homebrew loader and a TV that can do NTSC (for now).

Submitted by: Margarida Gouveia

12 years agoAccording to resolvconf.conf(5) manpage and sources, there is no
ache [Tue, 21 Aug 2012 06:14:08 +0000 (06:14 +0000)]
According to resolvconf.conf(5) manpage and sources, there is no
'nameservers' option which used in examples in resolvconf.conf(5),
it spelled 'name_servers', so fix examples.

12 years agoDo not call process_nodelete with NULL object pointer.
kan [Mon, 20 Aug 2012 23:43:03 +0000 (23:43 +0000)]
Do not call process_nodelete with NULL object pointer.

The place where the function is called can be reached if object loading
and relocation fails too, in which case obj pointer will be NULL. Do not
call process_nodelete then, or crash will follow.

Pointy hat to: kan

12 years agoAdd three additional clang intrinsics headers, which I missed in the
dim [Mon, 20 Aug 2012 20:56:40 +0000 (20:56 +0000)]
Add three additional clang intrinsics headers, which I missed in the
previous import.

12 years agoAvoid segfault in the 'smpphylist' subcommand.
pluknet [Mon, 20 Aug 2012 20:40:14 +0000 (20:40 +0000)]
Avoid segfault in the 'smpphylist' subcommand.
Initialize devlist.dev_queue tail queue early enough before its any
potential traversal in freebusdevlist() when in smpphylist error path.

Reported by: Pavel Polyakov <bsd kobyla org> (on irc)
Reviewed by: ken
MFC after: 5 days

12 years agoFix a build issue when ATH_DEBUG isn't defined - just initialise and use
adrian [Mon, 20 Aug 2012 18:57:41 +0000 (18:57 +0000)]
Fix a build issue when ATH_DEBUG isn't defined - just initialise and use
qnum.

12 years agoAs of r232844 we no longer need the maxpoll 9 workaround.
delphij [Mon, 20 Aug 2012 18:45:16 +0000 (18:45 +0000)]
As of r232844 we no longer need the maxpoll 9 workaround.

MFC after: 3 days

12 years agoUpgrade our copy of llvm/clang to trunk r162107. With thanks to
dim [Mon, 20 Aug 2012 18:33:03 +0000 (18:33 +0000)]
Upgrade our copy of llvm/clang to trunk r162107.  With thanks to
Benjamin Kramer and Joerg Sonnenberger for their input and fixes.

12 years agoRefine the changes made in r208212 to avoid bogus failures from
jhb [Mon, 20 Aug 2012 16:00:33 +0000 (16:00 +0000)]
Refine the changes made in r208212 to avoid bogus failures from
if_delmulti() when clearing the configuration for a subinterface when
the parent interface is being detached.  The current code was still
triggering an assertion in if_delmulti() due to the parent interface being
partially detached.  Fix this by not calling if_delmulti() at all if the
parent interface is being detached.  Warn if if_delmulti() fails when the
parent is not being detached (but similar to 208212, still proceed with
tearing down the vlan state).

Tested by: ae@
MFC after: 1 month