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. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Robin Getz <rgetz@blackfin.uclinux.org> Cc: Sam Ravnborg <sam@ravnborg.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
a9ece53c40
commit
00afe029aa
@@ -23,4 +23,20 @@ extern char __ctors_start[], __ctors_end[];
|
|||||||
#define dereference_function_descriptor(p) (p)
|
#define dereference_function_descriptor(p) (p)
|
||||||
#endif
|
#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_ */
|
#endif /* _ASM_GENERIC_SECTIONS_H_ */
|
||||||
|
Reference in New Issue
Block a user