Finding module TOC address
Benjamin Herrenschmidt
benh at kernel.crashing.org
Thu May 26 08:06:07 EST 2005
On Wed, 2005-05-25 at 21:42 +0300, Heikki Lindholm wrote:
> Hello,
> I need to use assembly jump to a function in a module. How do I find out
> the TOC that the function expects to find in r2? A quick peek at
> kernel/module.c didn't help much, maybe someone here could enlighten me.
You don't, there is no TOC on ppc32 ABI, at least the kernel version of
it. r2 is reserved in the kernel and always contains "current".
Ben.
More information about the Linuxppc64-dev
mailing list