]> Pileus Git - ~andy/linux/blobdiff - include/asm-x86/uaccess.h
ide: add struct ide_tp_ops (take 2)
[~andy/linux] / include / asm-x86 / uaccess.h
index 7c7b46af63688276139dae418d531b0d3841b3b8..f6fa4d841bbcd3cbd552bb205c84facc688bf050 100644 (file)
@@ -432,9 +432,21 @@ struct __large_struct { unsigned long buf[100]; };
 #define __get_user_unaligned __get_user
 #define __put_user_unaligned __put_user
 
+/*
+ * movsl can be slow when source and dest are not both 8-byte aligned
+ */
+#ifdef CONFIG_X86_INTEL_USERCOPY
+extern struct movsl_mask {
+       int mask;
+} ____cacheline_aligned_in_smp movsl_mask;
+#endif
+
+#define ARCH_HAS_NOCACHE_UACCESS 1
+
 #ifdef CONFIG_X86_32
 # include "uaccess_32.h"
 #else
+# define ARCH_HAS_SEARCH_EXTABLE
 # include "uaccess_64.h"
 #endif