freebsd-nq/sys/powerpc
Konstantin Belousov a2a0f90654 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
..
aim Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
booke Revert a part of r350883 that should never have gone in 2019-08-27 14:04:32 +00:00
conf Fix bogusly declared WERRORs in kernel build 2019-08-25 19:39:31 +00:00
cpufreq powerpc: Fix cpufreq statement scoping 2019-03-08 03:59:53 +00:00
fpu powerpc: Apply r178139 from sparc64 to powerpc's fpu_sqrt 2019-04-03 03:54:30 +00:00
include Centralize __pcpu definitions. 2019-08-29 07:25:27 +00:00
mambo sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
mikrotik - Allow different slicers for different flash types to be registered 2017-02-22 10:21:39 +00:00
mpc85xx powerpc/mpc85xx: Use the proper (EREF) form of writing to DBCR0 2019-05-23 03:47:25 +00:00
ofw powerpc: Get 32-bit AIM building with secure-PLT 2019-08-05 01:37:18 +00:00
powermac Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
powernv powerpc/powernv: Fix OPAL cfgread/cfgwrite error handling 2019-08-03 01:55:51 +00:00
powerpc Centralize __pcpu definitions. 2019-08-29 07:25:27 +00:00
ps3 powerpc/pmap64: Make moea64 statistics optional 2019-07-25 03:47:27 +00:00
pseries powerpc/pmap64: Make moea64 statistics optional 2019-07-25 03:47:27 +00:00
psim add snps IP uart support / genaralize UART 2018-08-19 21:10:21 +00:00