2005-09-17 15:39:46 +00:00
|
|
|
#ifndef _ASM_POWERPC_SECTIONS_H
|
|
|
|
#define _ASM_POWERPC_SECTIONS_H
|
2005-12-16 21:43:46 +00:00
|
|
|
#ifdef __KERNEL__
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
#include <asm-generic/sections.h>
|
|
|
|
|
2005-09-17 15:39:46 +00:00
|
|
|
#ifdef __powerpc64__
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2005-09-17 15:39:46 +00:00
|
|
|
extern char _end[];
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
static inline int in_kernel_text(unsigned long addr)
|
|
|
|
{
|
|
|
|
if (addr >= (unsigned long)_stext && addr < (unsigned long)__init_end)
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2008-09-04 01:43:36 +00:00
|
|
|
#undef dereference_function_descriptor
|
|
|
|
void *dereference_function_descriptor(void *);
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
#endif
|
2005-09-17 15:39:46 +00:00
|
|
|
|
2005-12-16 21:43:46 +00:00
|
|
|
#endif /* __KERNEL__ */
|
2005-09-17 15:39:46 +00:00
|
|
|
#endif /* _ASM_POWERPC_SECTIONS_H */
|