diff options
author | Jan Beulich <jbeulich@suse.com> | 2011-09-22 18:29:19 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2011-09-22 18:29:19 +0100 |
commit | e463d3619896fc257906d08d0a2b40474ea19e80 (patch) | |
tree | 2ecfde918587630f0f22766ca53ed350392b8100 /xen/arch/x86/oprofile | |
parent | 9be30410ecd3a01ff9315f77abb0c8865c927df2 (diff) | |
download | xen-e463d3619896fc257906d08d0a2b40474ea19e80.tar.gz xen-e463d3619896fc257906d08d0a2b40474ea19e80.tar.bz2 xen-e463d3619896fc257906d08d0a2b40474ea19e80.zip |
PCI multi-seg: config space accessor adjustments
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'xen/arch/x86/oprofile')
-rw-r--r-- | xen/arch/x86/oprofile/op_model_athlon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xen/arch/x86/oprofile/op_model_athlon.c b/xen/arch/x86/oprofile/op_model_athlon.c index 95ad07c6c6..bdd71a78d6 100644 --- a/xen/arch/x86/oprofile/op_model_athlon.c +++ b/xen/arch/x86/oprofile/op_model_athlon.c @@ -470,7 +470,7 @@ static int __init init_ibs_nmi(void) for (bus = 0; bus < 256; bus++) { for (dev = 0; dev < 32; dev++) { for (func = 0; func < 8; func++) { - id = pci_conf_read32(bus, dev, func, PCI_VENDOR_ID); + id = pci_conf_read32(0, bus, dev, func, PCI_VENDOR_ID); vendor_id = id & 0xffff; dev_id = (id >> 16) & 0xffff; @@ -478,10 +478,10 @@ static int __init init_ibs_nmi(void) if ((vendor_id == PCI_VENDOR_ID_AMD) && (dev_id == PCI_DEVICE_ID_AMD_10H_NB_MISC)) { - pci_conf_write32(bus, dev, func, IBSCTL, + pci_conf_write32(0, bus, dev, func, IBSCTL, IBSCTL_LVTOFFSETVAL | APIC_EILVT_LVTOFF_IBS); - value = pci_conf_read32(bus, dev, func, IBSCTL); + value = pci_conf_read32(0, bus, dev, func, IBSCTL); if (value != (IBSCTL_LVTOFFSETVAL | APIC_EILVT_LVTOFF_IBS)) { |