diff options
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/Kconfig | 64 | ||||
-rw-r--r-- | arch/sparc/kernel/process.c | 6 | ||||
-rw-r--r-- | arch/sparc/kernel/signal.c | 11 | ||||
-rw-r--r-- | arch/sparc/kernel/sparc_ksyms.c | 5 | ||||
-rw-r--r-- | arch/sparc/kernel/systbls.S | 8 |
5 files changed, 15 insertions, 79 deletions
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 237f922520fd..aca028aa29bf 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig | |||
@@ -264,66 +264,18 @@ config SUNOS_EMUL | |||
264 | want to run SunOS binaries on an Ultra you must also say Y to | 264 | want to run SunOS binaries on an Ultra you must also say Y to |
265 | "Kernel support for 32-bit a.out binaries" above. | 265 | "Kernel support for 32-bit a.out binaries" above. |
266 | 266 | ||
267 | source "drivers/parport/Kconfig" | 267 | source "mm/Kconfig" |
268 | |||
269 | config PRINTER | ||
270 | tristate "Parallel printer support" | ||
271 | depends on PARPORT | ||
272 | ---help--- | ||
273 | If you intend to attach a printer to the parallel port of your Linux | ||
274 | box (as opposed to using a serial printer; if the connector at the | ||
275 | printer has 9 or 25 holes ["female"], then it's serial), say Y. | ||
276 | Also read the Printing-HOWTO, available from | ||
277 | <http://www.tldp.org/docs.html#howto>. | ||
278 | |||
279 | It is possible to share one parallel port among several devices | ||
280 | (e.g. printer and ZIP drive) and it is safe to compile the | ||
281 | corresponding drivers into the kernel. If you want to compile this | ||
282 | driver as a module however, choose M here and read | ||
283 | <file:Documentation/parport.txt>. The module will be called lp. | ||
284 | |||
285 | If you have several parallel ports, you can specify which ports to | ||
286 | use with the "lp" kernel command line option. (Try "man bootparam" | ||
287 | or see the documentation of your boot loader (silo) about how to pass | ||
288 | options to the kernel at boot time.) The syntax of the "lp" command | ||
289 | line option can be found in <file:drivers/char/lp.c>. | ||
290 | |||
291 | If you have more than 8 printers, you need to increase the LP_NO | ||
292 | macro in lp.c and the PARPORT_MAX macro in parport.h. | ||
293 | 268 | ||
294 | endmenu | 269 | endmenu |
295 | 270 | ||
296 | source "drivers/base/Kconfig" | 271 | source "net/Kconfig" |
297 | |||
298 | source "drivers/video/Kconfig" | ||
299 | |||
300 | source "drivers/mtd/Kconfig" | ||
301 | 272 | ||
302 | source "drivers/serial/Kconfig" | 273 | source "drivers/Kconfig" |
303 | 274 | ||
304 | if !SUN4 | 275 | if !SUN4 |
305 | source "drivers/sbus/char/Kconfig" | 276 | source "drivers/sbus/char/Kconfig" |
306 | endif | 277 | endif |
307 | 278 | ||
308 | source "drivers/block/Kconfig" | ||
309 | |||
310 | # Don't frighten a common SBus user | ||
311 | if PCI | ||
312 | |||
313 | source "drivers/ide/Kconfig" | ||
314 | |||
315 | endif | ||
316 | |||
317 | source "drivers/isdn/Kconfig" | ||
318 | |||
319 | source "drivers/scsi/Kconfig" | ||
320 | |||
321 | source "drivers/fc4/Kconfig" | ||
322 | |||
323 | source "drivers/md/Kconfig" | ||
324 | |||
325 | source "net/Kconfig" | ||
326 | |||
327 | # This one must be before the filesystem configs. -DaveM | 279 | # This one must be before the filesystem configs. -DaveM |
328 | 280 | ||
329 | menu "Unix98 PTY support" | 281 | menu "Unix98 PTY support" |
@@ -372,18 +324,8 @@ config UNIX98_PTY_COUNT | |||
372 | 324 | ||
373 | endmenu | 325 | endmenu |
374 | 326 | ||
375 | source "drivers/input/Kconfig" | ||
376 | |||
377 | source "fs/Kconfig" | 327 | source "fs/Kconfig" |
378 | 328 | ||
379 | source "sound/Kconfig" | ||
380 | |||
381 | source "drivers/usb/Kconfig" | ||
382 | |||
383 | source "drivers/infiniband/Kconfig" | ||
384 | |||
385 | source "drivers/char/watchdog/Kconfig" | ||
386 | |||
387 | source "arch/sparc/Kconfig.debug" | 329 | source "arch/sparc/Kconfig.debug" |
388 | 330 | ||
389 | source "security/Kconfig" | 331 | source "security/Kconfig" |
diff --git a/arch/sparc/kernel/process.c b/arch/sparc/kernel/process.c index 2c216ffeea90..29e72b57d4fd 100644 --- a/arch/sparc/kernel/process.c +++ b/arch/sparc/kernel/process.c | |||
@@ -158,8 +158,6 @@ void machine_halt(void) | |||
158 | panic("Halt failed!"); | 158 | panic("Halt failed!"); |
159 | } | 159 | } |
160 | 160 | ||
161 | EXPORT_SYMBOL(machine_halt); | ||
162 | |||
163 | void machine_restart(char * cmd) | 161 | void machine_restart(char * cmd) |
164 | { | 162 | { |
165 | char *p; | 163 | char *p; |
@@ -180,8 +178,6 @@ void machine_restart(char * cmd) | |||
180 | panic("Reboot failed!"); | 178 | panic("Reboot failed!"); |
181 | } | 179 | } |
182 | 180 | ||
183 | EXPORT_SYMBOL(machine_restart); | ||
184 | |||
185 | void machine_power_off(void) | 181 | void machine_power_off(void) |
186 | { | 182 | { |
187 | #ifdef CONFIG_SUN_AUXIO | 183 | #ifdef CONFIG_SUN_AUXIO |
@@ -191,8 +187,6 @@ void machine_power_off(void) | |||
191 | machine_halt(); | 187 | machine_halt(); |
192 | } | 188 | } |
193 | 189 | ||
194 | EXPORT_SYMBOL(machine_power_off); | ||
195 | |||
196 | static DEFINE_SPINLOCK(sparc_backtrace_lock); | 190 | static DEFINE_SPINLOCK(sparc_backtrace_lock); |
197 | 191 | ||
198 | void __show_backtrace(unsigned long fp) | 192 | void __show_backtrace(unsigned long fp) |
diff --git a/arch/sparc/kernel/signal.c b/arch/sparc/kernel/signal.c index 011ff35057a5..5f34d7dc2b89 100644 --- a/arch/sparc/kernel/signal.c +++ b/arch/sparc/kernel/signal.c | |||
@@ -1034,13 +1034,12 @@ handle_signal(unsigned long signr, struct k_sigaction *ka, | |||
1034 | else | 1034 | else |
1035 | setup_frame(&ka->sa, regs, signr, oldset, info); | 1035 | setup_frame(&ka->sa, regs, signr, oldset, info); |
1036 | } | 1036 | } |
1037 | if (!(ka->sa.sa_flags & SA_NOMASK)) { | 1037 | spin_lock_irq(¤t->sighand->siglock); |
1038 | spin_lock_irq(¤t->sighand->siglock); | 1038 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); |
1039 | sigorsets(¤t->blocked,¤t->blocked,&ka->sa.sa_mask); | 1039 | if (!(ka->sa.sa_flags & SA_NOMASK)) |
1040 | sigaddset(¤t->blocked, signr); | 1040 | sigaddset(¤t->blocked, signr); |
1041 | recalc_sigpending(); | 1041 | recalc_sigpending(); |
1042 | spin_unlock_irq(¤t->sighand->siglock); | 1042 | spin_unlock_irq(¤t->sighand->siglock); |
1043 | } | ||
1044 | } | 1043 | } |
1045 | 1044 | ||
1046 | static inline void syscall_restart(unsigned long orig_i0, struct pt_regs *regs, | 1045 | static inline void syscall_restart(unsigned long orig_i0, struct pt_regs *regs, |
diff --git a/arch/sparc/kernel/sparc_ksyms.c b/arch/sparc/kernel/sparc_ksyms.c index 1bd430d0ca06..8faa8dc4de43 100644 --- a/arch/sparc/kernel/sparc_ksyms.c +++ b/arch/sparc/kernel/sparc_ksyms.c | |||
@@ -98,8 +98,9 @@ extern void ___rw_write_enter(void); | |||
98 | * The module references will be fixed up by module_frob_arch_sections. | 98 | * The module references will be fixed up by module_frob_arch_sections. |
99 | */ | 99 | */ |
100 | #define DOT_ALIAS2(__ret, __x, __arg1, __arg2) \ | 100 | #define DOT_ALIAS2(__ret, __x, __arg1, __arg2) \ |
101 | extern __ret __x(__arg1, __arg2) \ | 101 | extern __ret __x(__arg1, __arg2); \ |
102 | __attribute__((weak, alias("." # __x))); | 102 | asm(".weak " #__x);\ |
103 | asm(#__x "=." #__x); | ||
103 | 104 | ||
104 | DOT_ALIAS2(int, div, int, int) | 105 | DOT_ALIAS2(int, div, int, int) |
105 | DOT_ALIAS2(int, mul, int, int) | 106 | DOT_ALIAS2(int, mul, int, int) |
diff --git a/arch/sparc/kernel/systbls.S b/arch/sparc/kernel/systbls.S index 928ffeb0fabb..e457a40838fc 100644 --- a/arch/sparc/kernel/systbls.S +++ b/arch/sparc/kernel/systbls.S | |||
@@ -48,8 +48,8 @@ sys_call_table: | |||
48 | /*135*/ .long sys_nis_syscall, sys_mkdir, sys_rmdir, sys_utimes, sys_stat64 | 48 | /*135*/ .long sys_nis_syscall, sys_mkdir, sys_rmdir, sys_utimes, sys_stat64 |
49 | /*140*/ .long sys_sendfile64, sys_nis_syscall, sys_futex, sys_gettid, sys_getrlimit | 49 | /*140*/ .long sys_sendfile64, sys_nis_syscall, sys_futex, sys_gettid, sys_getrlimit |
50 | /*145*/ .long sys_setrlimit, sys_pivot_root, sys_prctl, sys_pciconfig_read, sys_pciconfig_write | 50 | /*145*/ .long sys_setrlimit, sys_pivot_root, sys_prctl, sys_pciconfig_read, sys_pciconfig_write |
51 | /*150*/ .long sys_nis_syscall, sys_nis_syscall, sys_nis_syscall, sys_poll, sys_getdents64 | 51 | /*150*/ .long sys_nis_syscall, sys_inotify_init, sys_inotify_add_watch, sys_poll, sys_getdents64 |
52 | /*155*/ .long sys_fcntl64, sys_ni_syscall, sys_statfs, sys_fstatfs, sys_oldumount | 52 | /*155*/ .long sys_fcntl64, sys_inotify_rm_watch, sys_statfs, sys_fstatfs, sys_oldumount |
53 | /*160*/ .long sys_sched_setaffinity, sys_sched_getaffinity, sys_getdomainname, sys_setdomainname, sys_nis_syscall | 53 | /*160*/ .long sys_sched_setaffinity, sys_sched_getaffinity, sys_getdomainname, sys_setdomainname, sys_nis_syscall |
54 | /*165*/ .long sys_quotactl, sys_set_tid_address, sys_mount, sys_ustat, sys_setxattr | 54 | /*165*/ .long sys_quotactl, sys_set_tid_address, sys_mount, sys_ustat, sys_setxattr |
55 | /*170*/ .long sys_lsetxattr, sys_fsetxattr, sys_getxattr, sys_lgetxattr, sys_getdents | 55 | /*170*/ .long sys_lsetxattr, sys_fsetxattr, sys_getxattr, sys_lgetxattr, sys_getdents |
@@ -57,11 +57,11 @@ sys_call_table: | |||
57 | /*180*/ .long sys_flistxattr, sys_removexattr, sys_lremovexattr, sys_sigpending, sys_ni_syscall | 57 | /*180*/ .long sys_flistxattr, sys_removexattr, sys_lremovexattr, sys_sigpending, sys_ni_syscall |
58 | /*185*/ .long sys_setpgid, sys_fremovexattr, sys_tkill, sys_exit_group, sys_newuname | 58 | /*185*/ .long sys_setpgid, sys_fremovexattr, sys_tkill, sys_exit_group, sys_newuname |
59 | /*190*/ .long sys_init_module, sys_personality, sparc_remap_file_pages, sys_epoll_create, sys_epoll_ctl | 59 | /*190*/ .long sys_init_module, sys_personality, sparc_remap_file_pages, sys_epoll_create, sys_epoll_ctl |
60 | /*195*/ .long sys_epoll_wait, sys_nis_syscall, sys_getppid, sparc_sigaction, sys_sgetmask | 60 | /*195*/ .long sys_epoll_wait, sys_ioprio_set, sys_getppid, sparc_sigaction, sys_sgetmask |
61 | /*200*/ .long sys_ssetmask, sys_sigsuspend, sys_newlstat, sys_uselib, old_readdir | 61 | /*200*/ .long sys_ssetmask, sys_sigsuspend, sys_newlstat, sys_uselib, old_readdir |
62 | /*205*/ .long sys_readahead, sys_socketcall, sys_syslog, sys_lookup_dcookie, sys_fadvise64 | 62 | /*205*/ .long sys_readahead, sys_socketcall, sys_syslog, sys_lookup_dcookie, sys_fadvise64 |
63 | /*210*/ .long sys_fadvise64_64, sys_tgkill, sys_waitpid, sys_swapoff, sys_sysinfo | 63 | /*210*/ .long sys_fadvise64_64, sys_tgkill, sys_waitpid, sys_swapoff, sys_sysinfo |
64 | /*215*/ .long sys_ipc, sys_sigreturn, sys_clone, sys_nis_syscall, sys_adjtimex | 64 | /*215*/ .long sys_ipc, sys_sigreturn, sys_clone, sys_ioprio_get, sys_adjtimex |
65 | /*220*/ .long sys_sigprocmask, sys_ni_syscall, sys_delete_module, sys_ni_syscall, sys_getpgid | 65 | /*220*/ .long sys_sigprocmask, sys_ni_syscall, sys_delete_module, sys_ni_syscall, sys_getpgid |
66 | /*225*/ .long sys_bdflush, sys_sysfs, sys_nis_syscall, sys_setfsuid16, sys_setfsgid16 | 66 | /*225*/ .long sys_bdflush, sys_sysfs, sys_nis_syscall, sys_setfsuid16, sys_setfsgid16 |
67 | /*230*/ .long sys_select, sys_time, sys_nis_syscall, sys_stime, sys_statfs64 | 67 | /*230*/ .long sys_select, sys_time, sys_nis_syscall, sys_stime, sys_statfs64 |