X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=arch%2Fpowerpc%2Finclude%2Fasm%2Fsections.h;h=baf318aec533b60425e2f7ece08773c5e25f7cd3;hb=549e8152de8039506f69c677a4546e5427aa6ae7;hp=7710e9e6660fc52ef703c540a95b16a892ba3fca;hpb=e31aa453bbc4886a7bd33e5c2afa526d6f55bd7a;p=linux-2.6-omap-h63xx.git diff --git a/arch/powerpc/include/asm/sections.h b/arch/powerpc/include/asm/sections.h index 7710e9e6660..baf318aec53 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) return 0; } +static inline int overlaps_kernel_text(unsigned long start, unsigned long end) +{ + return start < (unsigned long)__init_end && + (unsigned long)_stext < end; +} + #undef dereference_function_descriptor void *dereference_function_descriptor(void *);