Commit 00afe029 authored by Mike Frysinger's avatar Mike Frysinger Committed by Linus Torvalds

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: default avatarMike Frysinger <>
Cc: Ingo Molnar <>
Cc: Robin Getz <>
Cc: Sam Ravnborg <>
Cc: Peter Zijlstra <>
Cc: Arnd Bergmann <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent a9ece53c
......@@ -23,4 +23,20 @@ extern char __ctors_start[], __ctors_end[];
#define dereference_function_descriptor(p) (p)
/* 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;
#ifndef arch_is_kernel_data
static inline int arch_is_kernel_data(unsigned long addr)
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment