patch-2.1.79 linux/arch/ppc/mm/extable.c
Next file: linux/arch/ppc/mm/fault.c
Previous file: linux/arch/ppc/mktar
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Mon Jan 12 15:18:13 1998
- Orig file:
v2.1.78/linux/arch/ppc/mm/extable.c
- Orig date:
Thu Sep 4 17:07:30 1997
diff -u --recursive --new-file v2.1.78/linux/arch/ppc/mm/extable.c linux/arch/ppc/mm/extable.c
@@ -16,17 +16,10 @@
const struct exception_table_entry *last,
unsigned long value)
{
- const struct exception_table_entry *mid;
- for ( mid = first; mid < last; mid++)
- {
- if ( mid->insn == value )
- return mid->fixup;
- }
- return 0;
-#if 0
while (first <= last) {
const struct exception_table_entry *mid;
long diff;
+
mid = (last - first) / 2 + first;
diff = mid->insn - value;
if (diff == 0)
@@ -36,7 +29,6 @@
else
last = mid-1;
}
-#endif
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov