sections.h 471 B

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