freebsd-skq/sys/powerpc/include
nwhitehorn 89d01c24d1 Replace a number of conflations of mp_ncpus and mp_maxid with either
mp_maxid or CPU_FOREACH() as appropriate. This fixes a number of places in
the kernel that assumed CPU IDs are dense in [0, mp_ncpus) and would try,
for example, to run tasks on CPUs that did not exist or to allocate too
few buffers on systems with sparse CPU IDs in which there are holes in the
range and mp_maxid > mp_ncpus. Such circumstances generally occur on
systems with SMT, but on which SMT is disabled. This patch restores system
operation at least on POWER8 systems configured in this way.

There are a number of other places in the kernel with potential problems
in these situations, but where sparse CPU IDs are not currently known
to occur, mostly in the ARM machine-dependent code. These will be fixed
in a follow-up commit after the stable/11 branch.

PR:		kern/210106
Reviewed by:	jhb
Approved by:	re (glebius)
2016-07-06 14:09:49 +00:00
..
_align.h
_bus.h
_inttypes.h
_limits.h
_stdint.h
_types.h
altivec.h
asm.h Provide support for ELFv2 userland if using a newer compiler (recent clang 2015-12-03 00:10:57 +00:00
atomic.h On PowerPC 64bit, the linux-compat mb() definition is implemented with 2015-11-24 09:13:21 +00:00
bat.h
bus_dma.h
bus.h Increase booke bus max address to 36-bits. 2016-03-18 01:30:58 +00:00
clock.h
counter.h Replace a number of conflations of mp_ncpus and mp_maxid with either 2016-07-06 14:09:49 +00:00
cpu.h Bring CPU features list in line with the ABI requirements. 2016-01-02 18:15:10 +00:00
cpufunc.h
db_machdep.h
dbdma.h
dump.h
elf.h
endian.h
exec.h
float.h
floatingpoint.h
fpu.h
frame.h
gdb_machdep.h
hid.h
ieee.h
ieeefp.h
in_cksum.h
intr_machdep.h Add support for the Freescale dTSEC DPAA-based ethernet controller. 2016-02-29 03:38:00 +00:00
kdb.h
limits.h
machdep.h
md_var.h Provide support for userland binaries using the new ELFv2 ABI. This is a 2015-11-23 17:07:51 +00:00
memdev.h
metadata.h
mmuvar.h
ofw_machdep.h Implement OF_decode_addr() for arm. Move most of powerpc's implementation 2015-12-21 18:07:32 +00:00
openpicreg.h
openpicvar.h
param.h Extend Book-E to support >4GB RAM 2015-12-24 04:30:15 +00:00
pcb.h Use setjmp() instead of the identical-except-for-having-a-wrong-prototype 2016-01-10 16:42:14 +00:00
pcpu.h
pio.h
platform.h Extend idle support for newer Book-E cores. 2016-01-01 02:47:40 +00:00
platformvar.h
pmap.h Implement pmap_change_attr() for PowerPC (Book-E only for now) 2016-02-27 20:39:36 +00:00
pmc_mdep.h
proc.h
profile.h Provide support for userland binaries using the new ELFv2 ABI. This is a 2015-11-23 17:07:51 +00:00
psl.h
pte.h Fix a panic bug that cropped up in the PTE rewrite. 2016-02-16 02:13:55 +00:00
ptrace.h
reg.h Restore the ABI of 'struct fpreg' on powerpc. 2016-02-01 23:12:04 +00:00
reloc.h
resource.h
rtas.h
runq.h
sc_machdep.h
setjmp.h Use setjmp() instead of the identical-except-for-having-a-wrong-prototype 2016-01-10 16:42:14 +00:00
sigframe.h
signal.h
slb.h
smp.h
spr.h Print machine check address for Book-E. 2015-11-30 02:40:41 +00:00
sr.h
stack.h
stdarg.h
sysarch.h
tlb.h Fix SMP booting for PowerPC Book-E 2016-04-19 01:48:18 +00:00
trap.h Add more interrupts handled for booke. 2015-12-11 01:23:18 +00:00
ucontext.h POSIX states that #include <signal.h> shall make both mcontext_t and 2016-02-12 07:38:19 +00:00
varargs.h
vdso.h
vm.h
vmparam.h Restructure device mappings for Book-E. 2016-04-10 15:48:09 +00:00