diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2013-01-23 15:58:27 -0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-01-27 14:34:27 +0100 |
commit | 247c9de13f9d54a94734875000a9faea8168c8ca (patch) | |
tree | 9b26cf09cdb0b08f8252e6c3cd3b57a355363173 /target-m68k | |
parent | 1d934e89793d2828e04af93abd181e5ed5349ef4 (diff) |
target-i386: Topology & APIC ID utility functions
This introduces utility functions for the APIC ID calculation, based on:
Intel® 64 Architecture Processor Topology Enumeration
http://software.intel.com/en-us/articles/intel-64-architecture-processor-topology-enumeration/
The code should be compatible with AMD's "Extended Method" described at:
AMD CPUID Specification (Publication #25481)
Section 3: Multiple Core Calcuation
as long as:
- nr_threads is set to 1;
- OFFSET_IDX is assumed to be 0;
- CPUID Fn8000_0008_ECX[ApicIdCoreIdSize[3:0]] is set to
apicid_core_width().
Unit tests included.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-m68k')
0 files changed, 0 insertions, 0 deletions