2 * linux/arch/i386/mm/extable.c
5 #include <linux/config.h>
6 #include <linux/module.h>
7 #include <linux/spinlock.h>
8 #include <asm/uaccess.h>
10 /* Simple binary search */
11 const struct exception_table_entry *
12 search_extable(const struct exception_table_entry *first,
13 const struct exception_table_entry *last,
16 while (first <= last) {
17 const struct exception_table_entry *mid;
20 mid = (last - first) / 2 + first;
21 diff = mid->insn - value;