aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r--arch/sparc/kernel/auxio_64.c2
-rw-r--r--arch/sparc/kernel/pci.c1
-rw-r--r--arch/sparc/kernel/process_64.c2
-rw-r--r--arch/sparc/kernel/sbus.c1
-rw-r--r--arch/sparc/kernel/setup_64.c3
-rw-r--r--arch/sparc/kernel/sparc_ksyms_64.c136
-rw-r--r--arch/sparc/kernel/sys_sparc_64.c2
-rw-r--r--arch/sparc/kernel/time_64.c2
-rw-r--r--arch/sparc/kernel/traps_64.c2
9 files changed, 27 insertions, 124 deletions
diff --git a/arch/sparc/kernel/auxio_64.c b/arch/sparc/kernel/auxio_64.c
index 8b67347d4221..9f52db2d441c 100644
--- a/arch/sparc/kernel/auxio_64.c
+++ b/arch/sparc/kernel/auxio_64.c
@@ -72,6 +72,7 @@ void auxio_set_led(int on)
72 bit = (ebus ? AUXIO_PCIO_LED : AUXIO_AUX1_LED); 72 bit = (ebus ? AUXIO_PCIO_LED : AUXIO_AUX1_LED);
73 __auxio_set_bit(bit, on, ebus); 73 __auxio_set_bit(bit, on, ebus);
74} 74}
75EXPORT_SYMBOL(auxio_set_led);
75 76
76static void __auxio_sbus_set_lte(int on) 77static void __auxio_sbus_set_lte(int on)
77{ 78{
@@ -90,6 +91,7 @@ void auxio_set_lte(int on)
90 break; 91 break;
91 } 92 }
92} 93}
94EXPORT_SYMBOL(auxio_set_lte);
93 95
94static struct of_device_id __initdata auxio_match[] = { 96static struct of_device_id __initdata auxio_match[] = {
95 { 97 {
diff --git a/arch/sparc/kernel/pci.c b/arch/sparc/kernel/pci.c
index 923e9bbb9fe2..4638fba799e4 100644
--- a/arch/sparc/kernel/pci.c
+++ b/arch/sparc/kernel/pci.c
@@ -1077,6 +1077,7 @@ int pci_dma_supported(struct pci_dev *pdev, u64 device_mask)
1077 1077
1078 return (device_mask & dma_addr_mask) == dma_addr_mask; 1078 return (device_mask & dma_addr_mask) == dma_addr_mask;
1079} 1079}
1080EXPORT_SYMBOL(pci_dma_supported);
1080 1081
1081void pci_resource_to_user(const struct pci_dev *pdev, int bar, 1082void pci_resource_to_user(const struct pci_dev *pdev, int bar,
1082 const struct resource *rp, resource_size_t *start, 1083 const struct resource *rp, resource_size_t *start,
diff --git a/arch/sparc/kernel/process_64.c b/arch/sparc/kernel/process_64.c
index d5e2acef9877..cc8b5604442c 100644
--- a/arch/sparc/kernel/process_64.c
+++ b/arch/sparc/kernel/process_64.c
@@ -678,6 +678,7 @@ pid_t kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
678 "g1", "g2", "g3", "o0", "o1", "memory", "cc"); 678 "g1", "g2", "g3", "o0", "o1", "memory", "cc");
679 return retval; 679 return retval;
680} 680}
681EXPORT_SYMBOL(kernel_thread);
681 682
682typedef struct { 683typedef struct {
683 union { 684 union {
@@ -743,6 +744,7 @@ int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs)
743 } 744 }
744 return 1; 745 return 1;
745} 746}
747EXPORT_SYMBOL(dump_fpu);
746 748
747/* 749/*
748 * sparc_execve() executes a new program after the asm stub has set 750 * sparc_execve() executes a new program after the asm stub has set
diff --git a/arch/sparc/kernel/sbus.c b/arch/sparc/kernel/sbus.c
index 2ead310066d1..406e0872504e 100644
--- a/arch/sparc/kernel/sbus.c
+++ b/arch/sparc/kernel/sbus.c
@@ -117,6 +117,7 @@ void sbus_set_sbus64(struct device *dev, int bursts)
117 val |= (1UL << 4UL); 117 val |= (1UL << 4UL);
118 upa_writeq(val, cfg_reg); 118 upa_writeq(val, cfg_reg);
119} 119}
120EXPORT_SYMBOL(sbus_set_sbus64);
120 121
121/* INO number to IMAP register offset for SYSIO external IRQ's. 122/* INO number to IMAP register offset for SYSIO external IRQ's.
122 * This should conform to both Sunfire/Wildfire server and Fusion 123 * This should conform to both Sunfire/Wildfire server and Fusion
diff --git a/arch/sparc/kernel/setup_64.c b/arch/sparc/kernel/setup_64.c
index 555db7452ebe..49d061f4ae9d 100644
--- a/arch/sparc/kernel/setup_64.c
+++ b/arch/sparc/kernel/setup_64.c
@@ -58,6 +58,7 @@
58 * operations in asm/ns87303.h 58 * operations in asm/ns87303.h
59 */ 59 */
60DEFINE_SPINLOCK(ns87303_lock); 60DEFINE_SPINLOCK(ns87303_lock);
61EXPORT_SYMBOL(ns87303_lock);
61 62
62struct screen_info screen_info = { 63struct screen_info screen_info = {
63 0, 0, /* orig-x, orig-y */ 64 0, 0, /* orig-x, orig-y */
@@ -425,5 +426,7 @@ void sun_do_break(void)
425 426
426 prom_cmdline(); 427 prom_cmdline();
427} 428}
429EXPORT_SYMBOL(sun_do_break);
428 430
429int stop_a_enabled = 1; 431int stop_a_enabled = 1;
432EXPORT_SYMBOL(stop_a_enabled);
diff --git a/arch/sparc/kernel/sparc_ksyms_64.c b/arch/sparc/kernel/sparc_ksyms_64.c
index 62b5a91cd6b9..e92ad122382f 100644
--- a/arch/sparc/kernel/sparc_ksyms_64.c
+++ b/arch/sparc/kernel/sparc_ksyms_64.c
@@ -8,43 +8,15 @@
8#define PROMLIB_INTERNAL 8#define PROMLIB_INTERNAL
9 9
10#include <linux/module.h> 10#include <linux/module.h>
11#include <linux/types.h>
12#include <linux/sched.h>
13#include <linux/in6.h>
14#include <linux/pci.h> 11#include <linux/pci.h>
15#include <linux/interrupt.h>
16#include <linux/fs_struct.h>
17#include <linux/fs.h>
18#include <linux/mm.h>
19#include <linux/socket.h>
20#include <linux/syscalls.h>
21#include <linux/percpu.h>
22#include <linux/init.h> 12#include <linux/init.h>
23#include <linux/rwsem.h>
24#include <net/compat.h>
25 13
26#include <asm/oplib.h> 14#include <asm/spinlock.h>
27#include <asm/system.h> 15#include <asm/system.h>
28#include <asm/auxio.h>
29#include <asm/pgtable.h>
30#include <asm/io.h>
31#include <asm/irq.h>
32#include <asm/elf.h>
33#include <asm/head.h>
34#include <asm/smp.h>
35#include <asm/ptrace.h>
36#include <asm/uaccess.h>
37#include <asm/checksum.h>
38#include <asm/fpumacro.h>
39#include <asm/pgalloc.h>
40#include <asm/cacheflush.h>
41#ifdef CONFIG_SBUS
42#include <asm/dma.h>
43#endif
44#include <asm/ns87303.h>
45#include <asm/timer.h>
46#include <asm/cpudata.h> 16#include <asm/cpudata.h>
47#include <asm/ftrace.h> 17#include <asm/uaccess.h>
18#include <asm/spitfire.h>
19#include <asm/oplib.h>
48#include <asm/hypervisor.h> 20#include <asm/hypervisor.h>
49 21
50struct poll { 22struct poll {
@@ -53,19 +25,6 @@ struct poll {
53 short revents; 25 short revents;
54}; 26};
55 27
56extern void die_if_kernel(char *str, struct pt_regs *regs);
57extern pid_t kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);
58extern void sys_sigsuspend(void);
59extern int compat_sys_ioctl(unsigned int fd, unsigned int cmd, u32 arg);
60extern int (*handle_mathemu)(struct pt_regs *, struct fpustate *);
61extern long sparc32_open(const char __user * filename, int flags, int mode);
62extern int io_remap_pfn_range(struct vm_area_struct *vma, unsigned long from,
63 unsigned long pfn, unsigned long size, pgprot_t prot);
64
65extern int __ashrdi3(int, int);
66
67extern int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs);
68
69/* used by various drivers */ 28/* used by various drivers */
70#ifdef CONFIG_SMP 29#ifdef CONFIG_SMP
71/* Out of line rw-locking implementation. */ 30/* Out of line rw-locking implementation. */
@@ -76,37 +35,24 @@ EXPORT_SYMBOL(__write_unlock);
76EXPORT_SYMBOL(__write_trylock); 35EXPORT_SYMBOL(__write_trylock);
77#endif /* CONFIG_SMP */ 36#endif /* CONFIG_SMP */
78 37
79EXPORT_SYMBOL(sparc64_get_clock_tick); 38/* from helpers.S */
80
81EXPORT_SYMBOL(__flushw_user); 39EXPORT_SYMBOL(__flushw_user);
40EXPORT_SYMBOL_GPL(real_hard_smp_processor_id);
82 41
42/* from head_64.S */
43EXPORT_SYMBOL(__ret_efault);
83EXPORT_SYMBOL(tlb_type); 44EXPORT_SYMBOL(tlb_type);
84EXPORT_SYMBOL(sun4v_chip_type); 45EXPORT_SYMBOL(sun4v_chip_type);
85EXPORT_SYMBOL(get_fb_unmapped_area); 46EXPORT_SYMBOL(prom_root_node);
86EXPORT_SYMBOL(flush_icache_range);
87
88EXPORT_SYMBOL(flush_dcache_page);
89#ifdef DCACHE_ALIASING_POSSIBLE
90EXPORT_SYMBOL(__flush_dcache_range);
91#endif
92 47
48/* from hvcalls.S */
93EXPORT_SYMBOL(sun4v_niagara_getperf); 49EXPORT_SYMBOL(sun4v_niagara_getperf);
94EXPORT_SYMBOL(sun4v_niagara_setperf); 50EXPORT_SYMBOL(sun4v_niagara_setperf);
95EXPORT_SYMBOL(sun4v_niagara2_getperf); 51EXPORT_SYMBOL(sun4v_niagara2_getperf);
96EXPORT_SYMBOL(sun4v_niagara2_setperf); 52EXPORT_SYMBOL(sun4v_niagara2_setperf);
97 53
98EXPORT_SYMBOL(auxio_set_led);
99EXPORT_SYMBOL(auxio_set_lte);
100#ifdef CONFIG_SBUS
101EXPORT_SYMBOL(sbus_set_sbus64);
102#endif
103EXPORT_SYMBOL(outsb);
104EXPORT_SYMBOL(outsw);
105EXPORT_SYMBOL(outsl);
106EXPORT_SYMBOL(insb);
107EXPORT_SYMBOL(insw);
108EXPORT_SYMBOL(insl);
109#ifdef CONFIG_PCI 54#ifdef CONFIG_PCI
55/* inline functions in asm/pci_64.h */
110EXPORT_SYMBOL(pci_alloc_consistent); 56EXPORT_SYMBOL(pci_alloc_consistent);
111EXPORT_SYMBOL(pci_free_consistent); 57EXPORT_SYMBOL(pci_free_consistent);
112EXPORT_SYMBOL(pci_map_single); 58EXPORT_SYMBOL(pci_map_single);
@@ -115,65 +61,7 @@ EXPORT_SYMBOL(pci_map_sg);
115EXPORT_SYMBOL(pci_unmap_sg); 61EXPORT_SYMBOL(pci_unmap_sg);
116EXPORT_SYMBOL(pci_dma_sync_single_for_cpu); 62EXPORT_SYMBOL(pci_dma_sync_single_for_cpu);
117EXPORT_SYMBOL(pci_dma_sync_sg_for_cpu); 63EXPORT_SYMBOL(pci_dma_sync_sg_for_cpu);
118EXPORT_SYMBOL(pci_dma_supported);
119#endif 64#endif
120 65
121/* I/O device mmaping on Sparc64. */ 66/* Exporting a symbol from /init/main.c */
122EXPORT_SYMBOL(io_remap_pfn_range);
123
124EXPORT_SYMBOL(dump_fpu);
125
126/* math-emu wants this */
127EXPORT_SYMBOL(die_if_kernel);
128
129/* Kernel thread creation. */
130EXPORT_SYMBOL(kernel_thread);
131
132/* prom symbols */
133EXPORT_SYMBOL(prom_root_node);
134EXPORT_SYMBOL(prom_getchild);
135EXPORT_SYMBOL(prom_getsibling);
136EXPORT_SYMBOL(prom_searchsiblings);
137EXPORT_SYMBOL(prom_firstprop);
138EXPORT_SYMBOL(prom_nextprop);
139EXPORT_SYMBOL(prom_getproplen);
140EXPORT_SYMBOL(prom_getproperty);
141EXPORT_SYMBOL(prom_node_has_property);
142EXPORT_SYMBOL(prom_setprop);
143EXPORT_SYMBOL(saved_command_line); 67EXPORT_SYMBOL(saved_command_line);
144EXPORT_SYMBOL(prom_finddevice);
145EXPORT_SYMBOL(prom_feval);
146EXPORT_SYMBOL(prom_getbool);
147EXPORT_SYMBOL(prom_getstring);
148EXPORT_SYMBOL(prom_getint);
149EXPORT_SYMBOL(prom_getintdefault);
150EXPORT_SYMBOL(__prom_getchild);
151EXPORT_SYMBOL(__prom_getsibling);
152
153/* Moving data to/from/in userspace. */
154EXPORT_SYMBOL(copy_to_user_fixup);
155EXPORT_SYMBOL(copy_from_user_fixup);
156EXPORT_SYMBOL(copy_in_user_fixup);
157
158/* Various address conversion macros use this. */
159EXPORT_SYMBOL(sparc64_valid_addr_bitmap);
160
161/* No version information on this, heavily used in inline asm,
162 * and will always be 'void __ret_efault(void)'.
163 */
164EXPORT_SYMBOL(__ret_efault);
165
166/* for input/keybdev */
167EXPORT_SYMBOL(sun_do_break);
168EXPORT_SYMBOL(stop_a_enabled);
169
170#ifdef CONFIG_DEBUG_BUGVERBOSE
171EXPORT_SYMBOL(do_BUG);
172#endif
173
174/* for ns8703 */
175EXPORT_SYMBOL(ns87303_lock);
176
177EXPORT_SYMBOL(tick_ops);
178
179EXPORT_SYMBOL_GPL(real_hard_smp_processor_id);
diff --git a/arch/sparc/kernel/sys_sparc_64.c b/arch/sparc/kernel/sys_sparc_64.c
index 39749e32dc7e..09058fc39e73 100644
--- a/arch/sparc/kernel/sys_sparc_64.c
+++ b/arch/sparc/kernel/sys_sparc_64.c
@@ -23,6 +23,7 @@
23#include <linux/ipc.h> 23#include <linux/ipc.h>
24#include <linux/personality.h> 24#include <linux/personality.h>
25#include <linux/random.h> 25#include <linux/random.h>
26#include <linux/module.h>
26 27
27#include <asm/uaccess.h> 28#include <asm/uaccess.h>
28#include <asm/utrap.h> 29#include <asm/utrap.h>
@@ -354,6 +355,7 @@ unsigned long get_fb_unmapped_area(struct file *filp, unsigned long orig_addr, u
354 355
355 return addr; 356 return addr;
356} 357}
358EXPORT_SYMBOL(get_fb_unmapped_area);
357 359
358/* Essentially the same as PowerPC... */ 360/* Essentially the same as PowerPC... */
359void arch_pick_mmap_layout(struct mm_struct *mm) 361void arch_pick_mmap_layout(struct mm_struct *mm)
diff --git a/arch/sparc/kernel/time_64.c b/arch/sparc/kernel/time_64.c
index 54405d362148..2db3c2229b95 100644
--- a/arch/sparc/kernel/time_64.c
+++ b/arch/sparc/kernel/time_64.c
@@ -176,6 +176,7 @@ static struct sparc64_tick_ops tick_operations __read_mostly = {
176}; 176};
177 177
178struct sparc64_tick_ops *tick_ops __read_mostly = &tick_operations; 178struct sparc64_tick_ops *tick_ops __read_mostly = &tick_operations;
179EXPORT_SYMBOL(tick_ops);
179 180
180static void stick_disable_irq(void) 181static void stick_disable_irq(void)
181{ 182{
@@ -639,6 +640,7 @@ unsigned long sparc64_get_clock_tick(unsigned int cpu)
639 return ft->clock_tick_ref; 640 return ft->clock_tick_ref;
640 return cpu_data(cpu).clock_tick; 641 return cpu_data(cpu).clock_tick;
641} 642}
643EXPORT_SYMBOL(sparc64_get_clock_tick);
642 644
643#ifdef CONFIG_CPU_FREQ 645#ifdef CONFIG_CPU_FREQ
644 646
diff --git a/arch/sparc/kernel/traps_64.c b/arch/sparc/kernel/traps_64.c
index bca3b4e09c41..c2d153d46586 100644
--- a/arch/sparc/kernel/traps_64.c
+++ b/arch/sparc/kernel/traps_64.c
@@ -128,6 +128,7 @@ void do_BUG(const char *file, int line)
128 bust_spinlocks(1); 128 bust_spinlocks(1);
129 printk("kernel BUG at %s:%d!\n", file, line); 129 printk("kernel BUG at %s:%d!\n", file, line);
130} 130}
131EXPORT_SYMBOL(do_BUG);
131#endif 132#endif
132 133
133static DEFINE_SPINLOCK(dimm_handler_lock); 134static DEFINE_SPINLOCK(dimm_handler_lock);
@@ -2261,6 +2262,7 @@ void die_if_kernel(char *str, struct pt_regs *regs)
2261 do_exit(SIGKILL); 2262 do_exit(SIGKILL);
2262 do_exit(SIGSEGV); 2263 do_exit(SIGSEGV);
2263} 2264}
2265EXPORT_SYMBOL(die_if_kernel);
2264 2266
2265#define VIS_OPCODE_MASK ((0x3 << 30) | (0x3f << 19)) 2267#define VIS_OPCODE_MASK ((0x3 << 30) | (0x3f << 19))
2266#define VIS_OPCODE_VAL ((0x2 << 30) | (0x36 << 19)) 2268#define VIS_OPCODE_VAL ((0x2 << 30) | (0x36 << 19))