]>
git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - arch/powerpc/include/asm/sections.h
1 #ifndef _ASM_POWERPC_SECTIONS_H
2 #define _ASM_POWERPC_SECTIONS_H
6 #include <linux/uaccess.h>
7 #include <asm-generic/sections.h>
13 static inline int in_kernel_text(unsigned long addr
)
15 if (addr
>= (unsigned long)_stext
&& addr
< (unsigned long)__init_end
)
21 #undef dereference_function_descriptor
22 static inline void *dereference_function_descriptor(void *ptr
)
24 struct ppc64_opd_entry
*desc
= ptr
;
27 if (!probe_kernel_address(&desc
->funcaddr
, p
))
34 #endif /* __KERNEL__ */
35 #endif /* _ASM_POWERPC_SECTIONS_H */