]> xenbits.xensource.com Git - xen.git/commitdiff
mini-os: added arch_unbind_ports
authorThomas Leonard <talex5@gmail.com>
Thu, 26 Jun 2014 11:28:29 +0000 (12:28 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 27 Jun 2014 13:13:20 +0000 (14:13 +0100)
This allows closing any ports opened by the arch-specific code.
ARM will use it for the debug port.

Signed-off-by: Thomas Leonard <talex5@gmail.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
extras/mini-os/arch/x86/events.c
extras/mini-os/events.c
extras/mini-os/include/events.h

index e420a98fd067390cd9c8faa7ee08c1beecc195c2..5198cf3eab63c664c6c3786f4aad8884d461f418 100644 (file)
@@ -23,6 +23,10 @@ void arch_init_events(void)
 #endif
 }
 
+void arch_unbind_ports(void)
+{
+}
+
 void arch_fini_events(void)
 {
 #if defined(__x86_64__)
index 3c92d825b7b4d664bc5c5435a018654ec3a3e68a..48742de8eeda6d9d780fdb2758ee25f96ab624c8 100644 (file)
@@ -179,6 +179,7 @@ void init_events(void)
 void fini_events(void)
 {
     /* Dealloc all events */
+    arch_unbind_ports();
     unbind_all_ports();
     arch_fini_events();
 }
index 0452d21755a9eed46a30df34d55d2c7545d78508..89b5997cc96ff4dce3ce6e05011c586d685d2d2f 100644 (file)
@@ -26,6 +26,10 @@ typedef void (*evtchn_handler_t)(evtchn_port_t, struct pt_regs *, void *);
 
 /* prototypes */
 void arch_init_events(void);
+
+/* Called by fini_events to close any ports opened by arch-specific code. */
+void arch_unbind_ports(void);
+
 void arch_fini_events(void);
 
 int do_event(evtchn_port_t port, struct pt_regs *regs);