opnsense-src/sys/powerpc/include
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
..
_align.h
_bus.h
_inttypes.h
_limits.h
_stdint.h
_types.h Reduce code duplication in machine/_types.h 2021-06-14 16:30:16 +01:00
altivec.h
asm.h
atomic.h [PowerPC] Fix ISA_206 subword atomics 2021-03-30 20:23:04 -05:00
bat.h
bus.h
bus_dma.h Rename struct device to struct _device 2021-04-12 09:32:30 -04:00
clock.h
counter.h
cpu.h powerpc/powermac: Constrain 'cpu_sleep()' for AIM to mpc745x 2021-03-31 13:34:06 -05:00
cpufunc.h [PowerPC] Floating-point exception trap followup 2020-12-13 03:58:43 +00:00
db_machdep.h
dbdma.h
dump.h
efi.h
elf.h
endian.h Consolidate machine/endian.h definitions 2021-03-26 19:00:22 -03:00
exec.h
float.h
floatingpoint.h
fpu.h
frame.h
gdb_machdep.h gdb: report specific stop reason for watchpoints 2021-03-30 11:36:41 -03:00
hid.h
ieee.h
ieeefp.h
ifunc.h
in_cksum.h
intr_machdep.h
kdb.h Introduce kdb-level watchpoint functions 2021-03-29 12:05:43 -03:00
limits.h
machdep.h
md_var.h
memdev.h
metadata.h
minidump.h
mmuvar.h
ofw_machdep.h
openpicreg.h
openpicvar.h
param.h
pcb.h
pcpu.h Remove PCPU_INC 2021-03-20 19:23:59 -07:00
pcpu_aux.h
pio.h
platform.h
platformvar.h
pmap.h
pmc_mdep.h
proc.h
procctl.h
profile.h
psl.h
pte.h
ptrace.h
reg.h
reloc.h
resource.h
rtas.h
runq.h
sc_machdep.h
setjmp.h
sigframe.h
signal.h
slb.h
smp.h
spr.h Wrap the default SPE config in its own #define 2021-05-29 21:53:26 -05:00
sr.h
stack.h
stdarg.h
sysarch.h
tlb.h
trap.h
ucontext.h
vdso.h
vm.h Create VM_MEMATTR_DEVICE on all architectures 2021-04-12 06:15:31 +00:00
vmparam.h