freebsd-dev/sys/mips
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
..
atheros [ar71xx] During reset, don't spin, just keep trying 2021-05-22 15:53:00 -07:00
beri Avoid dump_avail[] redefinition. 2020-10-14 22:51:40 +00:00
broadcom [mips/broadcom] set sysctl "hw.model" by SoC ChipCommon ID 2021-05-28 23:35:37 +03:00
cavium Fix octeon_pmc post-r334827 2020-11-18 17:37:01 +00:00
conf sys/*/conf/*, docs: fix links to handbook 2021-05-20 09:27:10 +01:00
include Reduce code duplication in machine/_types.h 2021-06-14 16:30:16 +01:00
ingenic Fix some common typos in comments 2021-03-13 18:26:15 +01:00
malta mips: fix build w/ TICK_USE_MALTA_RTC defined 2020-12-25 19:47:45 +01:00
mediatek mtk: Add printing of CPU model 2021-06-11 14:28:54 -06:00
mips ddb: replace watchpoint set/clear functions 2021-03-29 12:05:44 -03:00
nlm crypto: Add a new type of crypto buffer for a single mbuf. 2021-05-25 16:59:18 -07:00