diff options
Diffstat (limited to 'arch/sh/include/asm/processor.h')
| -rw-r--r-- | arch/sh/include/asm/processor.h | 29 | 
1 files changed, 20 insertions, 9 deletions
diff --git a/arch/sh/include/asm/processor.h b/arch/sh/include/asm/processor.h index c9e7cbc4768..5448f9bbf4a 100644 --- a/arch/sh/include/asm/processor.h +++ b/arch/sh/include/asm/processor.h @@ -18,7 +18,8 @@ enum cpu_type {  	CPU_SH7619,  	/* SH-2A types */ -	CPU_SH7201, CPU_SH7203, CPU_SH7206, CPU_SH7263, CPU_MXG, +	CPU_SH7201, CPU_SH7203, CPU_SH7206, CPU_SH7263, CPU_SH7264, CPU_SH7269, +	CPU_MXG,  	/* SH-3 types */  	CPU_SH7705, CPU_SH7706, CPU_SH7707, @@ -32,10 +33,10 @@ enum cpu_type {  	/* SH-4A types */  	CPU_SH7763, CPU_SH7770, CPU_SH7780, CPU_SH7781, CPU_SH7785, CPU_SH7786, -	CPU_SH7723, CPU_SH7724, CPU_SH7757, CPU_SHX3, +	CPU_SH7723, CPU_SH7724, CPU_SH7757, CPU_SH7734, CPU_SHX3,  	/* SH4AL-DSP types */ -	CPU_SH7343, CPU_SH7722, CPU_SH7366, +	CPU_SH7343, CPU_SH7722, CPU_SH7366, CPU_SH7372,  	/* SH-5 types */          CPU_SH5_101, CPU_SH5_103, @@ -85,10 +86,6 @@ struct sh_cpuinfo {  	struct tlb_info itlb;  	struct tlb_info dtlb; -#ifdef CONFIG_SMP -	struct task_struct *idle; -#endif -  	unsigned int phys_bits;  	unsigned long flags;  } __attribute__ ((aligned(L1_CACHE_BYTES))); @@ -101,6 +98,9 @@ extern struct sh_cpuinfo cpu_data[];  #define cpu_sleep()	__asm__ __volatile__ ("sleep" : : : "memory")  #define cpu_relax()	barrier() +void default_idle(void); +void stop_this_cpu(void *); +  /* Forward decl */  struct seq_operations;  struct task_struct; @@ -161,12 +161,23 @@ int vsyscall_init(void);  #define vsyscall_init() do { } while (0)  #endif +/* + * SH-2A has both 16 and 32-bit opcodes, do lame encoding checks. + */ +#ifdef CONFIG_CPU_SH2A +extern unsigned int instruction_size(unsigned int insn); +#elif defined(CONFIG_SUPERH32) +#define instruction_size(insn)	(2) +#else +#define instruction_size(insn)	(4) +#endif +  #endif /* __ASSEMBLY__ */  #ifdef CONFIG_SUPERH32 -# include "processor_32.h" +# include <asm/processor_32.h>  #else -# include "processor_64.h" +# include <asm/processor_64.h>  #endif  #endif /* __ASM_SH_PROCESSOR_H */  | 
