[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Fix non-SMP build, broken by the previous changeset.
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID 8af8ddf9107832cfe509ffe8e9f7ee65856b2fa3 # Parent 6fdbb0e3508385e2835dce8312baafb56c968baa Fix non-SMP build, broken by the previous changeset. Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> diff -r 6fdbb0e35083 -r 8af8ddf91078 linux-2.6-xen-sparse/include/asm-xen/asm-i386/system.h --- a/linux-2.6-xen-sparse/include/asm-xen/asm-i386/system.h Wed Aug 31 14:20:56 2005 +++ b/linux-2.6-xen-sparse/include/asm-xen/asm-i386/system.h Wed Aug 31 14:53:43 2005 @@ -562,8 +562,13 @@ #define local_irq_enable() __sti() /* Don't use smp_processor_id: this is called in debug versions of that fn. */ +#ifdef CONFIG_SMP #define irqs_disabled() \ HYPERVISOR_shared_info->vcpu_data[__smp_processor_id()].evtchn_upcall_mask +#else +#define irqs_disabled() \ + HYPERVISOR_shared_info->vcpu_data[0].evtchn_upcall_mask +#endif /* * disable hlt during certain critical i/o operations diff -r 6fdbb0e35083 -r 8af8ddf91078 linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/system.h --- a/linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/system.h Wed Aug 31 14:20:56 2005 +++ b/linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/system.h Wed Aug 31 14:53:43 2005 @@ -388,8 +388,13 @@ #define local_irq_enable() __sti() /* Don't use smp_processor_id: this is called in debug versions of that fn. */ +#ifdef CONFIG_SMP #define irqs_disabled() \ HYPERVISOR_shared_info->vcpu_data[__smp_processor_id()].evtchn_upcall_mask +#else +#define irqs_disabled() \ + HYPERVISOR_shared_info->vcpu_data[0].evtchn_upcall_mask +#endif /* * disable hlt during certain critical i/o operations _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |