linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* function calls from identify_cpu()
@ 2008-05-02 20:42 Kevin Diggs
  2008-05-02 23:29 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Diggs @ 2008-05-02 20:42 UTC (permalink / raw)
  To: linuxppc-dev

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?

Thanks!

kevin

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-05-03  4:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-02 20:42 function calls from identify_cpu() Kevin Diggs
2008-05-02 23:29 ` Benjamin Herrenschmidt
2008-05-03  5:45   ` Kevin Diggs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).