mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
Disintegrate asm/system.h for SH
Disintegrate asm/system.h for SH. Signed-off-by: David Howells <dhowells@redhat.com> cc: linux-sh@vger.kernel.org
This commit is contained in:
parent
4eb14db444
commit
e839ca5287
56 changed files with 503 additions and 396 deletions
|
@ -101,6 +101,10 @@ extern struct sh_cpuinfo cpu_data[];
|
|||
#define cpu_sleep() __asm__ __volatile__ ("sleep" : : : "memory")
|
||||
#define cpu_relax() barrier()
|
||||
|
||||
void default_idle(void);
|
||||
void cpu_idle_wait(void);
|
||||
void stop_this_cpu(void *);
|
||||
|
||||
/* Forward decl */
|
||||
struct seq_operations;
|
||||
struct task_struct;
|
||||
|
@ -161,6 +165,17 @@ 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue