- Fix the setup of interrupts for banks 2 and 3 on AM335x.

    On AM335x each one of the four GPIO banks has two physical interrupt
    lines, so we now allocate resources and setup our interrupt handler for
    all the (8) available interrupts.

    On OMAP3 and OMAP4 there is only one interrupt for each GPIO bank (6
    banks, 6 interrupts), but there are two set of registers where the
    first one is used to setup the delivery of interrupts to the MPU and
    the second set, setup the delivery of interrupts to the DSP.

    On AM335x, each set of registers controls each one of the interrupt
    lines.

- Remove nonexistent registers for OMAP4 and AM335x, replace their use with
  the correct ones for these SoCs.

- Remove stray whitespace.

Based on OMAP3, OMAP4 and AM335x TRMs.

Tested on Beaglebone-black.
The proper way to request no man pages currently is NO_MAN=xxx. Use it
in preference to the user WITHOUT_MAN knob, which should never be set
in normal src Makefiles.
Convert from WITHOUT_SYSCALL_COMPAT to MK_SYSCALL_COMPAT.
use MK_KERBEROS=no in preference to WITHOUT_KERBEROS
Use MK_CRYPT=no in preference to WITHOUT_CRYPT here.
Document upcoming build option WITH_SORT_THREADS
Convert sort to using newer MK_ convention.
Remove code under PMAP_CACHE_VIVT that is not compiled anymore.

This is for ARMv4/ARMv5 and it doesn't belong in ARMv6 code.

Reviewed by:	ian
The getlogin_basic() function can return a 0 status with a NULL
pointer for the login name (result). Make sure to handle that
case properly. Improve robustness by checking namelen and then
nul-terminating the provided buffer to simplify subsequent logic.

Obtained from:	Juniper Networks, Inc.
MFC after:	1 week