diff options
Diffstat (limited to 'arch/sparc/kernel/kernel.h')
-rw-r--r-- | arch/sparc/kernel/kernel.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/sparc/kernel/kernel.h b/arch/sparc/kernel/kernel.h index 8325d7759381..fd6c36b1df74 100644 --- a/arch/sparc/kernel/kernel.h +++ b/arch/sparc/kernel/kernel.h | |||
@@ -4,6 +4,8 @@ | |||
4 | #include <linux/interrupt.h> | 4 | #include <linux/interrupt.h> |
5 | 5 | ||
6 | #include <asm/traps.h> | 6 | #include <asm/traps.h> |
7 | #include <asm/head.h> | ||
8 | #include <asm/io.h> | ||
7 | 9 | ||
8 | /* cpu.c */ | 10 | /* cpu.c */ |
9 | extern const char *sparc_pmu_type; | 11 | extern const char *sparc_pmu_type; |
@@ -14,6 +16,13 @@ extern int ncpus_probed; | |||
14 | /* setup_64.c */ | 16 | /* setup_64.c */ |
15 | struct seq_file; | 17 | struct seq_file; |
16 | extern void cpucap_info(struct seq_file *); | 18 | extern void cpucap_info(struct seq_file *); |
19 | |||
20 | static inline unsigned long kimage_addr_to_ra(const char *p) | ||
21 | { | ||
22 | unsigned long val = (unsigned long) p; | ||
23 | |||
24 | return kern_base + (val - KERNBASE); | ||
25 | } | ||
17 | #endif | 26 | #endif |
18 | 27 | ||
19 | #ifdef CONFIG_SPARC32 | 28 | #ifdef CONFIG_SPARC32 |