diff options
Diffstat (limited to 'arch/sparc64')
-rw-r--r-- | arch/sparc64/Kconfig | 5 | ||||
-rw-r--r-- | arch/sparc64/kernel/binfmt_aout32.c | 3 | ||||
-rw-r--r-- | arch/sparc64/kernel/irq.c | 2 | ||||
-rw-r--r-- | arch/sparc64/kernel/process.c | 12 | ||||
-rw-r--r-- | arch/sparc64/kernel/setup.c | 1 | ||||
-rw-r--r-- | arch/sparc64/kernel/sparc64_ksyms.c | 1 | ||||
-rw-r--r-- | arch/sparc64/kernel/sys_sparc.c | 1 | ||||
-rw-r--r-- | arch/sparc64/kernel/sys_sparc32.c | 1 | ||||
-rw-r--r-- | arch/sparc64/solaris/misc.c | 4 |
9 files changed, 9 insertions, 21 deletions
diff --git a/arch/sparc64/Kconfig b/arch/sparc64/Kconfig index 565404ddcdc4..b810f2b7526a 100644 --- a/arch/sparc64/Kconfig +++ b/arch/sparc64/Kconfig | |||
@@ -81,6 +81,9 @@ config GENERIC_HARDIRQS_NO__DO_IRQ | |||
81 | bool | 81 | bool |
82 | def_bool y | 82 | def_bool y |
83 | 83 | ||
84 | config ARCH_SUPPORTS_AOUT | ||
85 | def_bool y | ||
86 | |||
84 | choice | 87 | choice |
85 | prompt "Kernel page size" | 88 | prompt "Kernel page size" |
86 | default SPARC64_PAGE_SIZE_8KB | 89 | default SPARC64_PAGE_SIZE_8KB |
@@ -384,7 +387,7 @@ config COMPAT | |||
384 | 387 | ||
385 | config BINFMT_AOUT32 | 388 | config BINFMT_AOUT32 |
386 | bool "Kernel support for 32-bit (ie. SunOS) a.out binaries" | 389 | bool "Kernel support for 32-bit (ie. SunOS) a.out binaries" |
387 | depends on SPARC32_COMPAT | 390 | depends on SPARC32_COMPAT && ARCH_SUPPORTS_AOUT |
388 | help | 391 | help |
389 | This allows you to run 32-bit a.out format binaries on your Ultra. | 392 | This allows you to run 32-bit a.out format binaries on your Ultra. |
390 | If you want to run SunOS binaries (see SunOS binary emulation below) | 393 | If you want to run SunOS binaries (see SunOS binary emulation below) |
diff --git a/arch/sparc64/kernel/binfmt_aout32.c b/arch/sparc64/kernel/binfmt_aout32.c index 92c1b36a2e16..9877f2d7672d 100644 --- a/arch/sparc64/kernel/binfmt_aout32.c +++ b/arch/sparc64/kernel/binfmt_aout32.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <asm/uaccess.h> | 32 | #include <asm/uaccess.h> |
33 | #include <asm/pgalloc.h> | 33 | #include <asm/pgalloc.h> |
34 | #include <asm/mmu_context.h> | 34 | #include <asm/mmu_context.h> |
35 | #include <asm/a.out-core.h> | ||
35 | 36 | ||
36 | static int load_aout32_binary(struct linux_binprm *, struct pt_regs * regs); | 37 | static int load_aout32_binary(struct linux_binprm *, struct pt_regs * regs); |
37 | static int load_aout32_library(struct file*); | 38 | static int load_aout32_library(struct file*); |
@@ -101,7 +102,7 @@ static int aout32_core_dump(long signr, struct pt_regs *regs, struct file *file, | |||
101 | current->flags |= PF_DUMPCORE; | 102 | current->flags |= PF_DUMPCORE; |
102 | strncpy(dump.u_comm, current->comm, sizeof(dump.u_comm)); | 103 | strncpy(dump.u_comm, current->comm, sizeof(dump.u_comm)); |
103 | dump.signal = signr; | 104 | dump.signal = signr; |
104 | dump_thread(regs, &dump); | 105 | aout_dump_thread(regs, &dump); |
105 | 106 | ||
106 | /* If the size of the dump file exceeds the rlimit, then see what would happen | 107 | /* If the size of the dump file exceeds the rlimit, then see what would happen |
107 | if we wrote the stack, but not the data area. */ | 108 | if we wrote the stack, but not the data area. */ |
diff --git a/arch/sparc64/kernel/irq.c b/arch/sparc64/kernel/irq.c index 30431bd24e1e..5ec06c8c7fea 100644 --- a/arch/sparc64/kernel/irq.c +++ b/arch/sparc64/kernel/irq.c | |||
@@ -522,7 +522,7 @@ static struct irq_chip sun4v_virq = { | |||
522 | .set_affinity = sun4v_virt_set_affinity, | 522 | .set_affinity = sun4v_virt_set_affinity, |
523 | }; | 523 | }; |
524 | 524 | ||
525 | static void fastcall pre_flow_handler(unsigned int virt_irq, | 525 | static void pre_flow_handler(unsigned int virt_irq, |
526 | struct irq_desc *desc) | 526 | struct irq_desc *desc) |
527 | { | 527 | { |
528 | struct irq_handler_data *data = get_irq_chip_data(virt_irq); | 528 | struct irq_handler_data *data = get_irq_chip_data(virt_irq); |
diff --git a/arch/sparc64/kernel/process.c b/arch/sparc64/kernel/process.c index ca7cdfd55f72..1b2379174988 100644 --- a/arch/sparc64/kernel/process.c +++ b/arch/sparc64/kernel/process.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include <linux/ptrace.h> | 24 | #include <linux/ptrace.h> |
25 | #include <linux/slab.h> | 25 | #include <linux/slab.h> |
26 | #include <linux/user.h> | 26 | #include <linux/user.h> |
27 | #include <linux/a.out.h> | ||
28 | #include <linux/reboot.h> | 27 | #include <linux/reboot.h> |
29 | #include <linux/delay.h> | 28 | #include <linux/delay.h> |
30 | #include <linux/compat.h> | 29 | #include <linux/compat.h> |
@@ -725,17 +724,6 @@ pid_t kernel_thread(int (*fn)(void *), void * arg, unsigned long flags) | |||
725 | return retval; | 724 | return retval; |
726 | } | 725 | } |
727 | 726 | ||
728 | /* | ||
729 | * fill in the user structure for a core dump.. | ||
730 | */ | ||
731 | void dump_thread(struct pt_regs * regs, struct user * dump) | ||
732 | { | ||
733 | /* Only should be used for SunOS and ancient a.out | ||
734 | * SparcLinux binaries... Not worth implementing. | ||
735 | */ | ||
736 | memset(dump, 0, sizeof(struct user)); | ||
737 | } | ||
738 | |||
739 | typedef struct { | 727 | typedef struct { |
740 | union { | 728 | union { |
741 | unsigned int pr_regs[32]; | 729 | unsigned int pr_regs[32]; |
diff --git a/arch/sparc64/kernel/setup.c b/arch/sparc64/kernel/setup.c index a813441b358f..5964d8653ade 100644 --- a/arch/sparc64/kernel/setup.c +++ b/arch/sparc64/kernel/setup.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #include <linux/slab.h> | 15 | #include <linux/slab.h> |
16 | #include <asm/smp.h> | 16 | #include <asm/smp.h> |
17 | #include <linux/user.h> | 17 | #include <linux/user.h> |
18 | #include <linux/a.out.h> | ||
19 | #include <linux/screen_info.h> | 18 | #include <linux/screen_info.h> |
20 | #include <linux/delay.h> | 19 | #include <linux/delay.h> |
21 | #include <linux/fs.h> | 20 | #include <linux/fs.h> |
diff --git a/arch/sparc64/kernel/sparc64_ksyms.c b/arch/sparc64/kernel/sparc64_ksyms.c index 8649635d6d74..68db08930399 100644 --- a/arch/sparc64/kernel/sparc64_ksyms.c +++ b/arch/sparc64/kernel/sparc64_ksyms.c | |||
@@ -53,7 +53,6 @@ | |||
53 | #include <asm/ebus.h> | 53 | #include <asm/ebus.h> |
54 | #include <asm/isa.h> | 54 | #include <asm/isa.h> |
55 | #endif | 55 | #endif |
56 | #include <asm/a.out.h> | ||
57 | #include <asm/ns87303.h> | 56 | #include <asm/ns87303.h> |
58 | #include <asm/timer.h> | 57 | #include <asm/timer.h> |
59 | #include <asm/cpudata.h> | 58 | #include <asm/cpudata.h> |
diff --git a/arch/sparc64/kernel/sys_sparc.c b/arch/sparc64/kernel/sys_sparc.c index c56573a10eee..134d801579f9 100644 --- a/arch/sparc64/kernel/sys_sparc.c +++ b/arch/sparc64/kernel/sys_sparc.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <asm/uaccess.h> | 28 | #include <asm/uaccess.h> |
29 | #include <asm/utrap.h> | 29 | #include <asm/utrap.h> |
30 | #include <asm/perfctr.h> | 30 | #include <asm/perfctr.h> |
31 | #include <asm/a.out.h> | ||
32 | #include <asm/unistd.h> | 31 | #include <asm/unistd.h> |
33 | 32 | ||
34 | /* #define DEBUG_UNIMP_SYSCALL */ | 33 | /* #define DEBUG_UNIMP_SYSCALL */ |
diff --git a/arch/sparc64/kernel/sys_sparc32.c b/arch/sparc64/kernel/sys_sparc32.c index 98c468803ce3..deaba2bd0535 100644 --- a/arch/sparc64/kernel/sys_sparc32.c +++ b/arch/sparc64/kernel/sys_sparc32.c | |||
@@ -57,7 +57,6 @@ | |||
57 | #include <asm/fpumacro.h> | 57 | #include <asm/fpumacro.h> |
58 | #include <asm/semaphore.h> | 58 | #include <asm/semaphore.h> |
59 | #include <asm/mmu_context.h> | 59 | #include <asm/mmu_context.h> |
60 | #include <asm/a.out.h> | ||
61 | #include <asm/compat_signal.h> | 60 | #include <asm/compat_signal.h> |
62 | 61 | ||
63 | asmlinkage long sys32_chown16(const char __user * filename, u16 user, u16 group) | 62 | asmlinkage long sys32_chown16(const char __user * filename, u16 user, u16 group) |
diff --git a/arch/sparc64/solaris/misc.c b/arch/sparc64/solaris/misc.c index c86cb3091a8e..d3e48e9701bf 100644 --- a/arch/sparc64/solaris/misc.c +++ b/arch/sparc64/solaris/misc.c | |||
@@ -415,7 +415,7 @@ asmlinkage int solaris_procids(int cmd, s32 pid, s32 pgid) | |||
415 | 415 | ||
416 | switch (cmd) { | 416 | switch (cmd) { |
417 | case 0: /* getpgrp */ | 417 | case 0: /* getpgrp */ |
418 | return task_pgrp_nr(current); | 418 | return task_pgrp_vnr(current); |
419 | case 1: /* setpgrp */ | 419 | case 1: /* setpgrp */ |
420 | { | 420 | { |
421 | int (*sys_setpgid)(pid_t,pid_t) = | 421 | int (*sys_setpgid)(pid_t,pid_t) = |
@@ -426,7 +426,7 @@ asmlinkage int solaris_procids(int cmd, s32 pid, s32 pgid) | |||
426 | ret = sys_setpgid(0, 0); | 426 | ret = sys_setpgid(0, 0); |
427 | if (ret) return ret; | 427 | if (ret) return ret; |
428 | proc_clear_tty(current); | 428 | proc_clear_tty(current); |
429 | return task_pgrp_nr(current); | 429 | return task_pgrp_vnr(current); |
430 | } | 430 | } |
431 | case 2: /* getsid */ | 431 | case 2: /* getsid */ |
432 | { | 432 | { |