Title: [6587] trunk/arch/blackfin: push L1 attribute on access_ok() down to the function definition as consumers of the function dont care where it lives -- they will always use pcrel calls to get to it
- Revision
- 6587
- Author
- vapier
- Date
- 2009-06-04 14:24:31 -0500 (Thu, 04 Jun 2009)
Log Message
push L1 attribute on access_ok() down to the function definition as consumers of the function dont care where it lives -- they will always use pcrel calls to get to it
Modified Paths
Diff
Modified: trunk/arch/blackfin/include/asm/uaccess.h (6586 => 6587)
--- trunk/arch/blackfin/include/asm/uaccess.h 2009-06-04 19:21:17 UTC (rev 6586)
+++ trunk/arch/blackfin/include/asm/uaccess.h 2009-06-04 19:24:31 UTC (rev 6587)
@@ -59,12 +59,8 @@
#ifndef CONFIG_ACCESS_CHECK
static inline int _access_ok(unsigned long addr, unsigned long size) { return 1; }
#else
-#ifdef CONFIG_ACCESS_OK_L1
-extern int _access_ok(unsigned long addr, unsigned long size)__attribute__((l1_text));
-#else
extern int _access_ok(unsigned long addr, unsigned long size);
#endif
-#endif
/*
* The exception table consists of pairs of addresses: the first is the
Modified: trunk/arch/blackfin/kernel/process.c (6586 => 6587)
--- trunk/arch/blackfin/kernel/process.c 2009-06-04 19:21:17 UTC (rev 6586)
+++ trunk/arch/blackfin/kernel/process.c 2009-06-04 19:24:31 UTC (rev 6587)
@@ -322,6 +322,9 @@
}
#if defined(CONFIG_ACCESS_CHECK)
+#ifdef CONFIG_ACCESS_OK_L1
+__attribute__((l1_text))
+#endif
/* Return 1 if access to memory range is OK, 0 otherwise */
int _access_ok(unsigned long addr, unsigned long size)
{
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits