1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2009 Wolfgang Denk <wd@denx.de>
6 #include <ppc_asm.tmpl>
11 #ifndef CONFIG_NAND_SPL
13 * Function: relocate entries for one exception vector
16 .type trap_reloc, @function
18 lwz r0, 0(r7) /* hdlr ... */
19 add r0, r0, r3 /* ... += dest_addr */
22 lwz r0, 4(r7) /* int_return ... */
23 add r0, r0, r3 /* ... += dest_addr */
26 lwz r0, 8(r7) /* transfer_to_handler ...*/
27 add r0, r0, r3 /* ... += dest_addr */
31 .size trap_reloc, .-trap_reloc