debuggers.hg

changeset 21974:63c8222ea2c9

xenoprofile: Disable IBS on x86_32

Extended PCI configuration space is not accessible on 32 bit
systems. This patch disables IBS feature on 32 bit to avoid
IBSCTL(0x1cc) accesses.

Signed-off-by: Wei Wang <wei.wang2@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Aug 06 15:42:49 2010 +0100 (2010-08-06)
parents a904221a56c2
children cd606ea8f963
files xen/arch/x86/oprofile/op_model_athlon.c
line diff
     1.1 --- a/xen/arch/x86/oprofile/op_model_athlon.c	Fri Aug 06 15:41:59 2010 +0100
     1.2 +++ b/xen/arch/x86/oprofile/op_model_athlon.c	Fri Aug 06 15:42:49 2010 +0100
     1.3 @@ -475,6 +475,9 @@ static int init_ibs_nmi(void)
     1.4  
     1.5  static u32 get_ibs_caps(void)
     1.6  {
     1.7 +#ifdef	CONFIG_X86_32
     1.8 +	return 0;
     1.9 +#else
    1.10  	unsigned int max_level;
    1.11  
    1.12  	if (!boot_cpu_has(X86_FEATURE_IBS))
    1.13 @@ -491,6 +494,7 @@ static u32 get_ibs_caps(void)
    1.14  		return IBS_CAPS_AVAIL;
    1.15  
    1.16  	return ibs_caps;
    1.17 +#endif
    1.18  }
    1.19  
    1.20  u32 ibs_init(void)