Re: [PATCH 19/58] microblaze_v5: early_printk support
From: John Williams
Date: Tue Jul 08 2008 - 19:47:42 EST
> +++ b/arch/microblaze/kernel/early_printk.c
> @@ -0,0 +1,130 @@
> +#ifdef CONFIG_EARLY_PRINTK
> +#define BASE_ADDR ((unsigned char *)CONFIG_EARLY_PRINTK_UARTLITE_ADDRESS)
This is a problem - default value of EARLY_PRINTK_UARTLITE_ADDRESS is
0x0, so by default the kernel will try to access a uartlite at 0x0
which is the reset vector! I know there is the test in the actual
output routine but it's not good to rely on that in the default case.
Can we either
#if CONFIG_EARLY_PRINTK_UARTLITE_ADDRESS==0
#warning EARLY_PRINTK address not set, disabling
...
#else
..
#endif
or query the OF subsystem (is it up yet?), and default to using the
first uartlite in the system for early printk?
John
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/