pc: Set fw_cfg data based on APIC ID calculation
commit1d934e89793d2828e04af93abd181e5ed5349ef4
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 23 Jan 2013 17:51:18 +0000 (23 15:51 -0200)
committerAndreas Färber <afaerber@suse.de>
Sun, 27 Jan 2013 13:34:27 +0000 (27 14:34 +0100)
tree86b45a7500e387392504858b0d755801fbaea859
parent54fb7bf68516642c609738814f160ee2069301e8
pc: Set fw_cfg data based on APIC ID calculation

This changes FW_CFG_MAX_CPUS and FW_CFG_NUMA to use apic_id_for_cpu(),
so the NUMA table can be based on the APIC IDs, instead of CPU index
(SeaBIOS knows nothing about CPU indexes, just APIC IDs).

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/pc.c