Fix the following -Werror warning from clang 3.5.0, while building the
ath kernel module:

sys/dev/ath/ath_hal/ar5212/ar5212_reset.c:2642:7: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                if (abs(lp[0] * EEP_SCALE - target) < EEP_DELTA) {
                    ^
sys/dev/ath/ah_osdep.h:74:18: note: expanded from macro 'abs'
#define abs(_a)         __builtin_abs(_a)
                        ^
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c:2642:7: note: remove the call to '__builtin_abs' since unsigned values cannot be negative
sys/dev/ath/ah_osdep.h:74:18: note: expanded from macro 'abs'
#define abs(_a)         __builtin_abs(_a)
                        ^
1 error generated.

This warning occurs because both lp[0] and target are unsigned, so the
subtraction expression is also unsigned, and calling abs() is a no-op.

However, the intention was to look at the absolute difference between
the two unsigned quantities.  Introduce a small static function to
clarify what we're doing, and call that instead.

Reviewed by:	adrian
MFC after:	3 days
Differential Revision: https://reviews.freebsd.org/D1212
\n at end of panicstr is redundant.

Submitted by:	alc
Consider the negation operator (!) to be a word even if it is not followed
by whitespace.  This allows "optional !foo" which is what most programmers
are naturally going to tend to do as opposed to "optional ! foo".
Merge branch 'hardened/current/refactor' into hardened/current/master

* hardened/current/refactor: (26 commits)
  HBSD: refactor ptrace hardening, reorder the functions
  HBSD: make the code easier to read
  HBSD: drop unused SI_SUB_PTRACE_HARDENING
  HBSD: drop never used argument from ptrace_hardening
  HBSD: fix some nits in aslr
  HBSD: remove unneeded sys/ptrace_hardening.h header
  HBSD: allow to specify wheel group, as allowed group
  HBSD: paxify ptrace hardening - part 2
  HBSD: make PTRACE_HARDENING_GRP compile time configurable
  HBSD: paxify ptrace hardening
  HBSD: remove unused variable and bogous extern
  HBSD: fix build, corrected typo log
  HBSD: delete defined but unused ptrace_hardening_mode(...) function and related things
  HBSD: paxify ptrace - log
  HBSD LOG: add ; to the end of the template lines
  HBSD PTRACE: whitespace fixes
  HBSD PTRACE: cleanup headers
  HBSD: fix fatal error in ptrace hardening
  HBSD: refactor opt_ptrace_hardening.h -> opt_pax.h
  HBSD: refactor: kern/kern_ptrace_hardening.c -> hardenedbsd/hbsd_ptrace_hardening.c
  ...

Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
Misc mdoc fixes:

- Remove superfluous paragraph macros.
- Remove/fix empty or incorrect macros.
- Sort sections into conventional order.
- Terminate quoted strings properly.
- Remove EOL whitespace.
Merge branch 'hardened/current/refactor' into hardened/current/master
Squelch a (bogus) used before init warning when building with gcc.
HBSD: bump __HardenedBSD_version after the refactor

Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
Fix an error (case on a .Nm) preventing mandoc from rendering the manpage
Fix mandoc warnings: extrat space at end of lines
Correct the functions declaration.
Regenerate the manpage in mdoc(7) format using pod2mdoc

Now mandoc can render the manpage properly
Install mdoc(7) and man(7) from mdoc instead of the one from groff
Merge remote-tracking branch 'freebsd/master' into hardened/current/master
Change the lower bound for guest vmspace allocation to 0 instead of
using the VM_MIN_ADDRESS constant.

HardenedBSD redefines VM_MIN_ADDRESS to be 64K, which results in
bhyve VM startup failing. Guest memory is always assumed to start
at 0 so use the absolute value instead.

Reported by:	Shawn Webb, lattera at gmail com
Reviewed by:	neel, grehan
Obtained from:	Oliver Pinter via HardenedBSD
https://github.com/HardenedBSD/hardenedBSD/commit/23bd719ce1e3a8cc42fc8317b1c7c6d9e74dcba0
MFC after:	1 week
Workaround help2man defficiency that prevents mandoc from rendering
Ta is only allowed with Bl -column not in Bl -item
Fix rendering with mandoc
Fix rendering with mandoc
Fix the negation (!) operator so that it binds only to the word that
immediately follows it, which means 'not' has to be reset every time an
option word or device name is processed.
Add ARMV6 as an arm option.  This will cause obscure magic in config(8)
to automatically set the armv6 option when MACHINE_ARCH is armv6.  That
allows replacing ever-growing lists of cpu names as options to compile
a given file with the using either "optional armv6" or "optional !armv6".