Skip to content
Snippets Groups Projects
Commit e6b05e77 authored by Peter Tyser's avatar Peter Tyser Committed by Wolfgang Denk
Browse files

ppc: Remove extable relocation fixups


Signed-off-by: default avatarPeter Tyser <ptyser@xes-inc.com>
parent b32a8940
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment