diff options
author | Renaud Barbier <renaud.barbier@ge.com> | 2012-05-10 14:56:46 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-05-11 09:06:44 +0200 |
commit | 6cd96bded74a23f2edd2a917bef45a705a4bb374 (patch) | |
tree | 0fbc9292821446fa7e183123109289fb5828ddac /arch/ppc/mach-mpc5xxx/start.S | |
parent | f755d703c450c8c828c4eb503e6a61a5c1e2c38e (diff) | |
download | barebox-6cd96bded74a23f2edd2a917bef45a705a4bb374.tar.gz barebox-6cd96bded74a23f2edd2a917bef45a705a4bb374.tar.xz |
ppc reloc.S: use a common trap relocation function
The trap relocation function trap_reloc can be used across several PPC
platforms and is added to the ppc library. Accordingly, the definition
of trap_reloc is removed from mach-mpc5xxx/start.S
Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/ppc/mach-mpc5xxx/start.S')
-rw-r--r-- | arch/ppc/mach-mpc5xxx/start.S | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/ppc/mach-mpc5xxx/start.S b/arch/ppc/mach-mpc5xxx/start.S index e098a87cc1..04e8fe3f4b 100644 --- a/arch/ppc/mach-mpc5xxx/start.S +++ b/arch/ppc/mach-mpc5xxx/start.S @@ -726,20 +726,6 @@ trap_init: mtlr r4 /* restore link register */ blr - /* - * Function: relocate entries for one exception vector - */ -trap_reloc: - lwz r0, 0(r7) /* hdlr ... */ - add r0, r0, r3 /* ... += dest_addr */ - stw r0, 0(r7) - - lwz r0, 4(r7) /* int_return ... */ - add r0, r0, r3 /* ... += dest_addr */ - stw r0, 4(r7) - - blr - .globl _text_base _text_base: .long TEXT_BASE |