SVNews r322348

NOTE: This service is experimental and subject to change! Use at your own risk!

2017-08-10 09:16:03 - r322348 by royger (royger)

Complete list of files affected by revision r322348:

(Note: At the moment, these links point to ViewVC on They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/sys/x86/acpica/madt.c  
  History   Contents   Diff   MODIFY   /head/sys/x86/acpica/srat.c  
  History   Contents   Diff   MODIFY   /head/sys/x86/include/apicvar.h  
  History   Contents   Diff   MODIFY   /head/sys/x86/include/x86_smp.h  
  History   Contents   Diff   MODIFY   /head/sys/x86/x86/local_apic.c  
  History   Contents   Diff   MODIFY   /head/sys/x86/x86/mp_x86.c  

Commit message:

x86: make the arrays that depend on MAX_APIC_ID dynamic

So that MAX_APIC_ID can be bumped without wasting memory.

Note that the usage of MAX_APIC_ID in the SRAT parsing forces the
parser to allocate memory directly from the phys_avail physical memory
array, which is not the best approach probably, but I haven't found
any other way to allocate memory so early in boot. This memory is not
returned to the system afterwards, but at least it's sized according
to the maximum APIC ID found in the MADT table.

Sponsored by: Citrix Systems R&D
MFC after: 1 month
Reviewed by: kib
Differential revision:


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 27 ms, 6 files printed. Current time is 2018-03-22 04:10:39. All times are in UTC/GMT.