lib: Correct printk %pF to work on all architectures
[linux-2.6/mini2440.git] / arch / powerpc / include / asm / sections.h
blob7710e9e6660fc52ef703c540a95b16a892ba3fca
1 #ifndef _ASM_POWERPC_SECTIONS_H
2 #define _ASM_POWERPC_SECTIONS_H
3 #ifdef __KERNEL__
5 #include <asm-generic/sections.h>
7 #ifdef __powerpc64__
9 extern char _end[];
11 static inline int in_kernel_text(unsigned long addr)
13 if (addr >= (unsigned long)_stext && addr < (unsigned long)__init_end)
14 return 1;
16 return 0;
19 #undef dereference_function_descriptor
20 void *dereference_function_descriptor(void *);
22 #endif
24 #endif /* __KERNEL__ */
25 #endif /* _ASM_POWERPC_SECTIONS_H */