OMAP3 SRF: Add virt clk nodes for VDD1/VDD2
[linux-ginger.git] / arch / sh / include / asm / system_64.h
blob8e4a03e7966c00069e32c80c4135946f36805e6c
1 #ifndef __ASM_SH_SYSTEM_64_H
2 #define __ASM_SH_SYSTEM_64_H
4 /*
5 * include/asm-sh/system_64.h
7 * Copyright (C) 2000, 2001 Paolo Alberelli
8 * Copyright (C) 2003 Paul Mundt
9 * Copyright (C) 2004 Richard Curnow
11 * This file is subject to the terms and conditions of the GNU General Public
12 * License. See the file "COPYING" in the main directory of this archive
13 * for more details.
15 #include <asm/processor.h>
18 * switch_to() should switch tasks to task nr n, first
20 struct task_struct *sh64_switch_to(struct task_struct *prev,
21 struct thread_struct *prev_thread,
22 struct task_struct *next,
23 struct thread_struct *next_thread);
25 #define switch_to(prev,next,last) \
26 do { \
27 if (last_task_used_math != next) { \
28 struct pt_regs *regs = next->thread.uregs; \
29 if (regs) regs->sr |= SR_FD; \
30 } \
31 last = sh64_switch_to(prev, &prev->thread, next, \
32 &next->thread); \
33 } while (0)
35 #define __uses_jump_to_uncached
37 #define jump_to_uncached() do { } while (0)
38 #define back_to_cached() do { } while (0)
40 #define __icbi(addr) __asm__ __volatile__ ( "icbi %0, 0\n\t" : : "r" (addr))
41 #define __ocbp(addr) __asm__ __volatile__ ( "ocbp %0, 0\n\t" : : "r" (addr))
42 #define __ocbi(addr) __asm__ __volatile__ ( "ocbi %0, 0\n\t" : : "r" (addr))
43 #define __ocbwb(addr) __asm__ __volatile__ ( "ocbwb %0, 0\n\t" : : "r" (addr))
45 static inline reg_size_t register_align(void *val)
47 return (unsigned long long)(signed long long)(signed long)val;
50 #endif /* __ASM_SH_SYSTEM_64_H */