git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Staging: comedi: Remove ni_660x_board typedef
[safe/jmp/linux-2.6]
/
lib
/
extable.c
diff --git
a/lib/extable.c
b/lib/extable.c
index
3f677a8
..
179c087
100644
(file)
--- a/
lib/extable.c
+++ b/
lib/extable.c
@@
-1,5
+1,4
@@
/*
/*
- * lib/extable.c
* Derived from arch/ppc/mm/extable.c and arch/i386/mm/extable.c.
*
* Copyright (C) 2004 Paul Mackerras, IBM Corp.
* Derived from arch/ppc/mm/extable.c and arch/i386/mm/extable.c.
*
* Copyright (C) 2004 Paul Mackerras, IBM Corp.
@@
-10,15
+9,11
@@
* 2 of the License, or (at your option) any later version.
*/
* 2 of the License, or (at your option) any later version.
*/
-#include <linux/config.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/sort.h>
#include <asm/uaccess.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/sort.h>
#include <asm/uaccess.h>
-extern struct exception_table_entry __start___ex_table[];
-extern struct exception_table_entry __stop___ex_table[];
-
#ifndef ARCH_HAS_SORT_EXTABLE
/*
* The exception table needs to be sorted so that the binary
#ifndef ARCH_HAS_SORT_EXTABLE
/*
* The exception table needs to be sorted so that the binary
@@
-62,10
+57,10
@@
search_extable(const struct exception_table_entry *first,
while (first <= last) {
const struct exception_table_entry *mid;
while (first <= last) {
const struct exception_table_entry *mid;
- mid = (
last - first) / 2
+ first;
+ mid = (
(last - first) >> 1)
+ first;
/*
/*
- * careful, the distance between
entries can be
- *
larger than 2GB
:
+ * careful, the distance between
value and insn
+ *
can be larger than MAX_LONG
:
*/
if (mid->insn < value)
first = mid + 1;
*/
if (mid->insn < value)
first = mid + 1;