opnsense-src/sys/x86/include
Roger Pau Monné a74bb29ada 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 xen: Code cleanup and small bug fixes 2015-10-21 10:44:07 +00:00
_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.h Better support memory mapped console devices, such as VGA and EFI 2015-08-12 15:26:32 +00:00
bus_dma.h Clean up MD pollution of bus_dma.h: 2017-07-01 05:35:29 +00:00
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 Rationalize BSD license on sys/*/include/float.h 2015-08-05 17:05:35 +00:00
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 Convert rman to use rman_res_t instead of u_long 2016-01-27 02:23:54 +00:00
mca.h
metadata.h Move amd64 metadata.h to x86 and share with i386 2016-01-07 19:47:26 +00:00
mptable.h
ofw_machdep.h Add missing ofw_machdep.h. Make x86 ofw_machdep.h work pc98 too. 2015-08-28 15:41:09 +00:00
pci_cfgreg.h Convert rman to use rman_res_t instead of u_long 2016-01-27 02:23:54 +00:00
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 Add stack_save_td_running(), a function to trace the kernel stack of a 2015-09-11 03:54:37 +00:00
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 POSIX states that #include <signal.h> shall make both mcontext_t and 2016-02-12 07:38:19 +00:00
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