Skip to content

Commit

Permalink
sh: Move over the SH-5 entry.S.
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Jan 28, 2008
1 parent 49e6c3e commit 343ac72
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
6 changes: 6 additions & 0 deletions arch/sh/kernel/cpu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions arch/sh/kernel/cpu/sh5/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
obj-y := entry.o
4 changes: 1 addition & 3 deletions arch/sh64/kernel/entry.S → arch/sh/kernel/cpu/sh5/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@
* 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>
Expand Down
17 changes: 12 additions & 5 deletions include/asm-sh/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

#include <asm/cpu-features.h>

#ifndef __ASSEMBLY__

/*
* CPU type and hardware bug flags. Kept separately for each CPU.
*
Expand Down Expand Up @@ -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);
Expand All @@ -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 */

0 comments on commit 343ac72

Please sign in to comment.