function calls from identify_cpu()
Benjamin Herrenschmidt
benh at kernel.crashing.org
Sat May 3 09:29:40 EST 2008
On Fri, 2008-05-02 at 13:42 -0700, Kevin Diggs wrote:
> I added:
>
> int __init iDoNothingUseful(struct cpu_spec *s,struct cpu_spec *t)
> {
> return s-t;
> }
>
> right before the definition of identify_cpu() in cputable.c and:
>
> // (void) (*PTRRELOC(&iDoNothingUseful))(s,t);
> (void) iDoNothingUseful(s,t);
>
> right before the return s; in the match block and it will not boot? Can
> someone please explain what might be going on?
Why are you trying to muck around with that code in the first
place ? :-)
What are you trying to achieve ?
Cheers,
Ben.
More information about the Linuxppc-dev
mailing list