[PATCH] powerpc: Merge simplified sections.h into asm-powerpc
Here is a new patch that removes all notion of the pmac, prep, chrp and openfirmware initialization sections, and then unifies the sections.h files without those __pmac, etc, sections identifiers cluttering things up. Signed-off-by: Jon Loeliger <jdl@freescale.com> Signed-off-by: Kumar Gala <kumar.gala@freescale.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
committed by
Paul Mackerras
parent
6c45ab992e
commit
fbcd54b1e6
20
include/asm-powerpc/sections.h
Normal file
20
include/asm-powerpc/sections.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef _ASM_POWERPC_SECTIONS_H
|
||||
#define _ASM_POWERPC_SECTIONS_H
|
||||
|
||||
#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 /* _ASM_POWERPC_SECTIONS_H */
|
Reference in New Issue
Block a user