diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-06-11 02:32:07 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-06-11 02:32:07 -0400 |
commit | 357d59469c1179c30b8c425aba302346fac3594e (patch) | |
tree | 6e27fcd85967ad06072ac84788ac891cbcc10235 /include | |
parent | 54039591cee40ef1f440f1245ed066c3e7d54a9a (diff) |
sh: Tidy up dependencies for SH-2 build.
SH-2 can presently get in to some pretty bogus states, so
we tidy up the dependencies a bit and get it all building
again.
This gets us a bit closer to a functional allyesconfig
and allmodconfig, though there are still a few things to
fix up.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-sh/cache.h | 4 | ||||
-rw-r--r-- | include/asm-sh/hd64461.h | 2 | ||||
-rw-r--r-- | include/asm-sh/processor.h | 4 | ||||
-rw-r--r-- | include/asm-sh/system.h | 2 | ||||
-rw-r--r-- | include/asm-sh/ubc.h | 9 |
5 files changed, 13 insertions, 8 deletions
diff --git a/include/asm-sh/cache.h b/include/asm-sh/cache.h index 9a3cb6ba9d15..7a18649d1ccb 100644 --- a/include/asm-sh/cache.h +++ b/include/asm-sh/cache.h | |||
@@ -9,6 +9,7 @@ | |||
9 | #define __ASM_SH_CACHE_H | 9 | #define __ASM_SH_CACHE_H |
10 | #ifdef __KERNEL__ | 10 | #ifdef __KERNEL__ |
11 | 11 | ||
12 | #include <linux/init.h> | ||
12 | #include <asm/cpu/cache.h> | 13 | #include <asm/cpu/cache.h> |
13 | 14 | ||
14 | #define SH_CACHE_VALID 1 | 15 | #define SH_CACHE_VALID 1 |
@@ -48,6 +49,9 @@ struct cache_info { | |||
48 | 49 | ||
49 | unsigned long flags; | 50 | unsigned long flags; |
50 | }; | 51 | }; |
52 | |||
53 | int __init detect_cpu_and_cache_system(void); | ||
54 | |||
51 | #endif /* __ASSEMBLY__ */ | 55 | #endif /* __ASSEMBLY__ */ |
52 | #endif /* __KERNEL__ */ | 56 | #endif /* __KERNEL__ */ |
53 | #endif /* __ASM_SH_CACHE_H */ | 57 | #endif /* __ASM_SH_CACHE_H */ |
diff --git a/include/asm-sh/hd64461.h b/include/asm-sh/hd64461.h index 27e5c34e2659..c9050b2b5510 100644 --- a/include/asm-sh/hd64461.h +++ b/include/asm-sh/hd64461.h | |||
@@ -184,7 +184,7 @@ | |||
184 | #define HD64461_NIRR 0x15000 | 184 | #define HD64461_NIRR 0x15000 |
185 | #define HD64461_NIMR 0x15002 | 185 | #define HD64461_NIMR 0x15002 |
186 | 186 | ||
187 | #define HD64461_IRQBASE OFFCHIP_IRQ_BASE | 187 | #define HD64461_IRQBASE 64 |
188 | #define HD64461_IRQ_NUM 16 | 188 | #define HD64461_IRQ_NUM 16 |
189 | 189 | ||
190 | #define HD64461_IRQ_UART (HD64461_IRQBASE+5) | 190 | #define HD64461_IRQ_UART (HD64461_IRQBASE+5) |
diff --git a/include/asm-sh/processor.h b/include/asm-sh/processor.h index 1fc5eed1b22a..1a20db096196 100644 --- a/include/asm-sh/processor.h +++ b/include/asm-sh/processor.h | |||
@@ -228,11 +228,7 @@ static __inline__ void grab_fpu(struct pt_regs *regs) | |||
228 | regs->sr &= ~SR_FD; | 228 | regs->sr &= ~SR_FD; |
229 | } | 229 | } |
230 | 230 | ||
231 | #ifdef CONFIG_CPU_SH4 | ||
232 | extern void save_fpu(struct task_struct *__tsk, struct pt_regs *regs); | 231 | extern void save_fpu(struct task_struct *__tsk, struct pt_regs *regs); |
233 | #else | ||
234 | #define save_fpu(tsk) do { } while (0) | ||
235 | #endif | ||
236 | 232 | ||
237 | #define unlazy_fpu(tsk, regs) do { \ | 233 | #define unlazy_fpu(tsk, regs) do { \ |
238 | if (test_tsk_thread_flag(tsk, TIF_USEDFPU)) { \ | 234 | if (test_tsk_thread_flag(tsk, TIF_USEDFPU)) { \ |
diff --git a/include/asm-sh/system.h b/include/asm-sh/system.h index fb22fc3f87ad..7c75045ae22b 100644 --- a/include/asm-sh/system.h +++ b/include/asm-sh/system.h | |||
@@ -126,7 +126,7 @@ static inline void sched_cacheflush(void) | |||
126 | #define smp_read_barrier_depends() do { } while(0) | 126 | #define smp_read_barrier_depends() do { } while(0) |
127 | #endif | 127 | #endif |
128 | 128 | ||
129 | #define set_mb(var, value) do { xchg(&var, value); } while (0) | 129 | #define set_mb(var, value) do { (void)xchg(&var, value); } while (0) |
130 | 130 | ||
131 | /* | 131 | /* |
132 | * Jump to P2 area. | 132 | * Jump to P2 area. |
diff --git a/include/asm-sh/ubc.h b/include/asm-sh/ubc.h index ae9bbdeefbe1..38d46e01b846 100644 --- a/include/asm-sh/ubc.h +++ b/include/asm-sh/ubc.h | |||
@@ -51,9 +51,14 @@ | |||
51 | #define BRCR_UBDE (1 << 0) | 51 | #define BRCR_UBDE (1 << 0) |
52 | 52 | ||
53 | #ifndef __ASSEMBLY__ | 53 | #ifndef __ASSEMBLY__ |
54 | /* arch/sh/kernel/ubc.S */ | 54 | /* arch/sh/kernel/cpu/ubc.S */ |
55 | extern void ubc_wakeup(void); | ||
56 | extern void ubc_sleep(void); | 55 | extern void ubc_sleep(void); |
56 | |||
57 | #ifdef CONFIG_UBC_WAKEUP | ||
58 | extern void ubc_wakeup(void); | ||
59 | #else | ||
60 | #define ubc_wakeup() do { } while (0) | ||
61 | #endif | ||
57 | #endif | 62 | #endif |
58 | 63 | ||
59 | #endif /* __KERNEL__ */ | 64 | #endif /* __KERNEL__ */ |