Signed-off-by: Jacob Gorm Hansen diff -r 52ae8dd4bc75 extras/mini-os/events.c --- a/extras/mini-os/events.c Tue Oct 17 22:09:52 2006 +0100 +++ b/extras/mini-os/events.c Thu Nov 30 17:34:29 2006 +0100 @@ -31,10 +31,26 @@ typedef struct _ev_action_t { u32 count; } ev_action_t; +unsigned long bound_ports[NR_EVS/(8*sizeof(unsigned long))]; 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