]> xenbits.xensource.com Git - people/aperard/xen-arm.git/commitdiff
xen: arm: stub out pirq related functions.
authorIan Campbell <ian.campbell@citrix.com>
Wed, 19 Dec 2012 14:16:21 +0000 (14:16 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 19 Dec 2012 14:16:21 +0000 (14:16 +0000)
On ARM we use GIC functionality to inject virtualised real interrupts
for h/w devices rather than evtchn-pirqs.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/dummy.S
xen/arch/arm/irq.c

index 66eb31405e1de284c58554d36abe903875a20285..c641e7adda93995710cfddfdb66ef82c05bf792e 100644 (file)
@@ -7,11 +7,7 @@ x:     .word 0xe7f000f0 /* Undefined instruction */
 x:     mov pc, lr
        
 /* PIRQ support */
-DUMMY(alloc_pirq_struct);
 DUMMY(nr_irqs_gsi);
-DUMMY(pirq_guest_bind);
-DUMMY(pirq_guest_unbind);
-DUMMY(pirq_set_affinity);
 
 /* VCPU */
 NOP(update_vcpu_system_time);
index 72e83e6803881c3824cd389d7c6ad467ac621194..a50281b04bf62f52431dd5ccbf7d84705fad3976 100644 (file)
@@ -191,6 +191,35 @@ out_no_end:
     irq_exit();
 }
 
+/*
+ * pirq event channels. We don't use these on ARM, instead we use the
+ * features of the GIC to inject virtualised normal interrupts.
+ */
+struct pirq *alloc_pirq_struct(struct domain *d)
+{
+    return NULL;
+}
+
+/*
+ * These are all unreachable given an alloc_pirq_struct
+ * which returns NULL, all callers try to lookup struct pirq first
+ * which will fail.
+ */
+int pirq_guest_bind(struct vcpu *v, struct pirq *pirq, int will_share)
+{
+    BUG();
+}
+
+void pirq_guest_unbind(struct domain *d, struct pirq *pirq)
+{
+    BUG();
+}
+
+void pirq_set_affinity(struct domain *d, int pirq, const cpumask_t *mask)
+{
+    BUG();
+}
+
 /*
  * Local variables:
  * mode: C