freebsd-nq/sys/arm
Ian Lepore da6da1575b Adjust _ALIGNBYTES to the proper value for arm and armv6 arches. Modern
compilers can emit arm instructions that require 8-byte alignment.  The
alignment-sensitive instructions were added in armv5, which has to be
supported by our combined v4/v5 kernels, so the value is set uncoditionally
for all arm architecture versions.

Also adjust the comment to explain in more detail why the macros have the
form and values they do.

Per advice from bde@, maintain the unsignedness of the value of _ALIGNBYTES
(but do so using his second choice of allowing sizeof() to supply the
unsignedness, rather than just hardcoding '8U', which in my mind would
require an even more verbose comment to explain why it's right).  Also
explain in the comment that the resulting type of _ALIGN() is equivelent
to uinptr_t on arm (32-bit unsigned int), but it's purposely spelled as
"unsigned" to avoid problems with including other header files.  Even
including machine/_types.h to allow use of __uintptr_t causes compilation
failures because of this header being included (indirectly) in asm code.

The discussion that led to this change (albeit at a glacial pace) is at
https://lists.freebsd.org/pipermail/svn-src-head/2014-November/064593.html
2016-05-21 16:52:38 +00:00
..
allwinner Return the struct intr_pic pointer from intr_pic_register. This will be 2016-05-18 15:05:44 +00:00
altera/socfpga Move arm's devmap to some generic place, so it can be used 2016-04-26 11:53:37 +00:00
amlogic/aml8726 Use OF_prop_free instead of direct call to free(9) 2016-05-18 23:41:58 +00:00
annapurna/alpine Move arm's devmap to some generic place, so it can be used 2016-04-26 11:53:37 +00:00
arm Return the struct intr_pic pointer from intr_pic_register. This will be 2016-05-18 15:05:44 +00:00
at91 Use OF_prop_free instead of direct call to free(9) 2016-05-13 22:05:16 +00:00
broadcom/bcm2835 Return the struct intr_pic pointer from intr_pic_register. This will be 2016-05-18 15:05:44 +00:00
cavium/cns11xx sys/arm: Minor spelling fixes. 2016-05-04 15:48:59 +00:00
conf Add driver for "generic-ohci" as defined by FDT. 2016-05-17 17:46:12 +00:00
freescale Don't repeat the the word 'the' 2016-05-17 12:52:31 +00:00
include Adjust _ALIGNBYTES to the proper value for arm and armv6 arches. Modern 2016-05-21 16:52:38 +00:00
lpc Move arm's devmap to some generic place, so it can be used 2016-04-26 11:53:37 +00:00
mv Return the struct intr_pic pointer from intr_pic_register. This will be 2016-05-18 15:05:44 +00:00
nvidia Return the struct intr_pic pointer from intr_pic_register. This will be 2016-05-18 15:05:44 +00:00
qemu While gem5 is not qemu, we treat it as "simulators" or "virtual environments". 2016-05-04 16:24:12 +00:00
rockchip Move arm's devmap to some generic place, so it can be used 2016-04-26 11:53:37 +00:00
samsung/exynos sys/arm: Minor spelling fixes. 2016-05-04 15:48:59 +00:00
ti Return the struct intr_pic pointer from intr_pic_register. This will be 2016-05-18 15:05:44 +00:00
versatile Move arm's devmap to some generic place, so it can be used 2016-04-26 11:53:37 +00:00
xilinx sys/arm: Minor spelling fixes. 2016-05-04 15:48:59 +00:00
xscale sys/arm: Minor spelling fixes. 2016-05-04 15:48:59 +00:00