[PATCH 38/39] put movsl_mask into uaccess.h
- Date: Fri, 27 Jun 2008 18:34:45 -0300
- From: Glauber Costa <gcosta@xxxxxxxxxx>
- Subject: [PATCH 38/39] put movsl_mask into uaccess.h
x86_64 does not need it, but it won't have X86_INTEL_USERCOPY
defined either.
Signed-off-by: Glauber Costa <gcosta@xxxxxxxxxx>
---
include/asm-x86/uaccess.h | 9 +++++++++
include/asm-x86/uaccess_32.h | 9 ---------
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/include/asm-x86/uaccess.h b/include/asm-x86/uaccess.h
index 4ebb992..ddc32fe 100644
--- a/include/asm-x86/uaccess.h
+++ b/include/asm-x86/uaccess.h
@@ -433,6 +433,15 @@ 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
+
#ifdef CONFIG_X86_32
# include "uaccess_32.h"
#else
diff --git a/include/asm-x86/uaccess_32.h b/include/asm-x86/uaccess_32.h
index d3b5bf8..3467749 100644
--- a/include/asm-x86/uaccess_32.h
+++ b/include/asm-x86/uaccess_32.h
@@ -11,15 +11,6 @@
#include <asm/asm.h>
#include <asm/page.h>
-/*
- * 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
-
unsigned long __must_check __copy_to_user_ll
(void __user *to, const void *from, unsigned long n);
unsigned long __must_check __copy_from_user_ll
--
1.5.5.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- [PATCH 39/39] define architectural characteristics in uaccess.h
- From: Glauber Costa
- [PATCH 39/39] define architectural characteristics in uaccess.h
- References:
- [PATCH 0/39] Merge files at x86/lib
- From: Glauber Costa
- [PATCH 01/39] Don't use size specifiers
- From: Glauber Costa
- [PATCH 02/39] provide delay loop for x86_64
- From: Glauber Costa
- [PATCH 03/39] use rdtscll in read_current_timer for i386.
- From: Glauber Costa
- [PATCH 04/39] explicitly use edx in const delay function.
- From: Glauber Costa
- [PATCH 05/39] integrate delay functions
- From: Glauber Costa
- [PATCH 06/39] use something common for both architectures
- From: Glauber Costa
- [PATCH 07/39] don't clobber r8 nor use rcx
- From: Glauber Costa
- [PATCH 08/39] don't use word-size specifiers
- From: Glauber Costa
- [PATCH 09/39] adapt x86_64 getuser functions
- From: Glauber Costa
- [PATCH 10/39] rename threadinfo to TI
- From: Glauber Costa
- [PATCH 11/39] Don't use word-size specifiers on getuser_64
- From: Glauber Costa
- [PATCH 12/39] introduce __ASM_REG macro
- From: Glauber Costa
- [PATCH 13/39] use _ASM_PTR instead of explicit word-size pointers
- From: Glauber Costa
- [PATCH 14/39] merge getuser asm functions
- From: Glauber Costa
- [PATCH 15/39] don't save ebx in putuser_32.S
- From: Glauber Costa
- [PATCH 16/39] user put_user_x instead of all variants.
- From: Glauber Costa
- [PATCH 17/39] clobber rbx in putuser_64.S
- From: Glauber Costa
- [PATCH 18/39] pass argument to putuser_64 functions in ax register.
- From: Glauber Costa
- [PATCH 19/39] change testing logic in putuser_64.S
- From: Glauber Costa
- [PATCH 20/39] replace function headers by macros
- From: Glauber Costa
- [PATCH 21/39] don't use word-size specifiers in putuser files
- From: Glauber Costa
- [PATCH 22/39] use macros from asm.h
- From: Glauber Costa
- [PATCH 23/39] merge putuser asm functions
- From: Glauber Costa
- [PATCH 24/39] commonize __range_not_ok
- From: Glauber Costa
- [PATCH 25/39] merge common parts of uaccess.
- From: Glauber Costa
- [PATCH 26/39] merge getuser
- From: Glauber Costa
- [PATCH 27/39] move __addr_ok to uaccess.h
- From: Glauber Costa
- [PATCH 28/39] use k modifier for 4-byte access.
- From: Glauber Costa
- [PATCH 29/39] mark x86_64 as having a working WP.
- From: Glauber Costa
- [PATCH 30/39] don't always use EFAULT on __put_user_size.
- From: Glauber Costa
- [PATCH 31/39] merge __put_user_asm and its user.
- From: Glauber Costa
- [PATCH 32/39] don't always use EFAULT on __get_user_size.
- From: Glauber Costa
- [PATCH 33/39] merge __get_user_asm and its users.
- From: Glauber Costa
- [PATCH 34/39] Be more explicit in __put_user_x
- From: Glauber Costa
- [PATCH 35/39] turn __put_user_check directly into put_user.
- From: Glauber Costa
- [PATCH 36/39] merge put_user
- From: Glauber Costa
- [PATCH 37/39] move __get_user and __put_user into uaccess.h
- From: Glauber Costa
- [PATCH 0/39] Merge files at x86/lib
- Prev by Date: [PATCH 34/39] Be more explicit in __put_user_x
- Next by Date: [PATCH 39/39] define architectural characteristics in uaccess.h
- Previous by thread: [PATCH 37/39] move __get_user and __put_user into uaccess.h
- Next by thread: [PATCH 39/39] define architectural characteristics in uaccess.h
- Index(es):