From d255c83172c37319a8e8174e0abccb47abd1296c Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Mon, 27 Nov 2006 10:03:35 +0000 Subject: [MINIOS] Exports a function to have all Xen ports unbound. This is necessary when using mini-os as the foundation for a boot-loader. Signed-off-by: Jacob Gorm Hansen --- extras/mini-os/events.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'extras/mini-os/events.c') diff --git a/extras/mini-os/events.c b/extras/mini-os/events.c index e05f68d83d..5d60ab70fc 100644 --- a/extras/mini-os/events.c +++ b/extras/mini-os/events.c @@ -35,6 +35,21 @@ typedef struct _ev_action_t { static ev_action_t ev_actions[NR_EVS]; void default_handler(evtchn_port_t port, struct pt_regs *regs, void *data); +void unbind_all_ports(void) +{ + int i; + + for(i=0;i