]> git.karo-electronics.de Git - linux-beck.git/commitdiff
sh: Move over the SH-5 entry.S.
authorPaul Mundt <lethal@linux-sh.org>
Sun, 11 Nov 2007 09:11:18 +0000 (18:11 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 28 Jan 2008 04:18:46 +0000 (13:18 +0900)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/Makefile
arch/sh/kernel/cpu/sh5/Makefile [new file with mode: 0644]
arch/sh/kernel/cpu/sh5/entry.S [moved from arch/sh64/kernel/entry.S with 99% similarity]
include/asm-sh/processor.h

index d055a3ea6b4b3ebab9551053246a3dfc88b9bc3d..f471d242774e13c60b31f3766ebfc6ab9f7f496d 100644 (file)
@@ -6,8 +6,14 @@ obj-$(CONFIG_CPU_SH2)          = sh2/
 obj-$(CONFIG_CPU_SH2A)         = sh2a/
 obj-$(CONFIG_CPU_SH3)          = sh3/
 obj-$(CONFIG_CPU_SH4)          = sh4/
+obj-$(CONFIG_CPU_SH5)          = sh5/
+
+# Special cases for family ancestry.
+
 obj-$(CONFIG_CPU_SH4A)         += sh4a/
 
+# Common interfaces.
+
 obj-$(CONFIG_UBC_WAKEUP)       += ubc.o
 obj-$(CONFIG_SH_ADC)           += adc.o
 
diff --git a/arch/sh/kernel/cpu/sh5/Makefile b/arch/sh/kernel/cpu/sh5/Makefile
new file mode 100644 (file)
index 0000000..9778f9b
--- /dev/null
@@ -0,0 +1 @@
+obj-y := entry.o
similarity index 99%
rename from arch/sh64/kernel/entry.S
rename to arch/sh/kernel/cpu/sh5/entry.S
index 7013fcb6665cfa517d8e1691415a03e43247e85a..2f505a7cb5f945db07243fd94250b7e4a5a0dde1 100644 (file)
  * Copyright (C) 2003, 2004 Richard Curnow
  *
  */
-
 #include <linux/errno.h>
 #include <linux/sys.h>
-
+#include <asm/cpu/registers.h>
 #include <asm/processor.h>
-#include <asm/registers.h>
 #include <asm/unistd.h>
 #include <asm/thread_info.h>
 #include <asm/asm-offsets.h>
index 76c4dc7021cb5dc8943eb0deffd20f0709c92e56..f3bd82e958985584e610c3153a8d26857be7a6e2 100644 (file)
@@ -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 */