[PATCH 1/2] OMAP1/2/3/4: DEBUG_LL run time detection

Russell King - ARM Linux linux at arm.linux.org.uk
Sat Sep 19 04:40:52 EDT 2009


On Fri, Sep 18, 2009 at 07:39:39PM -0500, Vikram Pandita wrote:
> The decision of finding the physical address of debug uart is done
> at runtime now, making possible to use a single defconfig for multiple boards.
> 
> This patch gets rid of  menuconfig options of choosing low level debug uarts.

This approach won't work in all cases where the debug functions are called
(which can be before the MMU is enabled.)

The problem is that you can't run C code before the MMU is setup because
C code always encodes absolute address locations, which won't be valid
at that time.

Also, since there is no stack during the initial kernel boot, you can't
stack registers in the LL debug functions.



More information about the linux-arm-kernel mailing list