opnsense-src/sys/arm
Mitchell Horne 720dc6bcb5 Consolidate machine/endian.h definitions
This change serves two purposes.

First, we take advantage of the compiler provided endian definitions to
eliminate some long-standing duplication between the different versions
of this header. __BYTE_ORDER__ has been defined since GCC 4.6, so there
is no need to rely on platform defaults or e.g. __MIPSEB__ to determine
endianness. A new common sub-header is added, but there should be no
changes to the visibility of these definitions.

Second, this eliminates the hand-rolled __bswapNN() routines, again in
favor of the compiler builtins. This was done already for x86 in
e6ff6154d2. The benefit here is that we no longer have to maintain our
own implementations on each arch, and can instead rely on the compiler
to emit appropriate instructions or libcalls, as available. This should
result in equivalent or better code generation. Notably 32-bit arm will
start using the `rev` instruction for these routines, which is available
on armv6+.

PR:		236920
Reviewed by:	arichardson, imp
Tested by:	bdragon (BE powerpc)
MFC after:	3 weeks
Differential Revision:	https://reviews.freebsd.org/D29012
2021-03-26 19:00:22 -03:00
..
allwinner arm: arm64: Directly use #include <dt-binding/...> 2021-01-15 14:17:03 +01:00
altera/socfpga arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
annapurna/alpine Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
arm Remove __XSCALE__ checks from the arm code 2021-02-19 15:31:26 +00:00
broadcom/bcm2835 arm64: Add support for bcm2838 RNG 2021-03-06 12:28:35 +01:00
cloudabi32 Get rid of sa->narg. It serves no purpose; use sa->callp->sy_narg instead. 2020-09-27 18:47:06 +00:00
conf Split out the NODEBUG options to a common file 2021-01-14 16:57:53 +00:00
freescale Add basic support for Freescale LX2160A SoC. 2020-12-05 12:08:37 +00:00
include Consolidate machine/endian.h definitions 2021-03-26 19:00:22 -03:00
linux Regen after r366145. 2020-09-25 10:05:38 +00:00
mv mvebu_gpio: Fix settings of gpio pin direction. 2021-03-07 11:41:30 +01:00
nvidia arm: arm64: Directly use #include <dt-binding/...> 2021-01-15 14:17:03 +01:00
qemu arm: Add kern_clocksource.c directly in files.arm 2019-04-16 20:04:22 +00:00
rockchip Add support for RK3288 SoC. 2020-12-04 16:24:44 +00:00
ti Revert "Define PNP info after defining driver modules" 2021-01-23 10:59:41 -05:00
versatile Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
xilinx arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00