[PATCH] pxa: fix for UART reference in section text for a number of platforms.

Eric Miao eric.y.miao at gmail.com
Mon Mar 8 07:10:18 EST 2010


On Mon, Mar 8, 2010 at 7:48 PM, Eric Miao <eric.y.miao at gmail.com> wrote:
> What's the background?
>

OK, I saw the thread. So this is basically going to move the "UART" to
bss, which doesn't get discarded. However, my 'devel' branch has been
modified a bit to support off chip UART decompressing messages to be
displayed, I'm afraid this needs to be updated a bit.

Thanks

> 2010/3/8 Jonathan Cameron <jic23 at cam.ac.uk>:
>> Signed-off-by: Jonathan Cameron <jic23 at cam.ac.uk>
>>
>> ---
>>  Fix exactly as proposed by Russell King.  Thanks!
>>
>>  arch/arm/mach-pxa/include/mach/uncompress.h |    4 +++-
>>  1 files changed, 3 insertions(+), 1 deletions(-)
>>
>> diff --git a/arch/arm/mach-pxa/include/mach/uncompress.h b/arch/arm/mach-pxa/include/mach/uncompress.h
>> index 237734b..b009299 100644
>> --- a/arch/arm/mach-pxa/include/mach/uncompress.h
>> +++ b/arch/arm/mach-pxa/include/mach/uncompress.h
>> @@ -15,7 +15,7 @@
>>
>>  #define __REG(x)       ((volatile unsigned long *)x)
>>
>> -static volatile unsigned long *UART = FFUART;
>> +static volatile unsigned long *UART;
>>
>>  static inline void putc(char c)
>>  {
>> @@ -39,6 +39,8 @@ static inline void arch_decomp_setup(void)
>>            || machine_is_csb726() || machine_is_stargate2()
>>            || machine_is_cm_x300() || machine_is_balloon3())
>>                UART = STUART;
>> +       else
>> +               UART = FFUART;
>>  }
>>
>>  /*
>> --
>> 1.6.4.4
>>
>>
>



More information about the linux-arm-kernel mailing list