target-i386: Introduce x86_cpu_apic_id_from_index() function
authorEduardo Habkost <ehabkost@redhat.com>
Tue, 22 Jan 2013 20:25:04 +0000 (18:25 -0200)
committerAndreas Färber <afaerber@suse.de>
Sun, 27 Jan 2013 13:34:27 +0000 (14:34 +0100)
commitcb41bad3c2c7d82405cbe057c944ed4fd176d82a
tree5cfa51d80a7db52baab50723b37ff14e9b08ca57
parent83b17af5e619abdf11721826b08fa4f30e9dc4ee
target-i386: Introduce x86_cpu_apic_id_from_index() function

This function will be used by both the CPU initialization code and the
fw_cfg table initialization code.

Later this function will be updated to generate APIC IDs according to
the CPU topology.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
target-i386/cpu.c
target-i386/cpu.h