Re: [PATCH 1/2] kallsyms: Allow kernel symbols in L1 to be found in Blackfin architecture

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Bryan Wu <cooloney@...>
Cc: <pmarques@...>, <linux-kernel@...>, <robin.getz@...>, <cooloney@...>
Date: Tuesday, April 29, 2008 - 6:00 pm

On Fri, 25 Apr 2008 18:28:18 +0800
Bryan Wu <cooloney@kernel.org> wrote:


That's a bit grubby.  I suppose we could pretend not to have noticed, but
this really isn't the preferred way of putting arch-specific hooks into
arch-neutral code.

Nicer might be to add

void __weak arch_is_kernel_text(unsigned long addr)
{
	return 0;
}

with a declaration in linux/kallsyms.h and then override
arch_is_kernel_text() in arch/blackfin/ code.


        ^ stray space
                                         ^ and another one


so... for non-blackfin, the above addition is equivalent to

	&& (s->addr < 0 || s->addr > 0)

which is always true, except for s->addr==0, in which case we just broke
it.

I guess addr==0 isn't an interesting case here.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/2] kallsyms updates for Blackfin, Bryan Wu, (Fri Apr 25, 6:28 am)
Re: [PATCH 0/2] kallsyms updates for Blackfin, Paulo Marques, (Mon Apr 28, 2:59 pm)
Re: [PATCH 1/2] kallsyms: Allow kernel symbols in L1 to be f..., Andrew Morton, (Tue Apr 29, 6:00 pm)