[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[XenPPC] [pushed] [ppc] DomU udbg interfaces



changeset:   27805:54713300858a54eb3abe9d47515ec1169c8ace46
tag:         tip
user:        jimix@xxxxxxxxxxxxxxxxxxxxx
date:        Mon May 15 17:32:44 2006 -0400
files:       arch/powerpc/platforms/xen/udbg_xen.c
description:
[ppc] DomU udbg interfaces

This patch obtains the correct location of the console page and turns
off the evtchn notification cuz its too early.


diff -r 242f83db49e1444b671bfabe07b656f9aca36921 -r 
54713300858a54eb3abe9d47515ec1169c8ace46 arch/powerpc/platforms/xen/udbg_xen.c
--- a/arch/powerpc/platforms/xen/udbg_xen.c     Mon May 15 17:19:49 2006 -0400
+++ b/arch/powerpc/platforms/xen/udbg_xen.c     Mon May 15 17:32:44 2006 -0400
@@ -62,14 +62,12 @@ static int udbg_getc_dom0_xen(void)
        }
 }
 
+static struct xencons_interface *intf;
+
 static void udbg_putc_domu_xen(char c)
 {
-       struct xencons_interface *intf;
        XENCONS_RING_IDX cons, prod;
 
-       intf = (struct xencons_interface *)
-               (xen_start_info->console_mfn << PAGE_SHIFT);
- 
        if (c == '\n')
                udbg_putc_domu_xen('\r');
 
@@ -84,18 +82,11 @@ static void udbg_putc_domu_xen(char c)
 
        wmb();
        intf->out_prod = prod;
-
-       notify_remote_via_evtchn(xen_start_info->console_evtchn);
 }
 
 static int udbg_getc_poll_domu_xen(void)
 {
-       struct xencons_interface *intf;
        XENCONS_RING_IDX cons, prod;
-
-       intf = (struct xencons_interface *)
-               (xen_start_info->console_mfn << PAGE_SHIFT);
-
 
        cons = intf->in_cons;
        prod = intf->in_prod;
@@ -135,5 +126,7 @@ void xen_init_udbg(ulong dom0)
                udbg_putc = udbg_putc_domu_xen;
                udbg_getc = udbg_getc_domu_xen;
                udbg_getc_poll = udbg_getc_poll_domu_xen;
+               intf = (struct xencons_interface *)
+                       mfn_to_virt(xen_start_info->console_mfn);
        }
 }



_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.