lkml.org 
[lkml]   [2010]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 09/10] ARM: ftrace: add Thumb-2 support to dynamic ftrace
On Tue, Feb 23, 2010 at 08:35:00AM -0500, Steven Rostedt wrote:
> On Sun, 2010-02-14 at 01:18 +0530, Rabin Vincent wrote:
> > --- a/arch/arm/include/asm/ftrace.h
> > +++ b/arch/arm/include/asm/ftrace.h
> > @@ -18,7 +18,11 @@ struct dyn_arch_ftrace {
> >
> > static inline unsigned long ftrace_call_adjust(unsigned long addr)
> > {
> > +#ifdef CONFIG_THUMB2_KERNEL
> > + return addr & ~1;
>
> Would it be safe to do that for all arm archs? Instead of adding a
> config option around it. Or do some arm archs need the lsb set.
>
> I'm just saying a comment here would look better than #ifdef #else.

You're right; I'll change this. It's safe even when we build for the
ARM instruction set.

Rabin


\
 
 \ /
  Last update: 2010-02-23 18:11    [W:0.266 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site