ppc: Dereference function descriptors on ppc64
commitd06178f3dfc05685146a5741a2dc629d7578132a
authorafaerber <afaerber@f158a5a8-5612-0410-a976-696ce0be7e32>
Thu, 25 Nov 2010 21:53:25 +0000 (25 21:53 +0000)
committerafaerber <afaerber@f158a5a8-5612-0410-a976-696ce0be7e32>
Thu, 25 Nov 2010 21:53:25 +0000 (25 21:53 +0000)
treee94cb512ce3e293ab6adee210d9776518d90cd92
parent1a0e37345d86b90e180b8896a0452f973e439fcd
ppc: Dereference function descriptors on ppc64

In the ppc64 ELF ABI, similar to ia64, a function's symbol does not directly
precede its machine instructions. For ppc64 it consists of a triple of
entry point, TOC base and environment pointer.

Introduce macros to facilitate handling this.
Names suggested by Blue.

Deliberately don't touch the client interface yet, as there's more work to do.

Cc: Alexander Graf <agraf@suse.de>
Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
git-svn-id: svn://openbios.org/openbios/trunk/openbios-devel@968 f158a5a8-5612-0410-a976-696ce0be7e32
arch/ppc/qemu/start.S
include/arch/ppc/asmdefs.h