]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoBump __FreeBSD_version after import of ncurses 5.9.
delphij [Fri, 28 Feb 2014 23:52:12 +0000 (23:52 +0000)]
Bump __FreeBSD_version after import of ncurses 5.9.

10 years agoMFV r262617: ncurses 5.9.
delphij [Fri, 28 Feb 2014 23:48:13 +0000 (23:48 +0000)]
MFV r262617: ncurses 5.9.

10 years agoAdd a script which lists SVN log entries only for changesets
rodrigc [Fri, 28 Feb 2014 23:12:20 +0000 (23:12 +0000)]
Add a script which lists SVN log entries only for changesets
which have files which have been Added or Removed.

This can help identify changesets which should be
mentioned in Release Engineering's release notes.

10 years agoFix syntax errors (missing ;) that bsdl dtc was tolerant of, but gpl
imp [Fri, 28 Feb 2014 22:37:40 +0000 (22:37 +0000)]
Fix syntax errors (missing ;) that bsdl dtc was tolerant of, but gpl
dtc isn't.

10 years agoUse proper include path for dtc as well as cpp.
imp [Fri, 28 Feb 2014 22:37:35 +0000 (22:37 +0000)]
Use proper include path for dtc as well as cpp.

10 years agoOnly try to build the static dtb when we're building a static dtb...
imp [Fri, 28 Feb 2014 22:06:19 +0000 (22:06 +0000)]
Only try to build the static dtb when we're building a static dtb...

10 years agoCorrect VMware capitalization.
jhb [Fri, 28 Feb 2014 21:33:40 +0000 (21:33 +0000)]
Correct VMware capitalization.

Submitted by: joeld

10 years agoext2fs: use of tab vs spaces.
pfg [Fri, 28 Feb 2014 21:25:32 +0000 (21:25 +0000)]
ext2fs: use of tab vs spaces.

Consistently use a single tab after a #define as mentioned in style(9).
Use tabs instead of space for indenting.
Fix a typo: "hash_vesion".

No functional change.

MFC after: 3 days

10 years agosince -F is safe, and an update from 10-HEAD to 10-STABLE is sooo bloody
jmg [Fri, 28 Feb 2014 19:51:47 +0000 (19:51 +0000)]
since -F is safe, and an update from 10-HEAD to 10-STABLE is sooo bloody
anoying w/o it..  recommend people use -F too...

10 years agoWhitespace fix.
jhb [Fri, 28 Feb 2014 19:21:07 +0000 (19:21 +0000)]
Whitespace fix.

10 years agoRedo import of ncurses 5.9 (stripped).
delphij [Fri, 28 Feb 2014 19:18:07 +0000 (19:18 +0000)]
Redo import of ncurses 5.9 (stripped).

10 years agoUndo two previous imports which was never done in preparation of doing a
delphij [Fri, 28 Feb 2014 19:12:44 +0000 (19:12 +0000)]
Undo two previous imports which was never done in preparation of doing a
new import.

10 years agoWorkaround an apparent bug in VMWare Fusion's nested VT support where it
jhb [Fri, 28 Feb 2014 19:07:55 +0000 (19:07 +0000)]
Workaround an apparent bug in VMWare Fusion's nested VT support where it
triggers a VM exit with the exit reason of an external interrupt but
without a valid interrupt set in the exit interrupt information.

Tested by: Michael Dexter
Reviewed by: neel
MFC after: 1 week

10 years agoIntegrate device-tree upstream files into the build process:
imp [Fri, 28 Feb 2014 18:29:09 +0000 (18:29 +0000)]
Integrate device-tree upstream files into the build process:
(1) Invoke cpp to bring in files via #include (although the old
    /include/ stuff is supported still).
(2) bring in files from either vendor tree or freebsd-custom files
    when building.
(3) move all dts* files from sys/boot/fdt/dts to
    sys/boot/fdt/dts/${MACHINE} as appropriate.
(4) encode all the magic to do the build in sys/tools/fdt/make_dtb.sh
    so that the different places in the tree use the exact same logic.
(5) switch back to gpl dtc by default. the bsdl one in the tree has
    significant issues not easily addressed by those unfamiliar with
    the code.

10 years agoMerge the projects/clang-sparc64 branch back to head. This brings in
dim [Fri, 28 Feb 2014 18:06:00 +0000 (18:06 +0000)]
Merge the projects/clang-sparc64 branch back to head.  This brings in
several updates from the llvm and clang trunks to make the sparc64
backend fully functional.

Apart from one patch to sys/sparc64/include/pcpu.h which is still under
discussion, this makes it possible to let clang fully build world and
kernel for sparc64.

Any assistance with testing this on actual sparc64 hardware is greatly
appreciated, as there will unavoidably be bugs left.

Many thanks go to Roman Divacky for his upstream work on getting the
sparc64 backend into shape.

MFC after: 1 month

10 years agoMerge from head up to r262611.
dim [Fri, 28 Feb 2014 17:46:56 +0000 (17:46 +0000)]
Merge from head up to r262611.

10 years agoPull in r196874 from upstream llvm trunk:
dim [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...
imp [Fri, 28 Feb 2014 16:51:33 +0000 (16:51 +0000)]
Symbolic bindings for the dts files...

10 years agoAdd missing skeleton file.
imp [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.
imp [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
imp [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.
imp [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.
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
imp [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
imp [Fri, 28 Feb 2014 03:00:28 +0000 (03:00 +0000)]
tcb device for fdt

10 years agoshdwc device for fdt
imp [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
imp [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
imp [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
markj [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
markj [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
imp [Fri, 28 Feb 2014 01:33:03 +0000 (01:33 +0000)]
Correct initial import script

10 years agoInitial import of DTS files from Linux
imp [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.
imp [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 [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 [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 [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 [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 agoPull in r202422 from upstream llvm trunk (by Roman Divacky):
dim [Thu, 27 Feb 2014 23:17:00 +0000 (23:17 +0000)]
Pull in r202422 from upstream llvm trunk (by Roman Divacky):

  Lower FNEG just like FABS to fneg[ds] and fmov[ds], thus avoiding
  expensive libcall. Also, Qp_neg is not implemented on at least
  FreeBSD. This is also what gcc is doing.

10 years agoInitialize the Low Power Mode bits to keep the ARM cores running during WFI.
ian [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:
delphij [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.
mav [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.
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 agoMove to dist, per layout standards
imp [Thu, 27 Feb 2014 21:46:31 +0000 (21:46 +0000)]
Move to dist, per layout standards

10 years agoGet rid of the 'chan' from softc structure and use the latter
delphij [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.
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()
delphij [Thu, 27 Feb 2014 20:00:26 +0000 (20:00 +0000)]
4626 libzfs memleak in zpool_in_use()

illumos/illumos-gate@fb13f48f1d9593453b94cd1c7277553b56f493c8

10 years agoDo not setup interrupt handler (polling is used).
br [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 [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.
loos [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.
loos [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.
loos [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?
des [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.
hselasky [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().
mav [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).
br [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()".
hselasky [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.
hselasky [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.
imp [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.
imp [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.
jhibbits [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
bjk [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
markj [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
markj [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.
eadler [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
eadler [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 agoMerge from head up to r262536.
dim [Wed, 26 Feb 2014 22:26:40 +0000 (22:26 +0000)]
Merge from head up to r262536.

10 years agoPull in r202179 from upstream clang trunk:
dim [Wed, 26 Feb 2014 22:21:01 +0000 (22:21 +0000)]
Pull in r202179 from upstream clang trunk:

  Pass the sparc architecture variant to the assembler.

10 years agoPull in r202177 from upstream clang trunk (by Roman Divacky):
dim [Wed, 26 Feb 2014 22:18:33 +0000 (22:18 +0000)]
Pull in r202177 from upstream clang trunk (by Roman Divacky):

  Give sparcv9 the ability to set the target cpu. Change it from
  accepting -march which doesnt exist on sparc gcc to -mcpu. While here
  adjust a few tests to not write an unused temporary file.

10 years agoReplace many pasted identical definitions of cpu_initclocks() with a common
ian [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 [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 [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 [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
des [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.
des [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
emaste [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.
pho [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
trasz [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
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.
lwhsu [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.
jasone [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 [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 [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 [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 [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.
gjb [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
gjb [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.
markj [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.
gjb [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 [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
gjb [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.
jmmv [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.
delphij [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
emaste [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:
gjb [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 agoSlightly better revision of teaching userboot how to respect MK_CDDL
sbruno [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).
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
jhb [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.
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
sbruno [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
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