lkml.org 
[lkml]   [2011]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] ARM: tlb: Compile out MULTI_TLB specific code when MULTI_TLB is undefined
From
On Sat, Sep 17, 2011 at 4:00 AM, Russell King <rmk@arm.linux.org.uk> wrote:
> On Sat, Sep 17, 2011 at 12:31:06AM +0800, Tzu-Jung Lee wrote:
>> To eliminate the 'undefined cpu_tlb' errors when the kernel is built with -O0
>
> The kernel requires to be built with optimization in many places, and so
> this is an option we don't support.
>
> --
> Russell King
>  Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
>  maintainer of:
>

Hi Russell,

Indeed, this is only one of the places where we used to particularly
build with higher optimization level. More than often, we only disable
the optimization for interested object files with CFLAGS_foo.o += -g
-O0. While porting kernel to different platforms, however, failures at
the early booting stage usually makes low level
initialization(mm/tlb/cache/cpu...) become the objects that we want to
disable the optimization for the ease of diagnostic with source level
debugger. In this cases, patches to the source code become required to
get the -O0 work for them. Would you consider to have these patches
merged if they doesn't have side effect.

Thanks,
Roy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2011-09-17 05:21    [W:0.224 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site