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:
Thomas Leonard authored and Ian Campbell committed 2014-06-27 14:13:20 +01:00
1 parent 49a37237c7
commit b757e8d41f
3 files changed
+9

No files matched your search

+4
View 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__)
+1
View 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();
}
+4
View 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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.