Title: [6770] trunk/include/asm-generic/sections.h: asm/sections: add text/data checking functions for arches to override
- Revision
- 6770
- Author
- vapier
- Date
- 2009-06-17 11:55:42 -0500 (Wed, 17 Jun 2009)
Log Message
asm/sections: add text/data checking functions for arches to override
Some ports (like the Blackfin arch) have a discontiguous memory map which
means there may be text or data that falls outside of the standard range
of the start/end text/data symbols. Creating some helper functions allows
these non-standard ports to declare these regions without adversely
affecting anyone else.
Modified Paths
Diff
Modified: trunk/include/asm-generic/sections.h (6769 => 6770)
--- trunk/include/asm-generic/sections.h 2009-06-17 16:54:59 UTC (rev 6769)
+++ trunk/include/asm-generic/sections.h 2009-06-17 16:55:42 UTC (rev 6770)
@@ -20,4 +20,20 @@
#define dereference_function_descriptor(p) (p)
#endif
+/* random extra sections (if any). Override
+ * in asm/sections.h */
+#ifndef arch_is_kernel_text
+static inline int arch_is_kernel_text(unsigned long addr)
+{
+ return 0;
+}
+#endif
+
+#ifndef arch_is_kernel_data
+static inline int arch_is_kernel_data(unsigned long addr)
+{
+ return 0;
+}
+#endif
+
#endif /* _ASM_GENERIC_SECTIONS_H_ */
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits