Skip to content

Commit

Permalink
[PATCH] powerpc: Merge simplified sections.h into asm-powerpc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jon Loeliger authored and Paul Mackerras committed Sep 18, 2005
1 parent 6c45ab9 commit fbcd54b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 48 deletions.
21 changes: 6 additions & 15 deletions include/asm-ppc64/sections.h → include/asm-powerpc/sections.h
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
#ifndef _PPC64_SECTIONS_H
#define _PPC64_SECTIONS_H

extern char _end[];
#ifndef _ASM_POWERPC_SECTIONS_H
#define _ASM_POWERPC_SECTIONS_H

#include <asm-generic/sections.h>

#define __pmac
#define __pmacdata

#define __prep
#define __prepdata

#define __chrp
#define __chrpdata

#define __openfirmware
#define __openfirmwaredata
#ifdef __powerpc64__

extern char _end[];

static inline int in_kernel_text(unsigned long addr)
{
Expand All @@ -27,3 +16,5 @@ static inline int in_kernel_text(unsigned long addr)
}

#endif

#endif /* _ASM_POWERPC_SECTIONS_H */
33 changes: 0 additions & 33 deletions include/asm-ppc/sections.h

This file was deleted.

0 comments on commit fbcd54b

Please sign in to comment.