aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/sections.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/sections.h')
-rw-r--r--arch/powerpc/include/asm/sections.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/sections.h b/arch/powerpc/include/asm/sections.h
index 7710e9e6660f..baf318aec533 100644
--- a/arch/powerpc/include/asm/sections.h
+++ b/arch/powerpc/include/asm/sections.h
@@ -16,6 +16,12 @@ static inline int in_kernel_text(unsigned long addr)
16 return 0; 16 return 0;
17} 17}
18 18
19static inline int overlaps_kernel_text(unsigned long start, unsigned long end)
20{
21 return start < (unsigned long)__init_end &&
22 (unsigned long)_stext < end;
23}
24
19#undef dereference_function_descriptor 25#undef dereference_function_descriptor
20void *dereference_function_descriptor(void *); 26void *dereference_function_descriptor(void *);
21 27