diff options
author | Peter Tyser <ptyser@xes-inc.com> | 2009-09-21 11:20:29 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-10-03 10:17:56 +0200 |
commit | e6b05e774d7ce1641613cdeffb69c1d48139a869 (patch) | |
tree | ea9788daacf9b97b75ba42499be93eaf2c29034a /lib_ppc | |
parent | b32a894011b1436758905fa10e6a03b8539c43c9 (diff) | |
download | bootable_bootloader_goldelico_gta04-e6b05e774d7ce1641613cdeffb69c1d48139a869.zip bootable_bootloader_goldelico_gta04-e6b05e774d7ce1641613cdeffb69c1d48139a869.tar.gz bootable_bootloader_goldelico_gta04-e6b05e774d7ce1641613cdeffb69c1d48139a869.tar.bz2 |
ppc: Remove extable relocation fixups
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Diffstat (limited to 'lib_ppc')
-rw-r--r-- | lib_ppc/extable.c | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/lib_ppc/extable.c b/lib_ppc/extable.c index 91e2b3d..7408d5c 100644 --- a/lib_ppc/extable.c +++ b/lib_ppc/extable.c @@ -53,27 +53,13 @@ search_one_table(const struct exception_table_entry *first, unsigned long value) { long diff; - if ((ulong) first > CONFIG_SYS_MONITOR_BASE) { - /* exception occurs in FLASH, before u-boot relocation. - * No relocation offset is needed. - */ - while (first <= last) { - diff = first->insn - value; - if (diff == 0) - return first->fixup; - first++; - } - } else { - /* exception occurs in RAM, after u-boot relocation. - * A relocation offset should be added. - */ - while (first <= last) { - diff = (first->insn + gd->reloc_off) - value; - if (diff == 0) - return (first->fixup + gd->reloc_off); - first++; - } + while (first <= last) { + diff = first->insn - value; + if (diff == 0) + return first->fixup; + first++; } + return 0; } |