sections.h 342 B

1234567891011121314151617181920
  1. #ifndef _ASM_POWERPC_SECTIONS_H
  2. #define _ASM_POWERPC_SECTIONS_H
  3. #include <asm-generic/sections.h>
  4. #ifdef __powerpc64__
  5. extern char _end[];
  6. static inline int in_kernel_text(unsigned long addr)
  7. {
  8. if (addr >= (unsigned long)_stext && addr < (unsigned long)__init_end)
  9. return 1;
  10. return 0;
  11. }
  12. #endif
  13. #endif /* _ASM_POWERPC_SECTIONS_H */