freebsd-skq/sys/arm
kib d33fdaeb7e Centralize __pcpu definitions.
Many extern struct pcpu <something>__pcpu declarations were
copied/pasted in sources.  The issue is that the definition is MD, but
it cannot be provided by machine/pcpu.h due to actual struct pcpu
defined in sys/pcpu.h later than the inclusion of machine/pcpu.h.
This forced the copying when other code needed direct access to
__pcpu.  There is no way around it, due to machine/pcpu.h supplying
part of struct pcpu fields.

To work around the problem, add a new machine/pcpu_aux.h header, which
should fill any needed MD definitions after struct pcpu definition is
completed. This allows to remove copies of __pcpu spread around the
source.  Also on x86 it makes it possible to remove work arounds like
OFFSETOF_CURTHREAD or clang specific warnings supressions.

Reported and tested by:	lwhsu, bcran
Reviewed by:	imp, markj (previous version)
Discussed with:	jhb
Sponsored by:	The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D21418
2019-08-29 07:25:27 +00:00
..
allwinner arm: allwinner: Set aw_ccu to BUS_PASS_BUS 2019-08-15 18:57:48 +00:00
altera/socfpga arm: Add kern_clocksource.c directly in files.arm 2019-04-16 20:04:22 +00:00
amlogic/aml8726 Implement missing MMCBR ivars 2019-07-04 14:15:04 +00:00
annapurna/alpine arm: Add kern_clocksource.c directly in files.arm 2019-04-16 20:04:22 +00:00
arm Centralize __pcpu definitions. 2019-08-29 07:25:27 +00:00
broadcom/bcm2835 A bit of code hygiene (no functional changes). 2019-06-10 23:25:40 +00:00
cloudabi32 Remove sv_pagesize, originally introduced with r100384. 2019-03-01 16:16:38 +00:00
conf Fix bogusly declared WERRORs in kernel build 2019-08-25 19:39:31 +00:00
freescale Remove NAND and NANDFS support 2019-06-25 04:50:09 +00:00
include Centralize __pcpu definitions. 2019-08-29 07:25:27 +00:00
mv arm64: a37x0_gpio: Use syscon instead of MMIO region 2019-08-19 14:28:54 +00:00
nvidia Replace uses of vm_page_unwire(m, PQ_NONE) with vm_page_unwire_noq(m). 2019-06-07 18:23:29 +00:00
qemu arm: Add kern_clocksource.c directly in files.arm 2019-04-16 20:04:22 +00:00
ralink Remove support for kernel.tramp and kernel.tramp.gz 2019-07-27 17:24:19 +00:00
rockchip Include eventhandler.h in more compilation units 2019-05-21 01:18:43 +00:00
samsung/exynos arm: Add kern_clocksource.c directly in files.arm 2019-04-16 20:04:22 +00:00
ti ti: sdhci: Correct voltage caps 2019-08-19 14:33:22 +00:00
versatile Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
xilinx arm: Add kern_clocksource.c directly in files.arm 2019-04-16 20:04:22 +00:00