From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Thibault Subject: Re: [PATCH ARM v5 12/20] mini-os: added arch_unbind_ports Date: Thu, 26 Jun 2014 13:38:52 +0200 Message-ID: <20140626113852.GF29700@type.bordeaux.inria.fr> References: <1403782117-15125-1-git-send-email-talex5@gmail.com> <1403782117-15125-13-git-send-email-talex5@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X0810-0007wl-Dk for xen-devel@lists.xenproject.org; Thu, 26 Jun 2014 11:38:54 +0000 Content-Disposition: inline In-Reply-To: <1403782117-15125-13-git-send-email-talex5@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Thomas Leonard Cc: xen-devel@lists.xenproject.org, anil@recoil.org, Dave.Scott@eu.citrix.com, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org Thomas Leonard, le Thu 26 Jun 2014 12:28:29 +0100, a =E9crit : > This allows closing any ports opened by the arch-specific code. > ARM will use it for the debug port. > = > Signed-off-by: Thomas Leonard Acked-by: Samuel Thibault > --- > extras/mini-os/arch/x86/events.c | 4 ++++ > extras/mini-os/events.c | 1 + > extras/mini-os/include/events.h | 4 ++++ > 3 files changed, 9 insertions(+) > = > diff --git a/extras/mini-os/arch/x86/events.c b/extras/mini-os/arch/x86/e= vents.c > index e420a98..5198cf3 100644 > --- a/extras/mini-os/arch/x86/events.c > +++ b/extras/mini-os/arch/x86/events.c > @@ -23,6 +23,10 @@ void arch_init_events(void) > #endif > } > = > +void arch_unbind_ports(void) > +{ > +} > + > void arch_fini_events(void) > { > #if defined(__x86_64__) > diff --git a/extras/mini-os/events.c b/extras/mini-os/events.c > index d07dbfb..2a23042 100644 > --- a/extras/mini-os/events.c > +++ b/extras/mini-os/events.c > @@ -179,6 +179,7 @@ void init_events(void) > void fini_events(void) > { > /* Dealloc all events */ > + arch_unbind_ports(); > unbind_all_ports(); > arch_fini_events(); > } > diff --git a/extras/mini-os/include/events.h b/extras/mini-os/include/eve= nts.h > index 0452d21..89b5997 100644 > --- a/extras/mini-os/include/events.h > +++ b/extras/mini-os/include/events.h > @@ -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); > -- = > 2.0.0 > = -- = Samuel > Quelqu'un aurait-il une solution pour r=E9initialiser un MBR Si tu veux qu'il soit compl=E8tement blanc (pas souhaitable, =E0 mon avis)= : dd if=3D/dev/zero of=3D/dev/hda bs=3D512 count=3D1 (sous Linux) -+- OT in Guide du linuxien (tr=E8s) pervers - "Pour les K difficiles" -+-