]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoMerge ^/head r274961 through r276346.
dim [Sun, 28 Dec 2014 21:13:55 +0000 (21:13 +0000)]
Merge ^/head r274961 through r276346.

9 years agoMerge ^/head r274961 through r276342.
dim [Sun, 28 Dec 2014 20:02:06 +0000 (20:02 +0000)]
Merge ^/head r274961 through r276342.

9 years agoFix the following -Werror warning from clang 3.5.0, while building
dim [Sun, 28 Dec 2014 19:55:44 +0000 (19:55 +0000)]
Fix the following -Werror warning from clang 3.5.0, while building
rtld-elf for powerpc 32 bit:

libexec/rtld-elf/powerpc/reloc.c:486:6: error: taking the absolute value of unsigned type 'Elf_Addr' (aka 'unsigned int') has no effect [-Werror,-Wabsolute-value]
        if (abs(offset) < 32*1024*1024) {     /* inside 32MB? */
            ^
libexec/rtld-elf/powerpc/reloc.c:486:6: note: remove the call to 'abs' since unsigned values cannot be negative
        if (abs(offset) < 32*1024*1024) {     /* inside 32MB? */
            ^~~
1 error generated.

Cast 'offset' to int, since that was intended, and should be safe to do
on architectures with 32-bit two's complement ints.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D1387

9 years agosysctl: don't modify oid_running for static nodes
mjg [Sun, 28 Dec 2014 19:24:01 +0000 (19:24 +0000)]
sysctl: don't modify oid_running for static nodes

It is necessary to prevent nodes from being destroyed while used, but static
ones cannot be destroyed.

9 years agoFix a "decl is not a prototype" error noticed by gcc (but not clang).
ian [Sun, 28 Dec 2014 19:05:32 +0000 (19:05 +0000)]
Fix a "decl is not a prototype" error noticed by gcc (but not clang).

9 years agoAdd cache maintenance functions which will be used by startup code to
ian [Sun, 28 Dec 2014 18:38:25 +0000 (18:38 +0000)]
Add cache maintenance functions which will be used by startup code to
initially set up the MMU.  Some day they may also be useful as part of
suspend/resume handling, when we get better at power management.

Submitted by: Svatopluk Kraus <onwahe@gmail.com>,
              Michal Meloun <meloun@miracle.cz

9 years agoEliminate an unused macro whose name clashes now with a function in the
ian [Sun, 28 Dec 2014 18:26:15 +0000 (18:26 +0000)]
Eliminate an unused macro whose name clashes now with a function in the
new cpu-v6.h.  This should have been part of r276334.

9 years agoAdd new TLB and cache maintainence functions for armv6 and armv7. These
ian [Sun, 28 Dec 2014 18:19:05 +0000 (18:19 +0000)]
Add new TLB and cache maintainence functions for armv6 and armv7.  These
are inline functions that handle all the routine maintenance operations
except the flush-all and invalidate-all routines which are required only
during early kernel init.

These inline functions should be very much faster than the old mechanism
that involved jumping through the big cpufuncs table, especially for
common operations such as invalidating a single TLB entry.  Note that
nothing is calling these yet, this just is just required infrastructure
for upcoming changes to the pmap-v6 code.

9 years agoAdd new code to read and parse cpu identification data using the new CPUID
ian [Sun, 28 Dec 2014 18:12:56 +0000 (18:12 +0000)]
Add new code to read and parse cpu identification data using the new CPUID
mechanism defined for armv7 (and also present on some armv6 chips including
the arm1176 used on rpi).  The information is parsed into a global cpuinfo
structure, which will be used by (upcoming) new cache and tlb maintenance
code to handle cpu-specific variations of the maintence sequences.

Submitted by: Svatopluk Kraus <onwahe@gmail.com>,
              Michal Meloun <meloun@miracle.cz

9 years agoAdd ncurses to _LIBRARIES so that libmenu is correctly linked
antoine [Sun, 28 Dec 2014 15:38:50 +0000 (15:38 +0000)]
Add ncurses to _LIBRARIES so that libmenu is correctly linked

PR: ports/195782

9 years agoAdd PowerPC64 function descriptor support for dt_link.c
jhibbits [Sun, 28 Dec 2014 06:41:13 +0000 (06:41 +0000)]
Add PowerPC64 function descriptor support for dt_link.c

Summary:
PowerPC64 uses function descriptors in a section .opd, exporting the descriptors
to the symbol table.  This adds support for these into dt_link.c so that dtrace
USDT probes can be compiled.

Test Plan:
Tested only on powerpc64.  No regression testing has been performed, so I want
someone with x86 hardware to regression test this.

Tested on amd64 by markj

Reviewers: #dtrace, markj

Reviewed By: #dtrace, markj

Subscribers: markj

Differential Revision: https://reviews.freebsd.org/D1267

MFC after: 3 weeks

9 years agoAdd llvm patches corresponding to r276300, r276301 and r276324.
dim [Sun, 28 Dec 2014 02:33:13 +0000 (02:33 +0000)]
Add llvm patches corresponding to r276300, r276301 and r276324.

9 years agoPull in r224890 from upstream llvm trunk (by David Majnemer):
dim [Sun, 28 Dec 2014 02:30:03 +0000 (02:30 +0000)]
Pull in r224890 from upstream llvm trunk (by David Majnemer):

  PowerPC: CTR shouldn't fire if a TLS call is in the loop

  Determining the address of a TLS variable results in a function call in
  certain TLS models.  This means that a simple ICmpInst might actually
  result in invalidating the CTR register.

  In such cases, do not attempt to rely on the CTR register for loop
  optimization purposes.

  This fixes PR22034.

  Differential Revision: http://reviews.llvm.org/D6786

This fixes a "Invalid PPC CTR loop" error when compiling parts of libc
for PowerPC-32.

9 years agoImplement "special mask mode" in vatpic.
neel [Sun, 28 Dec 2014 00:53:52 +0000 (00:53 +0000)]
Implement "special mask mode" in vatpic.

OpenBSD guests always enable "special mask mode" during boot. As a result of
r275952 this is flagged as an error and the guest cannot boot.

Reviewed by: grehan
Differential Revision: https://reviews.freebsd.org/D1384
MFC after: 1 week

9 years agoChange the way the lcall $7,$0 is reflected to usermode. Instead of
kib [Sat, 27 Dec 2014 23:19:08 +0000 (23:19 +0000)]
Change the way the lcall $7,$0 is reflected to usermode.  Instead of
setting call gate, which must be 64 bit, put a code segment descriptor
into ldt slot 0.

This way, syscall shim does not switch temporary to 64bit trampoline,
and does not create a window where signal delivery interrupts 64 bit
mode (signal handler cannot return).  The cost is shim running with
non-zero based segment in %cs, which requires vfork() handling make
more assumptions.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoImprove/fix interrupt allocation/setup/release:
marius [Sat, 27 Dec 2014 21:50:47 +0000 (21:50 +0000)]
Improve/fix interrupt allocation/setup/release:
- Simplify MSI allocation to what is actually needed for a single one.
- Release the MSI and the corresponding bus resource as appropriate when
  either the interrupt resource cannot be allocated or setting up the
  interrupt fails.
- Error out when interrupt allocation or setup fails and polling is
  disabled.
- Release the MSI after the corresponding bus resource so the former is
  not leaked on detach.
- Remove a redundant softc member.

MFC after: 3 days

9 years agoParallelize building lib/ncurses
ngie [Sat, 27 Dec 2014 21:11:42 +0000 (21:11 +0000)]
Parallelize building lib/ncurses

MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D1353

9 years agoFix the function signatures when MK_CRYPT == no for snmp_get_local_keys and
ngie [Sat, 27 Dec 2014 20:58:01 +0000 (20:58 +0000)]
Fix the function signatures when MK_CRYPT == no for snmp_get_local_keys and
snmp_passwd_to_keys

MFC after: 1 week
Reported by: Beeblebrox <zaphod@berentweb.com>

9 years agoBuild/install lib/libc/tests/hash/t_sha2 if MK_OPENSSL == yes
ngie [Sat, 27 Dec 2014 20:48:36 +0000 (20:48 +0000)]
Build/install lib/libc/tests/hash/t_sha2 if MK_OPENSSL == yes

Reported by: Beeblebrox <zaphod@berentweb.com>

9 years agoAdd LIBADD to PROG_VARS, similar to DPADD/LDADD
ngie [Sat, 27 Dec 2014 20:33:04 +0000 (20:33 +0000)]
Add LIBADD to PROG_VARS, similar to DPADD/LDADD

9 years agoRemove unnecessary code and, instead, use the provided iicbus_null_callback
loos [Sat, 27 Dec 2014 20:06:16 +0000 (20:06 +0000)]
Remove unnecessary code and, instead, use the provided iicbus_null_callback
callback.

9 years agoFix a off-by-one bug.
loos [Sat, 27 Dec 2014 19:56:04 +0000 (19:56 +0000)]
Fix a off-by-one bug.

Pointy hat to: loos

9 years agoConvert the BSC (i2c) driver to use the new iicbus_get_frequency().
loos [Sat, 27 Dec 2014 18:54:39 +0000 (18:54 +0000)]
Convert the BSC (i2c) driver to use the new iicbus_get_frequency().

Tested on: Raspberry pi

9 years agoConst'ify a firmware image missed in r251142.
marius [Sat, 27 Dec 2014 18:24:15 +0000 (18:24 +0000)]
Const'ify a firmware image missed in r251142.

MFC after: 3 days

9 years agoBump .Dd for change done in r275908
ngie [Sat, 27 Dec 2014 17:13:09 +0000 (17:13 +0000)]
Bump .Dd for change done in r275908

9 years agoUse the same 6000 series g2{a,b} firmware versions when embedding these
marius [Sat, 27 Dec 2014 17:10:35 +0000 (17:10 +0000)]
Use the same 6000 series g2{a,b} firmware versions when embedding these
images into the kernel as currently included into iwn6000g2{a,b}fw.ko
and delete the old files, missed in r254199 and r259135 respectively.

MFC after: 3 days

9 years agoUse the proper markup for single quotes.
ian [Sat, 27 Dec 2014 17:02:09 +0000 (17:02 +0000)]
Use the proper markup for single quotes.

9 years agoSubmitted by: rick Maclem
julian [Sat, 27 Dec 2014 15:17:59 +0000 (15:17 +0000)]
Submitted by: rick Maclem
MFC after: 1 week

9 years agoRemoves unused and duplicate headers.
loos [Sat, 27 Dec 2014 15:13:25 +0000 (15:13 +0000)]
Removes unused and duplicate headers.

Bring the wait limit on mailbox write to a more sane value.

Fix a off-by-one bug on wait time limit.

Remove extra blank line.

9 years agoMerge ^/head r274961 through r276301.
dim [Sat, 27 Dec 2014 14:58:52 +0000 (14:58 +0000)]
Merge ^/head r274961 through r276301.

9 years agoPull in r221703 from upstream llvm trunk (by Bill Schmidt):
dim [Sat, 27 Dec 2014 14:50:53 +0000 (14:50 +0000)]
Pull in r221703 from upstream llvm trunk (by Bill Schmidt):

  [PowerPC] Replace foul hackery with real calls to __tls_get_addr

  My original support for the general dynamic and local dynamic TLS
  models contained some fairly obtuse hacks to generate calls to
  __tls_get_addr when lowering a TargetGlobalAddress.  Rather than
  generating real calls, special GET_TLS_ADDR nodes were used to wrap
  the calls and only reveal them at assembly time.  I attempted to
  provide correct parameter and return values by chaining CopyToReg and
  CopyFromReg nodes onto the GET_TLS_ADDR nodes, but this was also not
  fully correct.  Problems were seen with two back-to-back stores to TLS
  variables, where the call sequences ended up overlapping with unhappy
  results.  Additionally, since these weren't real calls, the proper
  register side effects of a call were not recorded, so clobbered values
  were kept live across the calls.

  The proper thing to do is to lower these into calls in the first
  place.  This is relatively straightforward; see the changes to
  PPCTargetLowering::LowerGlobalTLSAddress() in PPCISelLowering.cpp.
  The changes here are standard call lowering, except that we need to
  track the fact that these calls will require a relocation.  This is
  done by adding a machine operand flag of MO_TLSLD or MO_TLSGD to the
  TargetGlobalAddress operand that appears earlier in the sequence.

  The calls to LowerCallTo() eventually find their way to
  LowerCall_64SVR4() or LowerCall_32SVR4(), which call FinishCall(),
  which calls PrepareCall().  In PrepareCall(), we detect the calls to
  __tls_get_addr and immediately snag the TargetGlobalTLSAddress with
  the annotated relocation information.  This becomes an extra operand
  on the call following the callee, which is expected for nodes of type
  tlscall.  We change the call opcode to CALL_TLS for this case.  Back
  in FinishCall(), we change it again to CALL_NOP_TLS for 64-bit only,
  since we require a TOC-restore nop following the call for the 64-bit
  ABIs.

  During selection, patterns in PPCInstrInfo.td and PPCInstr64Bit.td
  convert the CALL_TLS nodes into BL_TLS nodes, and convert the
  CALL_NOP_TLS nodes into BL8_NOP_TLS nodes.  This replaces the code
  removed from PPCAsmPrinter.cpp, as the BL_TLS or BL8_NOP_TLS
  nodes can now be emitted normally using their patterns and the
  associated printTLSCall print method.

  Finally, as a result of these changes, all references to get-tls-addr
  in its various guises are no longer used, so they have been removed.

  There are existing TLS tests to verify the changes haven't messed
  anything up).  I've added one new test that verifies that the problem
  with the original code has been fixed.

This fixes a fatal "Bad machine code" error when compiling parts of
libgomp for 32-bit PowerPC.

9 years agoPull in r213890 from upstream llvm trunk (by Jörg Sonnenberger):
dim [Sat, 27 Dec 2014 14:38:15 +0000 (14:38 +0000)]
Pull in r213890 from upstream llvm trunk (by Jörg Sonnenberger):

  Use the same .eh_frame encoding for 32bit PPC as on i386.

This fixes DT_TEXTREL errors when linking C++ objects using exceptions
on PowerPC.

9 years ago- Make PCI_QUIRK_MSI_INTX_BUG work by using the ID of the actual PCI device
marius [Sat, 27 Dec 2014 14:26:18 +0000 (14:26 +0000)]
- Make PCI_QUIRK_MSI_INTX_BUG work by using the ID of the actual PCI device
  for the lookup.
- For devices affected by PCI_QUIRK_MSI_INTX_BUG, ensure PCIM_CMD_INTxDIS
  is cleared when using MSI/MSI-X.
- Employ PCI_QUIRK_MSI_INTX_BUG for BCM5714(S)/BCM5715(S)/BCM5780(S) rather
  than clearing PCIM_CMD_INTxDIS unconditionally for all devices in bge(4).

MFC after: 3 days

9 years agoRemove the '#undef DEBUG' that should not be committed.
loos [Sat, 27 Dec 2014 14:06:05 +0000 (14:06 +0000)]
Remove the '#undef DEBUG' that should not be committed.

9 years agoOn interrupt handler, save the actual data read from mbox. The previous
loos [Sat, 27 Dec 2014 13:52:33 +0000 (13:52 +0000)]
On interrupt handler, save the actual data read from mbox.  The previous
macro wasn't needed and was being used with swapped arguments which always
give the same result (0) defeating the overflow check.

On initialization, do not use bcm_mbox_intr() to read the pending messages,
with the new semaphore based implementation this will lead to semaphore
being incremented on the channels that contain pending data and will make
the first read for that channel return stale data.

This fixes the hang that happens on boot while initializing the cpufreq on
Raspberry Pi.

9 years agoMake consistent use of the correct debug macros across the file.
loos [Sat, 27 Dec 2014 13:17:27 +0000 (13:17 +0000)]
Make consistent use of the correct debug macros across the file.

9 years agoCorrect a typo.
schweikh [Sat, 27 Dec 2014 10:28:20 +0000 (10:28 +0000)]
Correct a typo.

9 years agomdoc: improvements to SEE ALSO.
joel [Sat, 27 Dec 2014 08:31:52 +0000 (08:31 +0000)]
mdoc: improvements to SEE ALSO.

9 years agomdoc: improvements to SEE ALSO.
joel [Sat, 27 Dec 2014 08:22:58 +0000 (08:22 +0000)]
mdoc: improvements to SEE ALSO.

9 years agomdoc: improvements to SEE ALSO.
joel [Sat, 27 Dec 2014 07:07:37 +0000 (07:07 +0000)]
mdoc: improvements to SEE ALSO.

9 years agoSupport ALT_BREAK_TO_DEBUGGER in vt(4)
emaste [Sat, 27 Dec 2014 04:21:24 +0000 (04:21 +0000)]
Support ALT_BREAK_TO_DEBUGGER in vt(4)

Submitted by: Andre Albsmeier on -hackers

9 years agoOutput strerror from xo_warn
alfred [Sat, 27 Dec 2014 01:06:19 +0000 (01:06 +0000)]
Output strerror from xo_warn

Reported by: bapt
Reviewed by: bapt, ngie

Differential Revision: https://reviews.freebsd.org/D1378

9 years agoSort SEE ALSO
bapt [Fri, 26 Dec 2014 22:44:27 +0000 (22:44 +0000)]
Sort SEE ALSO

9 years agosort SEE ALSO
bapt [Fri, 26 Dec 2014 22:43:54 +0000 (22:43 +0000)]
sort SEE ALSO

9 years agosort SEE ALSO
bapt [Fri, 26 Dec 2014 22:41:10 +0000 (22:41 +0000)]
sort SEE ALSO

9 years agoEscape Do to prevent mdoc(7) parser to get confused with the "Do" macro
bapt [Fri, 26 Dec 2014 22:34:15 +0000 (22:34 +0000)]
Escape Do to prevent mdoc(7) parser to get confused with the "Do" macro

Reported by: sjg

9 years agoSort SEE ALSO
bapt [Fri, 26 Dec 2014 22:30:18 +0000 (22:30 +0000)]
Sort SEE ALSO

9 years agomdoc: sort SEE ALSO.
joel [Fri, 26 Dec 2014 21:56:23 +0000 (21:56 +0000)]
mdoc: sort SEE ALSO.

9 years agomdoc fix
bapt [Fri, 26 Dec 2014 21:45:01 +0000 (21:45 +0000)]
mdoc fix

9 years agoEscape Ed to prevent mandoc to avoid confusion with the mdoc's Ed macros
bapt [Fri, 26 Dec 2014 21:11:33 +0000 (21:11 +0000)]
Escape Ed to prevent mandoc to avoid confusion with the mdoc's Ed macros

9 years agomdoc fixes (escape the dot to prevent ... to be considered as a macro)
bapt [Fri, 26 Dec 2014 21:03:56 +0000 (21:03 +0000)]
mdoc fixes (escape the dot to prevent ... to be considered as a macro)

9 years agomdoc fixes
bapt [Fri, 26 Dec 2014 20:57:10 +0000 (20:57 +0000)]
mdoc fixes

9 years agomdoc fixes
bapt [Fri, 26 Dec 2014 20:50:40 +0000 (20:50 +0000)]
mdoc fixes

9 years agomdoc fixes
bapt [Fri, 26 Dec 2014 20:49:23 +0000 (20:49 +0000)]
mdoc fixes

9 years agoDOF tables are aligned according to the DOF section's alignment constraint,
markj [Fri, 26 Dec 2014 18:53:29 +0000 (18:53 +0000)]
DOF tables are aligned according to the DOF section's alignment constraint,
so take this into account when iterating over DOF tables.

PR: 195555
Submitted by: Fedor Indutny <fedor@indutny.com> (original version)
MFC after: 1 week

9 years agoFix the musb initialization sequence on AM335x.
loos [Fri, 26 Dec 2014 17:45:49 +0000 (17:45 +0000)]
Fix the musb initialization sequence on AM335x.

According to http://e2e.ti.com/support/arm/sitara_arm/f/791/t/210729 the
USB reset pulse has an undocumented duration of 200ns and during this
period the module must not be acessed.

We wait for 100us to take into account for some imprecision of the early
DELAY() loop.

This fixes the eventual 'External Non-Linefetch Abort (S)' that happens at
boot while resetting the musb subsystem.

While here, enable the USB subsystem clock before the first access.

Discussed with:  ian, adrian
MFC after: 2 weeks

9 years agoInclude acle-compat.h directly (we use its symbols) rather than getting
ian [Fri, 26 Dec 2014 14:29:27 +0000 (14:29 +0000)]
Include acle-compat.h directly (we use its symbols) rather than getting
it via sysreg.h.

9 years agoSquelch a (bogus) gcc use-before-init warning.
ian [Fri, 26 Dec 2014 13:44:41 +0000 (13:44 +0000)]
Squelch a (bogus) gcc use-before-init warning.

9 years agoAdd more USB devices.
hselasky [Fri, 26 Dec 2014 10:57:39 +0000 (10:57 +0000)]
Add more USB devices.

MFC after: 1 day
Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>

9 years agoAdd more quirks.
hselasky [Fri, 26 Dec 2014 10:53:22 +0000 (10:53 +0000)]
Add more quirks.

PR: 180617
MFC after: 1 day

9 years agoAdd proper Makefiles to build some infiniband example utilities.
hselasky [Fri, 26 Dec 2014 10:25:34 +0000 (10:25 +0000)]
Add proper Makefiles to build some infiniband example utilities.

MFC after: 1 week
Sponsored by: Mellanox Technologies

9 years agoMinor mdoc fixes.
joel [Fri, 26 Dec 2014 09:35:23 +0000 (09:35 +0000)]
Minor mdoc fixes.

9 years agoMinor Xr fix.
joel [Fri, 26 Dec 2014 09:18:33 +0000 (09:18 +0000)]
Minor Xr fix.

9 years agoRemove unknown macro
bapt [Fri, 26 Dec 2014 07:36:42 +0000 (07:36 +0000)]
Remove unknown macro

9 years agoFix .TH having too many arguments
bapt [Fri, 26 Dec 2014 07:34:42 +0000 (07:34 +0000)]
Fix .TH having too many arguments

9 years agoBackport fix for binutils 11867: .quad directive not assembled correctly
pfg [Fri, 26 Dec 2014 04:33:53 +0000 (04:33 +0000)]
Backport fix for binutils 11867: .quad directive not assembled correctly

Alan Modra (and Alan's employer) graciously permitted use of his patch
under GPLv2.

Obtained from: OpenBSD
MFC after: 5 days

9 years agogas: use memmove instead of bogus memcpy.
pfg [Fri, 26 Dec 2014 03:03:41 +0000 (03:03 +0000)]
gas: use memmove instead of bogus memcpy.

partial_where points into the buffer that begins with buffer_start
so we need to use memmove() to handle the overlap.
Sourceware-PR 11456.

Obtained from: OpenBSD (CVS rev. 1.2)
MFC after: 3 days

9 years agoMention cc_cdg.
kevlo [Fri, 26 Dec 2014 01:48:44 +0000 (01:48 +0000)]
Mention cc_cdg.

9 years agoEnhancements to zpool upgrade processing
smh [Fri, 26 Dec 2014 01:12:02 +0000 (01:12 +0000)]
Enhancements to zpool upgrade processing

Introduce a seperate phase to list all unavailable pools when listing
pools to upgrade. This avoids confusing output when displaying older
and disabled feature pools. These existing phases now silently skip
unavailable pools.

Introduce cb_unavail to upgrade_cbdata_t which enables the final
output for zpool list to correctly detail if all pools or only all
available pools where up-to-date on version / features.

Correct the type of upgrade_cbdata_t.cb_first from int -> boolean_t.

Change the pool iteration when upgrading named pools to include
unavailable pools and update upgrade_one so it doesn't try to upgrade
unavailable pools but warns about them. This allows the correct error
to be displayed as well as upgrades with available and unavailable
pools intermixed to partially complete.

Also correct some missing trailing \n's from output in upgrade_one.

MFC after: 1 month
X-MFC-With: r276194

9 years agoAdd llvm patches corresponding to r276211 and r276223.
dim [Fri, 26 Dec 2014 00:10:08 +0000 (00:10 +0000)]
Add llvm patches corresponding to r276211 and r276223.

9 years agoLet's see if we can fix the NOINET if_gif(4) module build after r276215
bz [Fri, 26 Dec 2014 00:01:00 +0000 (00:01 +0000)]
Let's see if we can fix the NOINET if_gif(4) module build after r276215
going by example.

9 years agoPull in r224415 from upstream llvm trunk (by Justin Hibbits):
dim [Thu, 25 Dec 2014 23:57:31 +0000 (23:57 +0000)]
Pull in r224415 from upstream llvm trunk (by Justin Hibbits):

  Add parsing of 'foo@local".

  Summary:
  Currently, it supports generating, but not parsing, this expression.
  Test added as well.

  Test Plan: New test added, no regressions due to this.

  Reviewers: hfinkel

  Reviewed By: hfinkel

  Subscribers: llvm-commits

  Differential Revision: http://reviews.llvm.org/D6672

Pull in r224494 from upstream llvm trunk (by Justin Hibbits):

  Add a corresponding '@LOCAL' parse to match r224415.

  Pointed out by Jim Grosbach.

9 years agoAmend r276211 for the new PowerPC relocation types that were added
dim [Thu, 25 Dec 2014 23:54:57 +0000 (23:54 +0000)]
Amend r276211 for the new PowerPC relocation types that were added
there.  (Upstream is now using a generated file for this, so there is no
direct upstream commit associated with this change.)

9 years agoDelete some duplicate code that was harmless because
rmacklem [Thu, 25 Dec 2014 22:29:37 +0000 (22:29 +0000)]
Delete some duplicate code that was harmless because
exactly the same code is at the end of the nfscl_checksattr()
function that is called just before it. As such, this code
had already been executed and didn't do anything.

MFC after: 1 week

9 years agomandoc -Tlocale is now the default, no need to enforce it anymore
bapt [Thu, 25 Dec 2014 22:04:16 +0000 (22:04 +0000)]
mandoc -Tlocale is now the default, no need to enforce it anymore

9 years agoUpdate mandoc to 1.13.2
bapt [Thu, 25 Dec 2014 21:56:56 +0000 (21:56 +0000)]
Update mandoc to 1.13.2

9 years agopatch: Bring in xstrdup and use it when appropriate.
pfg [Thu, 25 Dec 2014 21:51:28 +0000 (21:51 +0000)]
patch: Bring in xstrdup and use it when appropriate.

The function savestr allows NULL return values during Plan A patching so in
case of out of memory conditions, Plan B can step in.  In many cases, NULL
value is not properly handled, so use xstrdup here (it's outside Plan A/B
patching, which means that even Plan B relies on successful operations).

Clean up some whitespaces while here

Obtained from: OpenBSD
MFC after: 2 weeks

9 years agoImport mandoc 1.13.2
bapt [Thu, 25 Dec 2014 21:33:25 +0000 (21:33 +0000)]
Import mandoc 1.13.2

9 years agoExtern declarations in C files loses compile-time checking that
ae [Thu, 25 Dec 2014 21:32:37 +0000 (21:32 +0000)]
Extern declarations in C files loses compile-time checking that
the functions' calls match their definitions. Move them to header files.

Reviewed by: jilles (previous version)

9 years agoDeorbit the IEEE-488/GPIB support.
phk [Thu, 25 Dec 2014 20:15:13 +0000 (20:15 +0000)]
Deorbit the IEEE-488/GPIB support.

9 years agoDefine only the CP15 register operations that are valid for the architecture.
ian [Thu, 25 Dec 2014 19:22:02 +0000 (19:22 +0000)]
Define only the CP15 register operations that are valid for the architecture.

Submitted by: Svatopluk Kraus <onwahe@gmail.com>,
              Michal Meloun <meloun@miracle.cz

9 years agoAdd macros for asm barrier instructions with arch-specific implementations.
ian [Thu, 25 Dec 2014 19:08:39 +0000 (19:08 +0000)]
Add macros for asm barrier instructions with arch-specific implementations.

9 years agoPull in r214284 from upstream llvm trunk (by Hal Finkel):
dim [Thu, 25 Dec 2014 18:22:22 +0000 (18:22 +0000)]
Pull in r214284 from upstream llvm trunk (by Hal Finkel):

  [PowerPC] Add JMP_SLOT relocation definitions

  This will be required by upcoming patches for LLDB support.

  Patch by Justin Hibbits!

Pull in r221510 from upstream llvm trunk (by Justin Hibbits):

  Add Position-independent Code model Module API.

  Summary:
  This makes PIC levels a Module flag attribute, which can be queried by the
  backend.  The flag is named `PIC Level`, and can have a value of:

    0 - Backend-default
    1 - Small-model (-fpic)
    2 - Large-model (-fPIC)

  These match the `-pic-level' command line argument for clang, and the value of the
  preprocessor macro `__PIC__'.

  Test Plan:
  New flags tests specific for the 'PIC Level' module flag.
  Tests to be added as part of a future commit for PowerPC, which will use this new API.

  Reviewers: rafael, echristo

  Reviewed By: rafael, echristo

  Subscribers: rafael, llvm-commits

  Differential Revision: http://reviews.llvm.org/D5882

Pull in r221791 from upstream llvm trunk (by Justin Hibbits):

  Add support for small-model PIC for PowerPC.

  Summary:
  Large-model was added first.  With the addition of support for multiple PIC
  models in LLVM, now add small-model PIC for 32-bit PowerPC, SysV4 ABI.  This
  generates more optimal code, for shared libraries with less than about 16380
  data objects.

  Test Plan: Test cases added or updated

  Reviewers: joerg, hfinkel

  Reviewed By: hfinkel

  Subscribers: jholewinski, mcrosier, emaste, llvm-commits

  Differential Revision: http://reviews.llvm.org/D5399

Together, these changes implement small-model PIC support for PowerPC.

Thanks to Justin Hibbits and Roman Divacky for their assistance in
getting this working.

9 years agoCreate the PKG_DIR if it is missing
phk [Thu, 25 Dec 2014 17:54:22 +0000 (17:54 +0000)]
Create the PKG_DIR if it is missing

9 years agoFix OLD_LIBS for libxo moved to /lib
alfred [Thu, 25 Dec 2014 17:53:43 +0000 (17:53 +0000)]
Fix OLD_LIBS for libxo moved to /lib

Pointed out by: kib

9 years agoUse compiled in default keymaps which are available both in syscons and vt.
phk [Thu, 25 Dec 2014 17:50:04 +0000 (17:50 +0000)]
Use compiled in default keymaps which are available both in syscons and vt.

9 years agoAdd interrupt support for GPIO pins on OMAP4 and AM335x.
loos [Thu, 25 Dec 2014 17:28:26 +0000 (17:28 +0000)]
Add interrupt support for GPIO pins on OMAP4 and AM335x.

This enables the use of GPIO pins as interrupt sources for kernel devices
directly attached to gpiobus (userland notification will be added soon).

The use of gpio interrupts for other kernel devices will be possible when
intrng is complete.

All GPIO pins can be set to trigger on:

- active-low;
- active-high;
- rising edge;
- falling edge.

Tested on: Beaglebone-black

9 years agoFor data and instruction prefetch aborts, call the same handler in the C
ian [Thu, 25 Dec 2014 17:06:58 +0000 (17:06 +0000)]
For data and instruction prefetch aborts, call the same handler in the C
code, passing a 0/1 flag that indicates which type of abort it was.  This
sets the stage for unifying the handling of page faults in a single routine.

Submitted by: Svatopluk Kraus <onwahe@gmail.com>,
      Michal Meloun <meloun@miracle.cz

9 years agoRemove doubled patch, which snuck in with the last merge from head.
dim [Thu, 25 Dec 2014 16:58:48 +0000 (16:58 +0000)]
Remove doubled patch, which snuck in with the last merge from head.

9 years agoCreate 'L' variants of all the ENTRY macros for file-static/local symbols.
ian [Thu, 25 Dec 2014 16:49:33 +0000 (16:49 +0000)]
Create 'L' variants of all the ENTRY macros for file-static/local symbols.

If it seems like this is getting out of hand, I quite agree.  I wonder if
it's safe, here in the 21st century, to lose the distinction between C and
ASM symbols?

9 years agoFix the GLOBAL macro so it works (upper vs lowercase X), use it in _EENTRY.
ian [Thu, 25 Dec 2014 16:43:15 +0000 (16:43 +0000)]
Fix the GLOBAL macro so it works (upper vs lowercase X), use it in _EENTRY.

9 years agoStylish changes... put tabs where they need to be in macros, move lines
ian [Thu, 25 Dec 2014 16:36:02 +0000 (16:36 +0000)]
Stylish changes... put tabs where they need to be in macros, move lines
around so that related things are more grouped together, rewrite comments.

No functional changes, this is all so that the functional changes in the
next commit will stand out.

9 years agoReplace CC_VAR with CCV, since the CC_VAR macro doesn't exist.
kevlo [Thu, 25 Dec 2014 15:17:57 +0000 (15:17 +0000)]
Replace CC_VAR with CCV, since the CC_VAR macro doesn't exist.
While here, add MLINK for CCV.9 and DECLARE_CC_MODULE.9.

9 years agoFix the comment introduced in r276192 so that it clearly
rmacklem [Thu, 25 Dec 2014 14:44:04 +0000 (14:44 +0000)]
Fix the comment introduced in r276192 so that it clearly
states that the change is needed to avoid a deadlock.

Suggested by: kib
MFC after: 1 week

9 years agoFix VIMAGE build.
ae [Thu, 25 Dec 2014 13:38:51 +0000 (13:38 +0000)]
Fix VIMAGE build.

9 years agoRemove _PROF_PROLOGUE from the EENTRY() macros. These macros define
ian [Thu, 25 Dec 2014 04:41:43 +0000 (04:41 +0000)]
Remove _PROF_PROLOGUE from the EENTRY() macros.  These macros define
'extra' entry points which are nested within or provide a synonym name
for another function.  It's most likely not safe to be messing with the
IP and LR registers at anything other than the primary entry point to a
function.  Anywhere beyond initial function entry, those registers may
be in use as scratch or variable registers.

9 years agoOops, I fumbled a semicolon on the style changes; recover it.
ian [Thu, 25 Dec 2014 04:18:31 +0000 (04:18 +0000)]
Oops, I fumbled a semicolon on the style changes; recover it.

9 years agoChange the style of the DO_AST macro to match the others in this file --
ian [Thu, 25 Dec 2014 03:41:56 +0000 (03:41 +0000)]
Change the style of the DO_AST macro to match the others in this file --
semicolons between the code and comments instead of after the comments,
and line continuations in the arbitrary but now consistant column 76.

No functional changes.

9 years agoMove libxo to /lib
alfred [Thu, 25 Dec 2014 03:15:56 +0000 (03:15 +0000)]
Move libxo to /lib

Update ObsoleteFiles to reflect libxo move.

Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D1370

9 years agoPrevent zpool upgrade failing due to unavailable pools
smh [Thu, 25 Dec 2014 02:17:17 +0000 (02:17 +0000)]
Prevent zpool upgrade failing due to unavailable pools

Prior to this fix "zpool upgrade" and "zpool upgrade -a" would fail due to
an assert when operating on unavailable pools.

We now print a warning to stderr but allow the processing of other pools
to procesed.

MFC after: 1 month