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