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

[Xen-devel] calling printk early enough kills dom0 boot on x86-64



If I apply the following patch and boot with it on x86-64, dom0 boot
hangs in random places. I found it while adding full ioremap
support. I suspect an overflow in the console subsystem due to ioremap
being called before the console is fuly set up, but did not have time
to fully investigate yet. If anyone wants to take a stab at fixing
this, please do :-)

Cheers,
Muli

diff -r c191c649cdb3 xen/include/asm-x86/io.h
--- a/xen/include/asm-x86/io.h  Tue Jun 06 10:25:59 2006 +0100
+++ b/xen/include/asm-x86/io.h  Wed Jun 07 18:03:13 2006 +0300
@@ -6,7 +6,14 @@
 #include <asm/page.h>
 
 /* We don't need real ioremap() on Xen/x86. */
-#define ioremap(x,l) (__va(x))
+static inline void* ioremap(unsigned long x, unsigned long l)
+{
+     printk("ieeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee!\n");
+     printk("ieeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee!\n");
+     printk("ieeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee!\n");
+     printk("ieeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee!\n");
+    return __va(x);
+}
 
 #define readb(x) (*(volatile char *)(x))
 #define readw(x) (*(volatile short *)(x))

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


 


Rackspace

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