|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH ARM v5 12/20] mini-os: added arch_unbind_ports
Thomas Leonard, le Thu 26 Jun 2014 12:28:29 +0100, a écrit :
> 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@xxxxxxxxx>
Acked-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>
> ---
> 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/events.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/events.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éinitialiser un MBR
Si tu veux qu'il soit complètement blanc (pas souhaitable, à mon avis) :
dd if=/dev/zero of=/dev/hda bs=512 count=1 (sous Linux)
-+- OT in Guide du linuxien (très) pervers - "Pour les K difficiles" -+-
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |