patch-2.4.14 linux/include/asm-m68k/uaccess.h

Next file: linux/include/asm-m68k/unistd.h
Previous file: linux/include/asm-m68k/system.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.13/linux/include/asm-m68k/uaccess.h linux/include/asm-m68k/uaccess.h
@@ -59,6 +59,9 @@
     case 4:						\
 	__put_user_asm(__pu_err, __pu_val, ptr, l);	\
 	break;						\
+    case 8:                                             \
+       __pu_err = __constant_copy_to_user(ptr, &__pu_val, 8);        \
+       break;                                           \
     default:						\
 	__pu_err = __put_user_bad();			\
 	break;						\
@@ -105,6 +108,9 @@
     case 4:							\
 	__get_user_asm(__gu_err, __gu_val, ptr, l, "=r");	\
 	break;							\
+    case 8:                                                     \
+        __gu_err = __constant_copy_from_user(&__gu_val, ptr, 8);  \
+        break;                                                  \
     default:							\
 	__gu_val = 0;						\
 	__gu_err = __get_user_bad();				\

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)