aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-11-11 18:11:18 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-01-28 13:18:46 +0900
commit343ac72248d360f1fae72176aca1117be19189ec (patch)
treef9f100f3e16aea8986e5054a4da26d69ecd954ca /include
parentsh: Split out linker script to _32 and _64 variants. (diff)
downloadlinux-dev-343ac72248d360f1fae72176aca1117be19189ec.tar.xz
linux-dev-343ac72248d360f1fae72176aca1117be19189ec.zip
sh: Move over the SH-5 entry.S.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-sh/processor.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/include/asm-sh/processor.h b/include/asm-sh/processor.h
index 76c4dc7021cb..f3bd82e95898 100644
--- a/include/asm-sh/processor.h
+++ b/include/asm-sh/processor.h
@@ -3,6 +3,8 @@
#include <asm/cpu-features.h>
+#ifndef __ASSEMBLY__
+
/*
* CPU type and hardware bug flags. Kept separately for each CPU.
*
@@ -40,11 +42,8 @@ enum cpu_type {
CPU_SH_NONE
};
-#ifdef CONFIG_SUPERH32
-# include "processor_32.h"
-#else
-# include "processor_64.h"
-#endif
+/* Forward decl */
+struct sh_cpuinfo;
/* arch/sh/kernel/setup.c */
const char *get_cpu_subtype(struct sh_cpuinfo *c);
@@ -55,4 +54,12 @@ int vsyscall_init(void);
#define vsyscall_init() do { } while (0)
#endif
+#endif /* __ASSEMBLY__ */
+
+#ifdef CONFIG_SUPERH32
+# include "processor_32.h"
+#else
+# include "processor_64.h"
+#endif
+
#endif /* __ASM_SH_PROCESSOR_H */