5 #include <linux/module.h>
7 #include <asm/uaccess.h>
11 extern const void __memset_end, __memset_user_error_lr, __memset_user_error_handler;
12 extern const void __memcpy_end, __memcpy_user_error_lr, __memcpy_user_error_handler;
23 while (first <= last) {
27 mid = (last -
first) / 2 + first;
48 if (__frame->lr == (
unsigned long) &__memset_user_error_lr &&
49 (
unsigned long) &
memset <= pc && pc < (
unsigned long) &__memset_end
55 return (
unsigned long) &__memset_user_error_handler;
58 if (__frame->lr == (
unsigned long) &__memcpy_user_error_lr &&
59 (
unsigned long) &
memcpy <= pc && pc < (
unsigned long) &__memcpy_end
65 return (
unsigned long) &__memcpy_user_error_handler;