mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
mini-os: added arch_unbind_ports
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>
This commit is contained in:
1 parent
49a37237c7
commit
b757e8d41f
3 files changed
+9
No files matched your search
@@ -23,6 +23,10 @@ void arch_init_events(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
void arch_unbind_ports(void)
|
||||
{
|
||||
}
|
||||
|
||||
void arch_fini_events(void)
|
||||
{
|
||||
#if defined(__x86_64__)
|
||||
|
||||
@@ -179,6 +179,7 @@ void init_events(void)
|
||||
void fini_events(void)
|
||||
{
|
||||
/* Dealloc all events */
|
||||
arch_unbind_ports();
|
||||
unbind_all_ports();
|
||||
arch_fini_events();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||