diff options
Diffstat (limited to 'arch/powerpc/include/asm/sections.h')
-rw-r--r-- | arch/powerpc/include/asm/sections.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/sections.h b/arch/powerpc/include/asm/sections.h index 07956f3e7844..6fbce725c710 100644 --- a/arch/powerpc/include/asm/sections.h +++ b/arch/powerpc/include/asm/sections.h | |||
@@ -18,6 +18,12 @@ static inline int in_kernel_text(unsigned long addr) | |||
18 | return 0; | 18 | return 0; |
19 | } | 19 | } |
20 | 20 | ||
21 | static inline int overlaps_kernel_text(unsigned long start, unsigned long end) | ||
22 | { | ||
23 | return start < (unsigned long)__init_end && | ||
24 | (unsigned long)_stext < end; | ||
25 | } | ||
26 | |||
21 | #undef dereference_function_descriptor | 27 | #undef dereference_function_descriptor |
22 | static inline void *dereference_function_descriptor(void *ptr) | 28 | static inline void *dereference_function_descriptor(void *ptr) |
23 | { | 29 | { |