You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
342 B
21 lines
342 B
20 years ago
|
#ifndef _ASM_POWERPC_SECTIONS_H
|
||
|
#define _ASM_POWERPC_SECTIONS_H
|
||
20 years ago
|
|
||
|
#include <asm-generic/sections.h>
|
||
|
|
||
20 years ago
|
#ifdef __powerpc64__
|
||
20 years ago
|
|
||
20 years ago
|
extern char _end[];
|
||
20 years ago
|
|
||
|
static inline int in_kernel_text(unsigned long addr)
|
||
|
{
|
||
|
if (addr >= (unsigned long)_stext && addr < (unsigned long)__init_end)
|
||
|
return 1;
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
#endif
|
||
20 years ago
|
|
||
|
#endif /* _ASM_POWERPC_SECTIONS_H */
|