opnsense-src/sys/arm
Alex Richardson 9bb8a4091c Reduce code duplication in machine/_types.h
Many of these typedefs are the same across all architectures or can
be set based on an architecture-independent compiler-provided macro
(e.g. __SIZEOF_SIZE_T__). These macros have been available since GCC 4.6
and Clang sometime before 3.0 (godbolt.org does not have any older clang
versions installed).

I originally considered using the compiler-provided `__FOO_TYPE__` directly.
However, in order to do so we have to check that those match the previous
typedef exactly (not just that they have the same size) since any change
would be an ABI break. For example, changing `long` to `long long` results
in different C++ name mangling. Additionally, Clang and GCC disagree on
the underlying type for some of (u)int*_fast_t types, so this change
only moves the definitions that are identical across all architectures
and does not touch those types.

This de-deduplication will allow us to have a smaller diff downstream in
CheriBSD: we only have to only change the (u)intptr_t definition in
sys/_types.h in CheriBSD instead of having to change machine/_types.h for
all CHERI-enabled architectures (currently RISC-V, AArch64 and MIPS).

Reviewed By: imp, kib
Differential Revision: https://reviews.freebsd.org/D29895
2021-06-14 16:30:16 +01:00
..
allwinner arm64: allwinner: Add i2s and codec support 2021-06-11 21:06:08 +02:00
altera/socfpga arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
annapurna/alpine Remove versatile support 2021-04-12 06:16:31 +00:00
arm Add more GIC and GICv3 registers 2021-06-14 14:53:11 +00:00
broadcom/bcm2835 rpi_ft5406: Recognize raspberrypi,firmware-ts touchscreen 2021-05-09 12:13:19 +02: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 arm: SOCFPGA: Add ext_resources driver 2021-05-31 19:08:08 +02:00
freescale arm: Add no-cftconvert for sdma-imx6 files 2021-04-14 15:43:37 +02:00
include Reduce code duplication in machine/_types.h 2021-06-14 16:30:16 +01:00
linux linux(4): Regen for futex system call. 2021-06-10 14:16:40 +03:00
mv mvebu_gpio: Fix settings of gpio pin direction. 2021-03-07 11:41:30 +01:00
nvidia Rename ofwpci.c to ofw_pcib.c 2021-05-20 11:22:25 +02: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 arm: TI am335x ehrpwm fix bitmask 2021-06-14 10:38:06 +02:00
xilinx arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00