diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-12-07 03:04:30 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-07 03:04:30 -0500 |
commit | d34dd82905fb8e1117b67ab6c32989f88cfa0ba8 (patch) | |
tree | 9e39651b66ad2b7679c50e6392ce7b92c359f5e2 /arch/sparc/include/asm/spitfire.h | |
parent | 2bf05fa03ea10e7dcfd38cc8643bbb29c3ad6f9e (diff) |
sparc: unify kernel/cpu
o use cpu_32.c as base
o move all sparc64 definitions to the common cpu.c
o use ifdef for the parts that differs and use cpu_32 as base
o spitfire.h required a CONFIG_SPARC64 guard to fix build on 32 bit
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm/spitfire.h')
-rw-r--r-- | arch/sparc/include/asm/spitfire.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/sparc/include/asm/spitfire.h b/arch/sparc/include/asm/spitfire.h index 985ea7e31992..f0d0c40c44da 100644 --- a/arch/sparc/include/asm/spitfire.h +++ b/arch/sparc/include/asm/spitfire.h | |||
@@ -6,6 +6,8 @@ | |||
6 | #ifndef _SPARC64_SPITFIRE_H | 6 | #ifndef _SPARC64_SPITFIRE_H |
7 | #define _SPARC64_SPITFIRE_H | 7 | #define _SPARC64_SPITFIRE_H |
8 | 8 | ||
9 | #ifdef CONFIG_SPARC64 | ||
10 | |||
9 | #include <asm/asi.h> | 11 | #include <asm/asi.h> |
10 | 12 | ||
11 | /* The following register addresses are accessible via ASI_DMMU | 13 | /* The following register addresses are accessible via ASI_DMMU |
@@ -338,5 +340,5 @@ static inline void cheetah_put_itlb_data(int entry, unsigned long data) | |||
338 | } | 340 | } |
339 | 341 | ||
340 | #endif /* !(__ASSEMBLY__) */ | 342 | #endif /* !(__ASSEMBLY__) */ |
341 | 343 | #endif /* CONFIG_SPARC64 */ | |
342 | #endif /* !(_SPARC64_SPITFIRE_H) */ | 344 | #endif /* !(_SPARC64_SPITFIRE_H) */ |