Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _PPC64_SECTIONS_H |
| 2 | #define _PPC64_SECTIONS_H |
| 3 | |
| 4 | extern char _end[]; |
| 5 | |
| 6 | #include <asm-generic/sections.h> |
| 7 | |
| 8 | #define __pmac |
| 9 | #define __pmacdata |
| 10 | |
| 11 | #define __prep |
| 12 | #define __prepdata |
| 13 | |
| 14 | #define __chrp |
| 15 | #define __chrpdata |
| 16 | |
| 17 | #define __openfirmware |
| 18 | #define __openfirmwaredata |
| 19 | |
| 20 | |
| 21 | static inline int in_kernel_text(unsigned long addr) |
| 22 | { |
| 23 | if (addr >= (unsigned long)_stext && addr < (unsigned long)__init_end) |
| 24 | return 1; |
| 25 | |
| 26 | return 0; |
| 27 | } |
| 28 | |
| 29 | #endif |