arm: fix build after c/s 25477:e12e0b038219
authorJan Beulich <jbeulich@suse.com>
Thu, 28 Jun 2012 14:04:12 +0000 (16:04 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 28 Jun 2012 14:04:12 +0000 (16:04 +0200)
Only x86 currently has a struct vcpu field arch.gdbsx_vcpu_event. But
as the whole function domain_pause_for_debugger() is pointless to be
compiled when there's no arch support, simply introduce another HAS_*
macro, enabled only on x86.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/Rules.mk
xen/arch/x86/Rules.mk
xen/common/domain.c

index 6123835ec14bb05073200aab9fb89d1a38876639..f7cb8b2c864701cc4c0d2ac8bc0aa5936e0630c4 100644 (file)
@@ -51,6 +51,7 @@ CFLAGS-$(perfc)         += -DPERF_COUNTERS
 CFLAGS-$(perfc_arrays)  += -DPERF_ARRAYS
 CFLAGS-$(lock_profile)  += -DLOCK_PROFILE
 CFLAGS-$(HAS_ACPI)      += -DHAS_ACPI
+CFLAGS-$(HAS_GDBSX)     += -DHAS_GDBSX
 CFLAGS-$(HAS_PASSTHROUGH) += -DHAS_PASSTHROUGH
 CFLAGS-$(frame_pointer) += -fno-omit-frame-pointer -DCONFIG_FRAME_POINTER
 
index 65275af9e8bee4fa543e23cafeb694debb09f796..5312d7228dd49b0fb5755206ce406ae5997d5e55 100644 (file)
@@ -8,6 +8,7 @@ HAS_PCI := y
 HAS_PASSTHROUGH := y
 HAS_NS16550 := y
 HAS_KEXEC := y
+HAS_GDBSX := y
 xenoprof := y
 
 #
index c21d18b548622f32fedbd810abac28d486b80948..4c5d241a2b89aed41140ba1503ff49530e67c7b4 100644 (file)
@@ -612,6 +612,7 @@ void vcpu_end_shutdown_deferral(struct vcpu *v)
         vcpu_check_shutdown(v);
 }
 
+#ifdef HAS_GDBSX
 void domain_pause_for_debugger(void)
 {
     struct domain *d = current->domain;
@@ -628,6 +629,7 @@ void domain_pause_for_debugger(void)
     if (current->arch.gdbsx_vcpu_event == 0)
         send_global_virq(VIRQ_DEBUGGER);
 }
+#endif
 
 /* Complete domain destroy after RCU readers are not holding old references. */
 static void complete_domain_destroy(struct rcu_head *head)