]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ppc: Remove extable relocation fixups
authorPeter Tyser <ptyser@xes-inc.com>
Mon, 21 Sep 2009 16:20:29 +0000 (11:20 -0500)
committerWolfgang Denk <wd@denx.de>
Sat, 3 Oct 2009 08:17:56 +0000 (10:17 +0200)
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
lib_ppc/extable.c

index 91e2b3d246186d56466781e09e4da462bac43dc9..7408d5c96946acff06b7f49098dac6c113d0bba3 100644 (file)
@@ -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;
 }