freebsd-skq/sys/x86/include
royger 55936e520f x86: bump MAX_APIC_ID to 512
Introduce a new define to take int account the xAPIC ID limit, for
systems where x2APIC is not available/reliable.

Also change some of the usages of the APIC ID to use an unsigned int
(which is the correct storage type to deal with x2APIC IDs as found in
x2APIC MADT entries).

This allows booting FreeBSD on a box with 256 CPUs and APIC IDs up to
295:

FreeBSD/SMP: Multiprocessor System Detected: 256 CPUs
FreeBSD/SMP: 1 package(s) x 64 core(s) x 4 hardware threads
Package HW ID = 0
	Core HW ID = 0
		CPU0 (BSP): APIC ID: 0
		CPU1 (AP/HT): APIC ID: 1
		CPU2 (AP/HT): APIC ID: 2
		CPU3 (AP/HT): APIC ID: 3
[...]
	Core HW ID = 73
		CPU252 (AP): APIC ID: 292
		CPU253 (AP/HT): APIC ID: 293
		CPU254 (AP/HT): APIC ID: 294
		CPU255 (AP/HT): APIC ID: 295

Submitted by:		kib (previous version)
Relnotes:		yes
MFC after:		1 month
Reviewed by:		kib
Differential revision:	https://reviews.freebsd.org/D11913
2017-08-10 09:16:40 +00:00
..
xen
_align.h Implement _ALIGN() using internal integer types. 2016-05-31 13:31:19 +00:00
_inttypes.h
_limits.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
_stdint.h Add missing dependency on <machine/_limits.h>. 2016-05-31 08:38:24 +00:00
_types.h Define the vm_ooffset_t and vm_pindex_t types as machine-independend. 2017-02-04 12:26:38 +00:00
acpica_machdep.h
apicreg.h Local APIC: add support for extended LVT entries found in AMD processors 2017-02-28 18:48:12 +00:00
apicvar.h x86: bump MAX_APIC_ID to 512 2017-08-10 09:16:40 +00:00
apm_bios.h
bus_dma.h Clean up MD pollution of bus_dma.h: 2017-07-01 05:35:29 +00:00
bus.h
busdma_impl.h Clean up MD pollution of bus_dma.h: 2017-07-01 05:35:29 +00:00
cputypes.h Remove 'cpu' and 'cpu_class' on amd64. 2016-09-15 17:05:54 +00:00
dump.h
elf.h
endian.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
fdt.h
float.h
fpu.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
frame.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
init.h
legacyvar.h
mca.h
metadata.h
mptable.h
ofw_machdep.h
pci_cfgreg.h
psl.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ptrace.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
pvclock.h
reg.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
segments.h Remove constants and comments for unimplemented entries in the default LDT. 2017-05-24 18:54:21 +00:00
setjmp.h
sigframe.h
signal.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
specialreg.h Add the AMD MONITORX/MWAITX feature definition introduced in 2017-03-16 03:06:50 +00:00
stack.h
stdarg.h
sysarch.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
trap.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ucontext.h
vdso.h hyperv: Implement userspace gettimeofday(2) with Hyper-V reference TSC 2016-12-19 07:40:45 +00:00
vmware.h
x86_smp.h x86: make the arrays that depend on MAX_APIC_ID dynamic 2017-08-10 09:16:03 +00:00
x86_var.h apic_enumerator: only set mp_ncpus and mp_maxid at probe cpus phase 2017-08-10 09:15:18 +00:00