diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-12-27 03:35:12 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-27 03:35:12 -0500 |
commit | 86ed40bd6fe511d26bb8f3fa65a84cb65c235366 (patch) | |
tree | 12ec939078887d6f5bc437cfd8ac34eff610c715 /arch/sparc/include/asm | |
parent | b74e34dbdeb39136e0557930a373392b7d644f43 (diff) |
sparc: unify sections.h
While doing this use standard names for start/end
so we could use definitions straight from asm-generic
for all the typical symbols.
This also allowed us to drop the use of PROVIDE in the linker
script so sprc is less non-standard on this area.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm')
-rw-r--r-- | arch/sparc/include/asm/sections.h | 16 | ||||
-rw-r--r-- | arch/sparc/include/asm/sections_32.h | 6 | ||||
-rw-r--r-- | arch/sparc/include/asm/sections_64.h | 9 |
3 files changed, 9 insertions, 22 deletions
diff --git a/arch/sparc/include/asm/sections.h b/arch/sparc/include/asm/sections.h index c7c69b00967f..0b0553bbd8a0 100644 --- a/arch/sparc/include/asm/sections.h +++ b/arch/sparc/include/asm/sections.h | |||
@@ -1,8 +1,10 @@ | |||
1 | #ifndef ___ASM_SPARC_SECTIONS_H | 1 | #ifndef __SPARC_SECTIONS_H |
2 | #define ___ASM_SPARC_SECTIONS_H | 2 | #define __SPARC_SECTIONS_H |
3 | #if defined(__sparc__) && defined(__arch64__) | 3 | |
4 | #include <asm/sections_64.h> | 4 | /* nothing to see, move along */ |
5 | #else | 5 | #include <asm-generic/sections.h> |
6 | #include <asm/sections_32.h> | 6 | |
7 | #endif | 7 | /* sparc entry point */ |
8 | extern char _start[]; | ||
9 | |||
8 | #endif | 10 | #endif |
diff --git a/arch/sparc/include/asm/sections_32.h b/arch/sparc/include/asm/sections_32.h deleted file mode 100644 index 6832841df051..000000000000 --- a/arch/sparc/include/asm/sections_32.h +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | #ifndef _SPARC_SECTIONS_H | ||
2 | #define _SPARC_SECTIONS_H | ||
3 | |||
4 | #include <asm-generic/sections.h> | ||
5 | |||
6 | #endif | ||
diff --git a/arch/sparc/include/asm/sections_64.h b/arch/sparc/include/asm/sections_64.h deleted file mode 100644 index 3f4b9fdc28d0..000000000000 --- a/arch/sparc/include/asm/sections_64.h +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | #ifndef _SPARC64_SECTIONS_H | ||
2 | #define _SPARC64_SECTIONS_H | ||
3 | |||
4 | /* nothing to see, move along */ | ||
5 | #include <asm-generic/sections.h> | ||
6 | |||
7 | extern char _start[]; | ||
8 | |||
9 | #endif | ||