mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-22 07:01:39 +00:00
ppc: Remove extable relocation fixups
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
This commit is contained in:
parent
b32a894011
commit
e6b05e774d
1 changed files with 6 additions and 20 deletions
|
@ -53,27 +53,13 @@ search_one_table(const struct exception_table_entry *first,
|
||||||
unsigned long value)
|
unsigned long value)
|
||||||
{
|
{
|
||||||
long diff;
|
long diff;
|
||||||
if ((ulong) first > CONFIG_SYS_MONITOR_BASE) {
|
while (first <= last) {
|
||||||
/* exception occurs in FLASH, before u-boot relocation.
|
diff = first->insn - value;
|
||||||
* No relocation offset is needed.
|
if (diff == 0)
|
||||||
*/
|
return first->fixup;
|
||||||
while (first <= last) {
|
first++;
|
||||||
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++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue