public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] asm/sections: add text/data checking functions for arches to override
@ 2009-06-17 16:22 Mike Frysinger
  2009-06-17 16:22 ` [PATCH 2/4] kallsyms: use new arch_is_kernel_text() Mike Frysinger
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Mike Frysinger @ 2009-06-17 16:22 UTC (permalink / raw)
  To: linux-kernel; +Cc: mingo, rgetz, akpm

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.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 include/asm-generic/sections.h |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/include/asm-generic/sections.h b/include/asm-generic/sections.h
index 4ce48e8..ee19462 100644
--- a/include/asm-generic/sections.h
+++ b/include/asm-generic/sections.h
@@ -20,4 +20,20 @@ extern char __start_rodata[], __end_rodata[];
 #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_ */
-- 
1.6.3.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-06-24  2:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-17 16:22 [PATCH 1/4] asm/sections: add text/data checking functions for arches to override Mike Frysinger
2009-06-17 16:22 ` [PATCH 2/4] kallsyms: use new arch_is_kernel_text() Mike Frysinger
2009-06-17 16:22 ` [PATCH 3/4] lockdep: use new arch_is_kernel_data() Mike Frysinger
2009-06-17 16:22 ` [PATCH 4/4] Blackfin: override text/data checking functions Mike Frysinger
2009-06-23 22:40 ` [PATCH 1/4] asm/sections: add text/data checking functions for arches to override Andrew Morton
2009-06-24  1:48   ` Mike Frysinger
2009-06-24  2:04     ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox