freebsd-skq/sys/sparc64/include
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
..
_align.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
_bus.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
_inttypes.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
_limits.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
_stdint.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
_types.h Do not include float interfaces when using libsa. 2018-02-23 04:04:25 +00:00
asi.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
asm.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
asmacros.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
atomic.h Implement atomic_swap_{32,64,int,long,ptr}(9). 2018-07-28 15:42:57 +00:00
bus_common.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
bus_dma.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
bus_private.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
bus.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
cache.h spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
ccr.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
clock.h
cmt.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
counter.h Back pcpu zone with domain correct pages 2018-07-06 02:06:03 +00:00
cpu.h Add a KPI for the delay while spinning on a spin lock. 2018-11-05 21:34:17 +00:00
cpufunc.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
db_machdep.h No need to force md code to define a macro that's the same as 2018-04-16 13:52:23 +00:00
dcr.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
dump.h
efi.h Fix building on i386 and arm. But 'public domain' headers on the files 2016-10-13 06:56:23 +00:00
elf.h Consolidate identical ELF auxargs type defintions. 2018-10-22 22:24:32 +00:00
endian.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
exec.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
fireplane.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
float.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
floatingpoint.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
fp.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
frame.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
fsr.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
gdb_machdep.h amd64: Protect the kernel text, data, and BSS by setting the RW/NX bits 2018-03-06 14:28:37 +00:00
idprom.h sparc64: Update idprom.h. 2017-12-27 22:01:30 +00:00
ieee.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ieeefp.h
in_cksum.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
instr.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
intr_machdep.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
iommureg.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
iommuvar.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
jbus.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
kdb.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
kerneldump.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
ktr.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
limits.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
lsu.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
mcntl.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
md_var.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
memdev.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
metadata.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
nexusvar.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
ofw_machdep.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
ofw_mem.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
ofw_nexus.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
param.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
pcb.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
pcpu_aux.h Centralize __pcpu definitions. 2019-08-29 07:25:27 +00:00
pcpu.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
pmap.h Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
pmc_mdep.h
proc.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
procctl.h amd64 KPTI: add control from procctl(2). 2019-03-16 11:44:33 +00:00
profile.h SPDX: Consider code from Carnegie-Mellon University. 2017-11-30 15:48:35 +00:00
pstate.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
ptrace.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
reg.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
reloc.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
resource.h
runq.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
sc_machdep.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
setjmp.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
sf_buf.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
sigframe.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
signal.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
smp.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
stack.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
stdarg.h Use standard pattern for stdargs.h 2018-02-12 14:48:05 +00:00
sysarch.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
tick.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
tlb.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
trap.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
tsb.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
tstate.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
tte.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
ucontext.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
upa.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
utrap.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
vdso.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
ver.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
vm.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
vmparam.h Fix a typo: change lists to list to match rest of sentence. 2018-07-17 21:18:49 +00:00
watch.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
wstate.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00