Commit | Line | Data |
---|---|---|
fbcd54b1 JL |
1 | #ifndef _ASM_POWERPC_SECTIONS_H |
2 | #define _ASM_POWERPC_SECTIONS_H | |
88ced031 | 3 | #ifdef __KERNEL__ |
1da177e4 LT |
4 | |
5 | #include <asm-generic/sections.h> | |
6 | ||
fbcd54b1 | 7 | #ifdef __powerpc64__ |
1da177e4 | 8 | |
fbcd54b1 | 9 | extern char _end[]; |
1da177e4 LT |
10 | |
11 | static inline int in_kernel_text(unsigned long addr) | |
12 | { | |
13 | if (addr >= (unsigned long)_stext && addr < (unsigned long)__init_end) | |
14 | return 1; | |
15 | ||
16 | return 0; | |
17 | } | |
18 | ||
19 | #endif | |
fbcd54b1 | 20 | |
88ced031 | 21 | #endif /* __KERNEL__ */ |
fbcd54b1 | 22 | #endif /* _ASM_POWERPC_SECTIONS_H */ |