]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoPull in r196874 from upstream llvm trunk:
Dimitry Andric [Fri, 28 Feb 2014 17:12:31 +0000 (17:12 +0000)]
Pull in r196874 from upstream llvm trunk:

  Fix a crash that occurs when PWD is invalid.

  MCJIT needs to be able to run in hostile environments, even when PWD
  is invalid. There's no need to crash MCJIT in this case.

  The obvious fix is to simply leave MCContext's CompilationDir empty
  when PWD can't be determined. This way, MCJIT clients,
  and other clients that link with LLVM don't need a valid working directory.

  If we do want to guarantee valid CompilationDir, that should be done
  only for clients of getCompilationDir(). This is as simple as checking
  for an empty string.

  The only current use of getCompilationDir is EmitGenDwarfInfo, which
  won't conceivably run with an invalid working dir. However, in the
  purely hypothetically and untestable case that this happens, the
  AT_comp_dir will be omitted from the compilation_unit DIE.

This should help fix assertions occurring with ports-mgmt/tinderbox,
when it is using jails, and sometimes invalidates clang's current
working directory.

Reported by: decke
MFC after: 2 weeks
X-MFC-With: r261991

10 years agoSymbolic bindings for the dts files...
Warner Losh [Fri, 28 Feb 2014 16:51:33 +0000 (16:51 +0000)]
Symbolic bindings for the dts files...

10 years agoAdd missing skeleton file.
Warner Losh [Fri, 28 Feb 2014 16:43:56 +0000 (16:43 +0000)]
Add missing skeleton file.

10 years agoAdd skeleton.dtsi and update to new place in tree.
Warner Losh [Fri, 28 Feb 2014 16:42:14 +0000 (16:42 +0000)]
Add skeleton.dtsi and update to new place in tree.

10 years agoAdd proper svn:keyword props
Warner Losh [Fri, 28 Feb 2014 16:35:01 +0000 (16:35 +0000)]
Add proper svn:keyword props

10 years agoThese file have a, possibly dubious, GPL claim. Until that's sorted, move to gnu.
Warner Losh [Fri, 28 Feb 2014 16:26:44 +0000 (16:26 +0000)]
These file have a, possibly dubious, GPL claim. Until that's sorted, move to gnu.

10 years agomdoc cleanup.
Christian Brueffer [Fri, 28 Feb 2014 15:55:35 +0000 (15:55 +0000)]
mdoc cleanup.

MFC after: 1 week

10 years agoAdd device and gadget bindings for fdt. These are preliminary and will
Warner Losh [Fri, 28 Feb 2014 03:00:31 +0000 (03:00 +0000)]
Add device and gadget bindings for fdt. These are preliminary and will
need work before they work, especially the gadget bindings.

10 years agotcb device for fdt
Warner Losh [Fri, 28 Feb 2014 03:00:28 +0000 (03:00 +0000)]
tcb device for fdt

10 years agoshdwc device for fdt
Warner Losh [Fri, 28 Feb 2014 03:00:25 +0000 (03:00 +0000)]
shdwc device for fdt

10 years agoAdd device node for SDRAMC device. Currently just claims device's
Warner Losh [Fri, 28 Feb 2014 02:59:51 +0000 (02:59 +0000)]
Add device node for SDRAMC device. Currently just claims device's
resources.

10 years agoAdd fdt binding for nand for Atmel parts. This does little more than
Warner Losh [Fri, 28 Feb 2014 02:38:04 +0000 (02:38 +0000)]
Add fdt binding for nand for Atmel parts. This does little more than
match the device. Pinctrl will need to be added before this will work,
in addition to migrating the current board_foo.c method of configuring
these pins to something else. Non-FDT systems won't be affected, yet.

10 years ago4478 dtrace_dof_maxsize is far too small
Mark Johnston [Fri, 28 Feb 2014 02:04:41 +0000 (02:04 +0000)]
4478 dtrace_dof_maxsize is far too small

illumos/illumos-gate@d339a29bb4765c4b6883a935cf69b669cd05bca0

PR: 187027
MFC after: 1 week

10 years ago4478 dtrace_dof_maxsize is far too small
Mark Johnston [Fri, 28 Feb 2014 01:53:37 +0000 (01:53 +0000)]
4478 dtrace_dof_maxsize is far too small

illumos/illumos-gate@d339a29bb4765c4b6883a935cf69b669cd05bca0

10 years agoCorrect initial import script
Warner Losh [Fri, 28 Feb 2014 01:33:03 +0000 (01:33 +0000)]
Correct initial import script

10 years agoInitial import of DTS files from Linux
Warner Losh [Fri, 28 Feb 2014 01:32:44 +0000 (01:32 +0000)]
Initial import of DTS files from Linux

10 years agoInitial import of Linux/Vendor DTS files for various embedded boards.
Warner Losh [Fri, 28 Feb 2014 01:31:35 +0000 (01:31 +0000)]
Initial import of Linux/Vendor DTS files for various embedded boards.

10 years agoAdd an armv7 implementation of cpu_sleep(). The arm11/armv6 implementation
Ian Lepore [Fri, 28 Feb 2014 00:41:55 +0000 (00:41 +0000)]
Add an armv7 implementation of cpu_sleep().  The arm11/armv6 implementation
we've been using was actually just spinning due to ARM having redefined
the old 'wait for interrupt' operation via the system coprocessor as a nop
and replacing it with a WFI instruction.

10 years agoAdd some rudimentary voltage control to go with the rudimentary frequency
Ian Lepore [Fri, 28 Feb 2014 00:26:57 +0000 (00:26 +0000)]
Add some rudimentary voltage control to go with the rudimentary frequency
control.  If we have to scale back the frequency due to temperature, it
will help to lower the voltage as well.

10 years agoSupply a DELAY() implementation via weak linkage, so that SoC-specific
Ian Lepore [Fri, 28 Feb 2014 00:23:04 +0000 (00:23 +0000)]
Supply a DELAY() implementation via weak linkage, so that SoC-specific
code can supply a better implementation.  A SoC with variable CPU frequency
is likely to use a fixed-frequency timer for DELAY() (but still use the
mpcore private timers as eventtimers).

Also remove spaces from the eventtimer and timecounter names.

10 years agoAll our current ARM multi-core systems have all cores in one package with
Ian Lepore [Fri, 28 Feb 2014 00:17:03 +0000 (00:17 +0000)]
All our current ARM multi-core systems have all cores in one package with
a shared L2 cache, reflect that in the common cpu_topo() routine.

10 years agoInitialize the Low Power Mode bits to keep the ARM cores running during WFI.
Ian Lepore [Thu, 27 Feb 2014 22:55:33 +0000 (22:55 +0000)]
Initialize the Low Power Mode bits to keep the ARM cores running during WFI.

10 years agoMFV r262570:
Xin LI [Thu, 27 Feb 2014 21:50:46 +0000 (21:50 +0000)]
MFV r262570:

4626 libzfs memleak in zpool_in_use()

illumos/illumos-gate@fb13f48f1d9593453b94cd1c7277553b56f493c8

MFC after: 2 weeks

10 years agoRestore SIM freeze/release match, broken at r253549.
Alexander Motin [Thu, 27 Feb 2014 21:48:34 +0000 (21:48 +0000)]
Restore SIM freeze/release match, broken at r253549.

This fixes problem with SIM left in frozen state after reinit, for example,
after firmware update.

MFC after: 1 week

10 years agoAdd tws(4) to the hardware notes.
Christian Brueffer [Thu, 27 Feb 2014 21:47:20 +0000 (21:47 +0000)]
Add tws(4) to the hardware notes.

MFC after: 3 days

10 years agoGet rid of the 'chan' from softc structure and use the latter
Xin LI [Thu, 27 Feb 2014 21:41:52 +0000 (21:41 +0000)]
Get rid of the 'chan' from softc structure and use the latter
directly as sleep channel.

PR: kern/174684
Submitted by: jmg
MFC after: 2 weeks

10 years agoAdd missing includes and remove two unused ones.
Christian Brueffer [Thu, 27 Feb 2014 21:01:10 +0000 (21:01 +0000)]
Add missing includes and remove two unused ones.

Reviewed by: loos
MFC after: 1 week

10 years ago4626 libzfs memleak in zpool_in_use()
Xin LI [Thu, 27 Feb 2014 20:00:26 +0000 (20:00 +0000)]
4626 libzfs memleak in zpool_in_use()

illumos/illumos-gate@fb13f48f1d9593453b94cd1c7277553b56f493c8

10 years agoBring in Ian Campbell's pruned dts repo.
Warner Losh [Thu, 27 Feb 2014 19:39:44 +0000 (19:39 +0000)]
Bring in Ian Campbell's pruned dts repo.
From git://xenbits.xen.org/people/ianc/device-tree-rebasing.git
commit efa963ec806366c9628dfd1269316bb93b7ecb15
Merge: a72ba09 459c249
Author: Ian Campbell <ian.campbell@citrix.com>
Date:   Wed Feb 26 08:39:16 2014 +0000

    Merge tag 'v3.14-rc4-dts'

    Linux 3.14-rc4

10 years agoDo not setup interrupt handler (polling is used).
Ruslan Bukin [Thu, 27 Feb 2014 18:13:07 +0000 (18:13 +0000)]
Do not setup interrupt handler (polling is used).

10 years agosh: Do not corrupt internal representation if LINENO inner expansion fails.
Jilles Tjoelker [Thu, 27 Feb 2014 16:54:43 +0000 (16:54 +0000)]
sh: Do not corrupt internal representation if LINENO inner expansion fails.

Example:
  f() { : ${LINENO+$((1/0))}; }
and call this function twice.

10 years agoAdd geom_uncompress to the list of available geom modules on loader.conf.
Luiz Otavio O Souza [Thu, 27 Feb 2014 13:31:54 +0000 (13:31 +0000)]
Add geom_uncompress to the list of available geom modules on loader.conf.

Approved by: adrian (mentor)

10 years agoFix a leftover of r260523. Remove the unnecessary dependency to zlib.h.
Luiz Otavio O Souza [Thu, 27 Feb 2014 13:29:26 +0000 (13:29 +0000)]
Fix a leftover of r260523.  Remove the unnecessary dependency to zlib.h.

Approved by: adrian (mentor)

10 years agoInspired by r262522, fix make depend. This fixes the build of gpio modules.
Luiz Otavio O Souza [Thu, 27 Feb 2014 13:26:41 +0000 (13:26 +0000)]
Inspired by r262522, fix make depend.  This fixes the build of gpio modules.

Approved by: adrian (mentor)

10 years agoWe install the tool, so why not the man page?
Dag-Erling Smørgrav [Thu, 27 Feb 2014 13:05:56 +0000 (13:05 +0000)]
We install the tool, so why not the man page?

MFC after: 3 days

10 years agoClear the knote list before destroying it.
Hans Petter Selasky [Thu, 27 Feb 2014 12:11:43 +0000 (12:11 +0000)]
Clear the knote list before destroying it.
Add seldrain() to wakeup any pollers.

Submitted by: Kohji Okuno <okuno.kohji@jp.panasonic.com>
MFC after: 2 weeks

10 years agoPass proper pointer to bus_dmamem_free() in mps_iocfacts_free().
Alexander Motin [Thu, 27 Feb 2014 11:34:26 +0000 (11:34 +0000)]
Pass proper pointer to bus_dmamem_free() in mps_iocfacts_free().

Passing there pointer into the middle of allocated area caused kernel
panic during reinit, for example, after firmware upgrade.

MFC after: 1 week

10 years agoAdd driver for Inter-Integrated Circuit (I2C).
Ruslan Bukin [Thu, 27 Feb 2014 09:59:15 +0000 (09:59 +0000)]
Add driver for Inter-Integrated Circuit (I2C).

10 years agoAdd missing call to "knlist_destroy()".
Hans Petter Selasky [Thu, 27 Feb 2014 09:15:58 +0000 (09:15 +0000)]
Add missing call to "knlist_destroy()".

Found by: John-Mark Gurney <jmg@funkthat.com>
MFC after: 2 weeks

10 years agoAdd support for kqfilter to USB character devices.
Hans Petter Selasky [Thu, 27 Feb 2014 08:57:37 +0000 (08:57 +0000)]
Add support for kqfilter to USB character devices.

Submitted by: Kohji Okuno <okuno.kohji@jp.panasonic.com>
MFC after: 2 weeks

10 years agoDon't complain about missing prototypes to ease bootstrap issues.
Warner Losh [Thu, 27 Feb 2014 08:21:28 +0000 (08:21 +0000)]
Don't complain about missing prototypes to ease bootstrap issues.

10 years agoStyle(9) nit: Use tab here.
Warner Losh [Thu, 27 Feb 2014 08:19:19 +0000 (08:19 +0000)]
Style(9) nit: Use tab here.

10 years agoFix callchain capture for hwpmc(4). While here, some style(9) fixes, too.
Justin Hibbits [Thu, 27 Feb 2014 04:45:29 +0000 (04:45 +0000)]
Fix callchain capture for hwpmc(4).  While here, some style(9) fixes, too.

MFC after: 2 weeks

10 years agosyncer(4) is a kernel process, not a user process
Benjamin Kaduk [Thu, 27 Feb 2014 04:06:34 +0000 (04:06 +0000)]
syncer(4) is a kernel process, not a user process

Noticed by: Geoffrey Thomas <gthomas@mokafive.com>
Approved by: hrs (mentor)

10 years agoFix the struct reg mappings for i386 and amd64, which differ between illumos
Mark Johnston [Thu, 27 Feb 2014 01:24:47 +0000 (01:24 +0000)]
Fix the struct reg mappings for i386 and amd64, which differ between illumos
and FreeBSD.

Submitted by: Prashanth Kumar <pra_udupi@yahoo.co.in>
MFC after: 2 weeks

10 years agoMove some files that are identical on i386 and amd64 to an x86 subdirectory
Mark Johnston [Thu, 27 Feb 2014 01:04:35 +0000 (01:04 +0000)]
Move some files that are identical on i386 and amd64 to an x86 subdirectory
rather than keeping duplicate copies.

Discussed with: avg
MFC after: 1 week

10 years agoI had some unrelated (wrong) changes to makewhatis. Undo them.
Eitan Adler [Thu, 27 Feb 2014 00:52:34 +0000 (00:52 +0000)]
I had some unrelated (wrong) changes to makewhatis.  Undo them.

10 years agolinprocfs: add support for /sys/kernel/random/uuid
Eitan Adler [Thu, 27 Feb 2014 00:43:10 +0000 (00:43 +0000)]
linprocfs: add support for /sys/kernel/random/uuid

PR: kern/186187
Submitted by: Fernando <fernando.apesteguia@gmail.com>
MFC After: 2 weeks

10 years agoReplace many pasted identical definitions of cpu_initclocks() with a common
Ian Lepore [Wed, 26 Feb 2014 22:06:10 +0000 (22:06 +0000)]
Replace many pasted identical definitions of cpu_initclocks() with a common
implementation in arm/machdep.c.  Most arm platforms either don't need to
do anything, or just need to call the standard eventtimer init routines.
A generic implementation that does that is now provided via weak linkage.
Any platform that needs to do something different can provide a its own
implementation to override the generic one.

10 years agosh: Make expari() static.
Jilles Tjoelker [Wed, 26 Feb 2014 21:38:42 +0000 (21:38 +0000)]
sh: Make expari() static.

10 years agoDocument the "-a" and "-x" options to match the changes in r262236.
Neel Natu [Wed, 26 Feb 2014 19:14:54 +0000 (19:14 +0000)]
Document the "-a" and "-x" options to match the changes in r262236.

Reviewed by: grehan

10 years agoMinor tweaks to the imx GPT timer...
Ian Lepore [Wed, 26 Feb 2014 18:29:14 +0000 (18:29 +0000)]
Minor tweaks to the imx GPT timer...
 - Don't use spaces or dots in the eventtimer or timecounter names.
   They turn into sysctl node names, and it's just confusing.
 - Use comparator #3 instead of #1 for one-shot events.  There's an
   extra 1-cycle penalty in the hardware for accessing the registers
   for comparator 1, no point in paying that penalty.
 - Lower the quality of the eventtimer from 1000 to 800, because the
   device can't support PERCPU timers and some other device in the system
   may be able to provide that.

10 years agoMFV (r262529): fix is_upper() predicate
Dag-Erling Smørgrav [Wed, 26 Feb 2014 17:14:02 +0000 (17:14 +0000)]
MFV (r262529): fix is_upper() predicate

MFC after: 1 week

10 years agoMerge upstream r763: fix is_upper() predicate.
Dag-Erling Smørgrav [Wed, 26 Feb 2014 17:06:54 +0000 (17:06 +0000)]
Merge upstream r763: fix is_upper() predicate.

10 years agoUpdate LLDB snapshot to upstream r202189
Ed Maste [Wed, 26 Feb 2014 16:09:54 +0000 (16:09 +0000)]
Update LLDB snapshot to upstream r202189

Highlights include (upstream revs in parens):

- Improvements to the remote GDB protocol client
  (r196610, r197579, r197857, r200072, and others)

- Bug fixes for big-endian targets
  (r196808)

- Initial support for libdispatch (GCD) queues in the debuggee
  (r197190)

- Add "step-avoid-libraries" setting
  (r199943)

- IO subsystem improvements (including initial work on a curses gui)
  (r200263)

- Support hardware watchpoints on FreeBSD
  (r201706)

- Improved unwinding through hand-written assembly functions
  (r201839)

- Handle DW_TAG_unspecified_parameters for variadic functions
  (r202061)

- Fix Ctrl+C interrupting a running inferior process
  (r202086, r202154)

- Various bug fixes for memory leaks, LLDB segfaults, the C++ demangler,
  ELF core files, DWARF debug info, and others.

Sponsored by: DARPA, AFRL

10 years agoAdded a regression test for r234131.
Peter Holm [Wed, 26 Feb 2014 09:08:25 +0000 (09:08 +0000)]
Added a regression test for r234131.

Discussed with:  asomers
Sponsored by: EMC / Isilon storage division

10 years agoThere is no need to prevent iscsictl from adding iSER session when there
Edward Tomasz Napierala [Wed, 26 Feb 2014 09:06:57 +0000 (09:06 +0000)]
There is no need to prevent iscsictl from adding iSER session when there
is no iSER support in ctld and/or kernel; should the user make that mistake,
the output from "iscsictl -L" is enough to determine what the problem is.

Sponsored by: The FreeBSD Foundation

10 years agoChange the MK_ZFS != "no" case slightly to avoid a name
Peter Grehan [Wed, 26 Feb 2014 04:49:09 +0000 (04:49 +0000)]
Change the MK_ZFS != "no" case slightly to avoid a name
clash with LIBZFS in bsd.lib.mk

Submitted by: Max N Boyarov   zotrix at bsd dot by
OK'd by: sbruno

10 years agoFix make depend.
Li-Wen Hsu [Wed, 26 Feb 2014 03:26:00 +0000 (03:26 +0000)]
Fix make depend.

Approved by: uqs

10 years agoUpdate jemalloc to version 3.5.1.
Jason Evans [Wed, 26 Feb 2014 02:36:59 +0000 (02:36 +0000)]
Update jemalloc to version 3.5.1.

10 years agoAdd LED setup support for the AR8327.
Adrian Chadd [Wed, 26 Feb 2014 02:00:37 +0000 (02:00 +0000)]
Add LED setup support for the AR8327.

Tested:

* DB120

Obtained from: OpenWRT

10 years agoAdd in the SGMII configuration code. The DB120 doesn't use it, so I
Adrian Chadd [Wed, 26 Feb 2014 01:46:42 +0000 (01:46 +0000)]
Add in the SGMII configuration code.  The DB120 doesn't use it, so I
have no way to evaluate it.

Obtained from: OpenWRT

10 years agoAdd the DB120 specific hints for the AR8327.
Adrian Chadd [Wed, 26 Feb 2014 01:32:27 +0000 (01:32 +0000)]
Add the DB120 specific hints for the AR8327.

Tested:

* DB120

10 years agoUndo the DB120 hard-coded values in the AR8327 code and fetch it from
Adrian Chadd [Wed, 26 Feb 2014 01:32:06 +0000 (01:32 +0000)]
Undo the DB120 hard-coded values in the AR8327 code and fetch it from
the hints environment.

Tested:

* DB120

10 years agoUpdate release/release.conf.sample to reflect changes in r262509.
Glen Barber [Wed, 26 Feb 2014 01:19:52 +0000 (01:19 +0000)]
Update release/release.conf.sample to reflect changes in r262509.

MFC after: 1 week
X-MFC-With: r262509
Sponsored by: The FreeBSD Foundation

10 years agoRework how WORLD_FLAGS and KERNEL_FLAGS are set, to remove an
Glen Barber [Wed, 26 Feb 2014 01:06:41 +0000 (01:06 +0000)]
Rework how WORLD_FLAGS and KERNEL_FLAGS are set, to remove an
unnecessary expr(1) call.

Inspired by: hrs (a few months ago)
MFC after: 1 week
X-MFC-With: r262499, r262505
Sponsored by: The FreeBSD Foundation

10 years agoRevert r262466, as it does not compile on PowerPC.
Mark Johnston [Wed, 26 Feb 2014 01:00:00 +0000 (01:00 +0000)]
Revert r262466, as it does not compile on PowerPC.

Reported by: jhibbits

10 years agoChase r262505, and remove CVS exclusion from picobsd builds.
Glen Barber [Wed, 26 Feb 2014 00:54:59 +0000 (00:54 +0000)]
Chase r262505, and remove CVS exclusion from picobsd builds.

Sponsored by: The FreeBSD Foundation

10 years agoQueue pending exceptions in the 'struct vcpu' instead of directly updating the
Neel Natu [Wed, 26 Feb 2014 00:52:05 +0000 (00:52 +0000)]
Queue pending exceptions in the 'struct vcpu' instead of directly updating the
processor-specific VMCS or VMCB. The pending exception will be delivered right
before entering the guest.

The order of event injection into the guest is:
- hardware exception
- NMI
- maskable interrupt

In the Intel VT-x case, a pending NMI or interrupt will enable the interrupt
window-exiting and inject it as soon as possible after the hardware exception
is injected. Also since interrupts are inherently asynchronous, injecting
them after the hardware exception should not affect correctness from the
guest perspective.

Rename the unused ioctl VM_INJECT_EVENT to VM_INJECT_EXCEPTION and restrict
it to only deliver x86 hardware exceptions. This new ioctl is now used to
inject a protection fault when the guest accesses an unimplemented MSR.

Discussed with: grehan, jhb
Reviewed by: jhb

10 years agoIn release/Makefile, remove exclusion of CVS directories in the
Glen Barber [Wed, 26 Feb 2014 00:52:01 +0000 (00:52 +0000)]
In release/Makefile, remove exclusion of CVS directories in the
src/ and ports/ distributions.

While I am thinking about it, exclude .git directories for src/
and ports/, as somewhat of a followup to r262499.

Sponsored by: The FreeBSD Foundation

10 years agoFix comment introduced in r262480: it's 1920x1200, not 1980x1200.
Julio Merino [Tue, 25 Feb 2014 23:04:39 +0000 (23:04 +0000)]
Fix comment introduced in r262480: it's 1920x1200, not 1980x1200.

PR: kern/180558
MFC after: 5 days

10 years agoRefresh our implementation of OpenBSD's Blowfish password format.
Xin LI [Tue, 25 Feb 2014 23:03:48 +0000 (23:03 +0000)]
Refresh our implementation of OpenBSD's Blowfish password format.

Notable changes:

 - Support of $2b$ password format to address a problem where very
   long passwords (more than 256 characters, when an integer
   overflow would happen and cause the length to wrap at 256).
 - Updated pseudo code in comments to reflect the reality.
 - Removed our local shortcut of processing magic string and rely
   on the centralized and tigntened validation.
 - Diff reduction from upstream.

For now we are still generating the older $02a$ format of password
but we will migrate to the new format once the format is formally
finalized.

MFC after: 1 month

10 years agoUpdate LLDB snapshot to upstream r202189
Ed Maste [Tue, 25 Feb 2014 22:13:51 +0000 (22:13 +0000)]
Update LLDB snapshot to upstream r202189

Highlights include:

- Support hardware watchpoints on FreeBSD
  (r201706)

- Improved unwinding through hand-written assembly functions
  (r201839)

- Handle DW_TAG_unspecified_parameters for variadic functions
  (r202061)

- Fix Ctrl+C interrupting a running inferior process
  (r202086, r202154)

- Various bug fixes, including to the remote GDB protocol client

Sponsored by: DARPA, AFRL

10 years agorelease.sh:
Glen Barber [Tue, 25 Feb 2014 22:13:48 +0000 (22:13 +0000)]
release.sh:
- Add a VCSCMD variable that defaults to 'svn checkout',
  and update places 'svn co' is used directly.
- After sourcing a configuration file, prefix SRCBRANCH,
  PORTBRANCH, and DOCBRANCH with the SVNROOT.
- Properly capitalize 'FreeBSD.org' in the default SVNROOT.
- Update Copyright.

release.conf.sample:
- Add an example to use git instead of svn, by nullifying
  SVNROOT, and setting SRCBRANCH, DOCBRANCH, and PORTBRANCH
  to the URL fo a git repository.

release.7:
- Document VCSCMD.

Submitted by: Rick Miller (based on)
Sponsored by: The FreeBSD Foundation

10 years agoImport LLDB as of SVN r202189 (git 32871eb)
Ed Maste [Tue, 25 Feb 2014 21:42:16 +0000 (21:42 +0000)]
Import LLDB as of SVN r202189 (git 32871eb)

(A number of files not required for the FreeBSD build have been removed.)

Sponsored by: DARPA, AFRL

10 years agoSlightly better revision of teaching userboot how to respect MK_CDDL
Sean Bruno [Tue, 25 Feb 2014 21:07:18 +0000 (21:07 +0000)]
Slightly better revision of teaching userboot how to respect MK_CDDL

Reviewed by: grehan

10 years agoRough cleanup (new sentence -> new line, grammar, spelling, mdoc).
Christian Brueffer [Tue, 25 Feb 2014 21:01:55 +0000 (21:01 +0000)]
Rough cleanup (new sentence -> new line, grammar, spelling, mdoc).
This could use more work.

PR: 187035 (in part)
Submitted by: Bjorn Heidotting
MFC after: 1 week

10 years agoRemove more constants related to static sysctl nodes. The MAXID constants
John Baldwin [Tue, 25 Feb 2014 18:44:33 +0000 (18:44 +0000)]
Remove more constants related to static sysctl nodes.  The MAXID constants
were primarily used to size the sysctl name list macros that were removed
in r254295.  A few other constants either did not have an associated
sysctl node, or the associated node used OID_AUTO instead.

PR: ports/184525 (exp-run)

10 years agoArguments for malloc and calloc should be size_t, not int.
Kirk McKusick [Tue, 25 Feb 2014 18:25:27 +0000 (18:25 +0000)]
Arguments for malloc and calloc should be size_t, not int.
Use proper bounds check when trying to free cached memory.

Spotted by: Xin Li
Tested by:  Dmitry Sivachenko
MFC after:  2 weeks

10 years agoTeach userboot to comply with WITHOUT_CDDL/WITHOUT_ZFS
Sean Bruno [Tue, 25 Feb 2014 18:00:55 +0000 (18:00 +0000)]
Teach userboot to comply with WITHOUT_CDDL/WITHOUT_ZFS

Apparently, LIBZFS is set to a non-empty string when WITHOUT_CDDL/WITHOUT_ZFS
are set, I think this is a bug, but work around this feature for now.

Reviewed by: grehan

10 years agoIn puthdr(), start the ELF .data section on a new page, as this is
Christian Brueffer [Tue, 25 Feb 2014 17:13:42 +0000 (17:13 +0000)]
In puthdr(), start the ELF .data section on a new page, as this is
what btxldr expects (.set MEM_DATA,start+0x1000 in btxldr.S).

This makes resulting ELF binaries bootable with grub, gptboot and boot2.

PR: 153801
Submitted by: Gleb Kurtsou <gleb.kurtsou at gmail.com>
Tested by: Ruben Kerkhof <ruben at rubenkerkhof.com>
Glanced at by: jhb, peter
MFC after: 1 month

10 years ago- Pin configuration is a complete iomux register now and includes
Ruslan Bukin [Tue, 25 Feb 2014 17:02:11 +0000 (17:02 +0000)]
- Pin configuration is a complete iomux register now and includes
  drive strength, pull mode, mux mode, speed, etc.
- Add i2c devices to the tree
- Add IPG clock

10 years agoInvalidate the SCU cache tag ram on all 4 cores, not just 1-3. I misread
Ian Lepore [Tue, 25 Feb 2014 15:22:40 +0000 (15:22 +0000)]
Invalidate the SCU cache tag ram on all 4 cores, not just 1-3.  I misread
Juergen's original code, it was doing all 4 cores.  Also remove the L2
cache invalidate operation, this code runs before L2 is activated.

10 years agoIncrease maximum number of columns to support 1980x1200 displays.
Julio Merino [Tue, 25 Feb 2014 13:48:05 +0000 (13:48 +0000)]
Increase maximum number of columns to support 1980x1200 displays.

In my specific case, this fixes the problem of my PowerMac G5 displaying a
4:3 console on a 16:10 display with black bars on the left and right.

PR: kern/180558
Reviewed by: nwhitehorn
MFC after: 5 days

10 years agoDon't generate devd rules for WSP device ID's found in the ATP driver yet.
Hans Petter Selasky [Tue, 25 Feb 2014 09:34:30 +0000 (09:34 +0000)]
Don't generate devd rules for WSP device ID's found in the ATP driver yet.

MFC after: 2 weeks

10 years agoUpdates for WSP driver:
Hans Petter Selasky [Tue, 25 Feb 2014 08:37:06 +0000 (08:37 +0000)]
Updates for WSP driver:

1) Add support for page back/forward.
2) While doing HOR scrolling, disable VER scrolling.
3) Checking dx_sum and dy_sum before emulate right button, this can
avoids unexpected right button press.
4) Fix stable pointer operation when emulating middle button.

Submitted by: Huang Wen Hui <huanghwh@gmail.com>
MFC after: 2 weeks

10 years agoMake sure a for loop in fire_alloc_msix() terminates, by making the loop
Dimitry Andric [Tue, 25 Feb 2014 07:33:28 +0000 (07:33 +0000)]
Make sure a for loop in fire_alloc_msix() terminates, by making the loop
counter signed.

Reviewed by: marius
MFC after: 3 days

10 years agoIn sys/sparc64/sparc64/spitfire.c, prevent signed shift overflow by
Dimitry Andric [Tue, 25 Feb 2014 07:28:51 +0000 (07:28 +0000)]
In sys/sparc64/sparc64/spitfire.c, prevent signed shift overflow by
casting to the appropriate type.  (Note this fix cannot be done in
sys/sparc64/sparc64/spitfire.c, since that file is also included by
assembly source files.)

Reviewed by: marius
MFC after: 3 days

10 years agosh: Add -h option to SYNOPSIS
Daichi GOTO [Tue, 25 Feb 2014 03:05:43 +0000 (03:05 +0000)]
sh: Add -h option to SYNOPSIS

Reviewed by: jilles
MFC after: soon

10 years agoMake all 8 syscall arguments available to syscall probes in the same way
Mark Johnston [Tue, 25 Feb 2014 02:58:11 +0000 (02:58 +0000)]
Make all 8 syscall arguments available to syscall probes in the same way
that this is done for SDT probes. This fixes the syscall/tst.args.d test,
which was failing because mmap(2)'s sixth argument wasn't available to the
probe.

MFC after: 2 weeks

10 years agoAdd a flag to run's device list which uses a standard scsi eject.
Kevin Lo [Tue, 25 Feb 2014 01:42:02 +0000 (01:42 +0000)]
Add a flag to run's device list which uses a standard scsi eject.
The flag indicates that the mcu doesn't need to load firmware.

Tested by: Alex Deiter <alex dot deiter at gmail.com>, myself
Tested on: ASUS USB-N66

10 years agoWrap for loop in #if block testing the size is actually greater
Xin LI [Tue, 25 Feb 2014 01:11:05 +0000 (01:11 +0000)]
Wrap for loop in #if block testing the size is actually greater
than 0.  This silences gcc warning.

Reviewed by: sha256(1) with clang
X-MFC-With: r262447

10 years agoRevert 262462 and 262461, they didn't solve the problem, in
Xin LI [Tue, 25 Feb 2014 00:57:06 +0000 (00:57 +0000)]
Revert 262462 and 262461, they didn't solve the problem, in
fact I should actually waited the build to be finished before
committing.

A proper fix would be committed once my test build passes.

Pointy hat to: delphij

10 years agoPatch 2/2:
Xin LI [Mon, 24 Feb 2014 23:58:07 +0000 (23:58 +0000)]
Patch 2/2:

Reindent the code after previous change.

X-MFC-With: r262447

10 years agoPatch 1/2:
Xin LI [Mon, 24 Feb 2014 23:56:09 +0000 (23:56 +0000)]
Patch 1/2:

Pet gcc: enclose the for loop that currently do nothing with an if.

Reviewed by: sha256(1)
X-MFC-With: r262447

10 years agoAdd support for Quartz Module.
Ruslan Bukin [Mon, 24 Feb 2014 19:32:15 +0000 (19:32 +0000)]
Add support for Quartz Module.

Quartz is a tiny module utilized Freescale VF6xx
system-on-chip and development kit produced by
Device Solutions.

Quartz is available in a form of LGA (38x38x2mm)
or as a module with high-density connectors.

Sponsored by: Device Solutions

10 years agoUpdate ATP manual page.
Hans Petter Selasky [Mon, 24 Feb 2014 19:27:26 +0000 (19:27 +0000)]
Update ATP manual page.

Submitted by: Rohit Grover <rgrover1@gmail.com>
MFC after: 2 weeks

10 years agoFix compiler warning.
Hans Petter Selasky [Mon, 24 Feb 2014 19:19:35 +0000 (19:19 +0000)]
Fix compiler warning.

Reported by: David Wolfskill <david@catwhisker.org>
MFC after: 2 weeks

10 years agoBuild FICL support into little-endian 64-bit MIPS boot-loader fragments;
Robert Watson [Mon, 24 Feb 2014 18:44:22 +0000 (18:44 +0000)]
Build FICL support into little-endian 64-bit MIPS boot-loader fragments;
while this won't actually be used for anything (yet), it doesn't hurt to
ensure it is exposed to the tinderbox.

Requested by:   imp, jmallett
MFC after:      3 weeks

10 years agoBuild 64-bit ELF support into little-endian 64-bit MIPS boot-loader
Robert Watson [Mon, 24 Feb 2014 18:44:03 +0000 (18:44 +0000)]
Build 64-bit ELF support into little-endian 64-bit MIPS boot-loader
fragments; while this won't actually be used for anything (yet), it
doesn't hurt to ensure it is exposed to the tinderbox.

Requested by: imp, jmallett
MFC after: 3 weeks