git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
arch
/
i386
/
math-emu
/
fpu_system.h
diff --git
a/arch/i386/math-emu/fpu_system.h
b/arch/i386/math-emu/fpu_system.h
index
2ddfe12
..
a3ae28c
100644
(file)
--- a/
arch/i386/math-emu/fpu_system.h
+++ b/
arch/i386/math-emu/fpu_system.h
@@
-66,21
+66,22
@@
#define instruction_address (*(struct address *)&I387.soft.fip)
#define operand_address (*(struct address *)&I387.soft.foo)
#define instruction_address (*(struct address *)&I387.soft.fip)
#define operand_address (*(struct address *)&I387.soft.foo)
-#define FPU_
verify_area(x,y,z) if ( verify_area
(x,y,z) ) \
+#define FPU_
access_ok(x,y,z) if ( !access_ok
(x,y,z) ) \
math_abort(FPU_info,SIGSEGV)
math_abort(FPU_info,SIGSEGV)
+#define FPU_abort math_abort(FPU_info, SIGSEGV)
#undef FPU_IGNORE_CODE_SEGV
#ifdef FPU_IGNORE_CODE_SEGV
#undef FPU_IGNORE_CODE_SEGV
#ifdef FPU_IGNORE_CODE_SEGV
-/*
verify_area
() is very expensive, and causes the emulator to run
+/*
access_ok
() is very expensive, and causes the emulator to run
about 20% slower if applied to the code. Anyway, errors due to bad
code addresses should be much rarer than errors due to bad data
addresses. */
about 20% slower if applied to the code. Anyway, errors due to bad
code addresses should be much rarer than errors due to bad data
addresses. */
-#define FPU_code_
verify_area
(z)
+#define FPU_code_
access_ok
(z)
#else
#else
-/* A simpler test than
verify_area
() can probably be done for
- FPU_code_
verify_area
() because the only possible error is to step
+/* A simpler test than
access_ok
() can probably be done for
+ FPU_code_
access_ok
() because the only possible error is to step
past the upper boundary of a legal code area. */
past the upper boundary of a legal code area. */
-#define FPU_code_
verify_area(z) FPU_verify_area
(VERIFY_READ,(void __user *)FPU_EIP,z)
+#define FPU_code_
access_ok(z) FPU_access_ok
(VERIFY_READ,(void __user *)FPU_EIP,z)
#endif
#define FPU_get_user(x,y) get_user((x),(y))
#endif
#define FPU_get_user(x,y) get_user((x),(y))