summaryrefslogtreecommitdiffstats
path: root/arch/ppc/mach-mpc5xxx/start.S
diff options
context:
space:
mode:
authorRenaud Barbier <renaud.barbier@ge.com>2012-05-10 14:56:46 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-05-11 09:06:44 +0200
commit6cd96bded74a23f2edd2a917bef45a705a4bb374 (patch)
tree0fbc9292821446fa7e183123109289fb5828ddac /arch/ppc/mach-mpc5xxx/start.S
parentf755d703c450c8c828c4eb503e6a61a5c1e2c38e (diff)
downloadbarebox-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.S14
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