From: Jacob Gorm Hansen Subject: [PATCH] Allow mini-os to unbind all evtchns Date: Fri, 24 Nov 2006 13:27:07 +0100 Message-ID: <1164371227.3256.3.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-Nu9tNKOK3RilZ2togvX7" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org --=-Nu9tNKOK3RilZ2togvX7 Content-Type: text/plain Content-Transfer-Encoding: 7bit The attached patch exports a function clients can call to have all Xen ports unbound. This is necessary when using mini-os as the foundation for a boot-loader. Regards, Jacob --=-Nu9tNKOK3RilZ2togvX7 Content-Disposition: attachment; filename=miniosunbindall.patch Content-Type: text/x-patch; name=miniosunbindall.patch; charset=us-ascii Content-Transfer-Encoding: 7bit Signed-off-by: Jacob Gorm Hansen diff -r 8e1c8a7bc86b extras/mini-os/events.c --- a/extras/mini-os/events.c Fri Nov 24 13:05:38 2006 +0100 +++ b/extras/mini-os/events.c Fri Nov 24 13:26:11 2006 +0100 @@ -35,6 +35,21 @@ static ev_action_t ev_actions[NR_EVS]; 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