[PATCH 4/6] Add ppc_function_entry() which gets the entry point for a function

Benjamin Herrenschmidt benh at kernel.crashing.org
Thu May 29 16:37:17 EST 2008


On Thu, 2008-05-29 at 16:20 +1000, Michael Ellerman wrote:
> Because function pointers point to different things on 32-bit vs
> 64-bit,
> add a macro that deals with dereferencing the OPD on 64-bit. The soon
> to
> be merged ftrace wants this, as well as other code I am working on.
> 
> Signed-off-by: Michael Ellerman <michael at ellerman.id.au>

Should we be smarter and also compare if the TOC pointer is the same
between the source and target and if not, warn loudly ?

Or we just don't care ?

Ben.





More information about the Linuxppc-dev mailing list