freebsd-dev/sys/arm/include
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
..
_align.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
_bus.h Regularize my copyright notice 2019-12-04 16:56:11 +00:00
_inttypes.h
_limits.h
_stdint.h
_types.h
acle-compat.h
armreg.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
asm.h arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
asmacros.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
atags.h Regularize my copyright notice 2019-12-04 16:56:11 +00:00
atomic-v6.h arm: fix atomic_testand{set,clear}_64 for ops on high bits 2021-01-02 18:09:37 -08:00
atomic.h Remove now unused armv4 and not-INTRNG files. 2020-11-28 15:00:08 +00:00
blockio.h
bus_dma.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
bus.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
clock.h
counter.h Centralize __pcpu definitions. 2019-08-29 07:25:27 +00:00
cpu-v6.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
cpu.h Remove now unused armv4 and not-INTRNG files. 2020-11-28 15:00:08 +00:00
cpufunc.h Remove unused functions and variables in cpufunc.[ch]. 2020-12-14 14:00:54 +00:00
cpuinfo.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
db_machdep.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
debug_monitor.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
disassem.h
dump.h
efi.h
elf.h arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
endian.h Consolidate machine/endian.h definitions 2021-03-26 19:00:22 -03:00
exec.h
fdt.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
fiq.h
float.h
floatingpoint.h
frame.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
gdb_machdep.h arm: Let the GDB stub write to SP, LR and GP registers 2020-12-07 15:09:28 +00:00
ieee.h
ieeefp.h
in_cksum.h
intr.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
kdb.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
limits.h
machdep.h Remove unused functions and variables in cpufunc.[ch]. 2020-12-14 14:00:54 +00:00
md_var.h Remove remaining fragments of code for older already ceased ARM versions. 2020-11-29 15:24:00 +00:00
memdev.h Add the MEM_EXTRACT_PADDR ioctl to /dev/mem. 2020-09-02 18:12:47 +00:00
metadata.h
minidump.h Sparsify the vm_page_dump bitmap 2020-09-21 22:21:59 +00:00
ofw_machdep.h
param.h Simplify MACHINE_ARCH to be a single string. 2020-06-15 18:57:43 +00:00
pcb.h arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
pcpu_aux.h Centralize __pcpu definitions. 2019-08-29 07:25:27 +00:00
pcpu.h Remove PCPU_INC 2021-03-20 19:23:59 -07:00
pl310.h arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
platform.h
platformvar.h Use named field's initializer when constructing <foo>_platform structure. 2019-03-19 14:32:54 +00:00
pmap_var.h
pmap-v6.h Add support for pmap_enter(..., psind=1) to the armv6 pmap. In other words, 2018-08-08 16:55:01 +00:00
pmap.h Remove now unused armv4 and not-INTRNG files. 2020-11-28 15:00:08 +00:00
pmc_mdep.h PMC: remove now orphaned PMC for INTEL XScale processors. 2020-12-25 15:21:53 +01:00
proc.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
procctl.h amd64 KPTI: add control from procctl(2). 2019-03-16 11:44:33 +00:00
profile.h arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
psl.h
pte-v6.h
ptrace.h arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
reg.h
reloc.h
resource.h
runq.h
sc_machdep.h
setjmp.h
sf_buf.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
sigframe.h
signal.h
smp.h Only support INTRNG in the SMP code on arm. We already require INTRNG on 2018-07-28 07:54:21 +00:00
stack.h Rewrite arm kernel stack unwind code to work when unwinding through modules. 2019-12-15 21:16:35 +00:00
stdarg.h
swi.h arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
sysarch.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
sysreg.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
trap.h
ucontext.h
undefined.h arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
utrap.h
vdso.h
vfp.h arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
vm.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
vmparam.h arm: revert MAXDSIZ change from 202aea9c82 2021-01-09 14:14:00 -06:00