]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
xen: Define xen_intr_handle_upcall in common headers
authorJulien Grall <julien.grall@linaro.org>
Tue, 14 Jan 2014 01:41:18 +0000 (01:41 +0000)
committerJulien Grall <julien.grall@citrix.com>
Sat, 3 Oct 2015 18:37:17 +0000 (19:37 +0100)
The function xen_intr_handle_upcall is used on every architecture supported
by Xen. It's pointless to define on every platform...

sys/dev/xen/xenpci/xenpci.c
sys/x86/include/apicvar.h
sys/xen/xen_intr.h

index 3fdd78cf59671b0389df697189cf637073bf3c26..3a596b4a4f98ad5ac26ce8d324180966967f0782 100644 (file)
@@ -43,14 +43,13 @@ __FBSDID("$FreeBSD$");
 #include <xen/features.h>
 #include <xen/hypervisor.h>
 #include <xen/hvm.h>
+#include <xen/xen_intr.h>
 
 #include <dev/pci/pcireg.h>
 #include <dev/pci/pcivar.h>
 
 #include <dev/xen/xenpci/xenpcivar.h>
 
-extern void xen_intr_handle_upcall(struct trapframe *trap_frame);
-
 /*
  * This is used to find our platform device instance.
  */
index 58fccede6cd0c555e80f43584776d7a5bc56ec39..4326cac3eade3f8f0ada7e3d419ee0273c348588 100644 (file)
@@ -455,7 +455,6 @@ void        lapic_handle_cmc(void);
 void   lapic_handle_error(void);
 void   lapic_handle_intr(int vector, struct trapframe *frame);
 void   lapic_handle_timer(struct trapframe *frame);
-void   xen_intr_handle_upcall(struct trapframe *frame);
 void   hv_vector_handler(struct trapframe *frame);
 
 extern int x2apic_mode;
index d2d6470ca494079e8df08828fffa3f818b63ec39..2420ba17f43e9a18fa44798a236ab5c128e37f02 100644 (file)
@@ -39,12 +39,16 @@ DEFINE_XEN_GUEST_HANDLE(evtchn_port_t);
 #define __XEN_EVTCHN_PORT_DEFINED__ 1
 #endif
 
+#include <xen/interface/event_channel.h>
+
 /** Registered Xen interrupt callback handle. */
 typedef void * xen_intr_handle_t;
 
 /** If non-zero, the hypervisor has been configured to use a direct vector */
 extern int xen_vector_callback_enabled;
 
+void xen_intr_handle_upcall(struct trapframe *trap_frame);
+
 /**
  * Associate an already allocated local event channel port an interrupt
  * handler.