Subject: Re: function calls from identify_cpu()

From: Benjamin Herrenschmidt <[email-masked]>
Date: Sat, 03 May 2008 09:29:40 +1000

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.