[BACK]Return to sections.h CVS log [TXT][DIR] Up to [Development] / linux-2.6-xfs / include / asm-powerpc

File: [Development] / linux-2.6-xfs / include / asm-powerpc / Attic / sections.h (download)

Revision 1.2, Wed Jan 25 00:04:14 2006 UTC (11 years, 8 months ago) by cattelan
Branch: MAIN
Changes since 1.1: +2 -0 lines

Merge up to 2.6.16-rc1

#ifndef _ASM_POWERPC_SECTIONS_H
#define _ASM_POWERPC_SECTIONS_H
#ifdef __KERNEL__

#include <asm-generic/sections.h>

#ifdef __powerpc64__

extern char _end[];

static inline int in_kernel_text(unsigned long addr)
{
	if (addr >= (unsigned long)_stext && addr < (unsigned long)__init_end)
		return 1;

	return 0;
}

#endif

#endif /* __KERNEL__ */
#endif	/* _ASM_POWERPC_SECTIONS_H */