diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/appldata/appldata_base.c | 5 | ||||
-rw-r--r-- | arch/s390/kernel/entry.S | 8 | ||||
-rw-r--r-- | arch/s390/kernel/entry64.S | 8 | ||||
-rw-r--r-- | arch/s390/kernel/setup.c | 1 | ||||
-rw-r--r-- | arch/s390/kernel/traps.c | 9 | ||||
-rw-r--r-- | arch/sh/kernel/signal.c | 9 | ||||
-rw-r--r-- | arch/sh/kernel/traps.c | 3 |
7 files changed, 32 insertions, 11 deletions
diff --git a/arch/s390/appldata/appldata_base.c b/arch/s390/appldata/appldata_base.c index 81a2b92ab0c2..6ffbab77ae4d 100644 --- a/arch/s390/appldata/appldata_base.c +++ b/arch/s390/appldata/appldata_base.c | |||
@@ -535,8 +535,7 @@ void appldata_unregister_ops(struct appldata_ops *ops) | |||
535 | 535 | ||
536 | /******************************* init / exit *********************************/ | 536 | /******************************* init / exit *********************************/ |
537 | 537 | ||
538 | static void | 538 | static void __cpuinit appldata_online_cpu(int cpu) |
539 | appldata_online_cpu(int cpu) | ||
540 | { | 539 | { |
541 | init_virt_timer(&per_cpu(appldata_timer, cpu)); | 540 | init_virt_timer(&per_cpu(appldata_timer, cpu)); |
542 | per_cpu(appldata_timer, cpu).function = appldata_timer_function; | 541 | per_cpu(appldata_timer, cpu).function = appldata_timer_function; |
@@ -580,7 +579,7 @@ appldata_cpu_notify(struct notifier_block *self, | |||
580 | return NOTIFY_OK; | 579 | return NOTIFY_OK; |
581 | } | 580 | } |
582 | 581 | ||
583 | static struct notifier_block appldata_nb = { | 582 | static struct notifier_block __cpuinitdata appldata_nb = { |
584 | .notifier_call = appldata_cpu_notify, | 583 | .notifier_call = appldata_cpu_notify, |
585 | }; | 584 | }; |
586 | 585 | ||
diff --git a/arch/s390/kernel/entry.S b/arch/s390/kernel/entry.S index c8a2212014e0..6234c6978a1f 100644 --- a/arch/s390/kernel/entry.S +++ b/arch/s390/kernel/entry.S | |||
@@ -769,10 +769,13 @@ mcck_return: | |||
769 | 769 | ||
770 | RESTORE_ALL __LC_RETURN_MCCK_PSW,0 | 770 | RESTORE_ALL __LC_RETURN_MCCK_PSW,0 |
771 | 771 | ||
772 | #ifdef CONFIG_SMP | ||
773 | /* | 772 | /* |
774 | * Restart interruption handler, kick starter for additional CPUs | 773 | * Restart interruption handler, kick starter for additional CPUs |
775 | */ | 774 | */ |
775 | #ifdef CONFIG_SMP | ||
776 | #ifndef CONFIG_HOTPLUG_CPU | ||
777 | .section .init.text,"ax" | ||
778 | #endif | ||
776 | .globl restart_int_handler | 779 | .globl restart_int_handler |
777 | restart_int_handler: | 780 | restart_int_handler: |
778 | l %r15,__LC_SAVE_AREA+60 # load ksp | 781 | l %r15,__LC_SAVE_AREA+60 # load ksp |
@@ -785,6 +788,9 @@ restart_int_handler: | |||
785 | br %r14 # branch to start_secondary | 788 | br %r14 # branch to start_secondary |
786 | restart_addr: | 789 | restart_addr: |
787 | .long start_secondary | 790 | .long start_secondary |
791 | #ifndef CONFIG_HOTPLUG_CPU | ||
792 | .previous | ||
793 | #endif | ||
788 | #else | 794 | #else |
789 | /* | 795 | /* |
790 | * If we do not run with SMP enabled, let the new CPU crash ... | 796 | * If we do not run with SMP enabled, let the new CPU crash ... |
diff --git a/arch/s390/kernel/entry64.S b/arch/s390/kernel/entry64.S index 93745fd8f555..685f11faa4bc 100644 --- a/arch/s390/kernel/entry64.S +++ b/arch/s390/kernel/entry64.S | |||
@@ -745,10 +745,13 @@ mcck_return: | |||
745 | #endif | 745 | #endif |
746 | lpswe __LC_RETURN_MCCK_PSW # back to caller | 746 | lpswe __LC_RETURN_MCCK_PSW # back to caller |
747 | 747 | ||
748 | #ifdef CONFIG_SMP | ||
749 | /* | 748 | /* |
750 | * Restart interruption handler, kick starter for additional CPUs | 749 | * Restart interruption handler, kick starter for additional CPUs |
751 | */ | 750 | */ |
751 | #ifdef CONFIG_SMP | ||
752 | #ifndef CONFIG_HOTPLUG_CPU | ||
753 | .section .init.text,"ax" | ||
754 | #endif | ||
752 | .globl restart_int_handler | 755 | .globl restart_int_handler |
753 | restart_int_handler: | 756 | restart_int_handler: |
754 | lg %r15,__LC_SAVE_AREA+120 # load ksp | 757 | lg %r15,__LC_SAVE_AREA+120 # load ksp |
@@ -759,6 +762,9 @@ restart_int_handler: | |||
759 | lmg %r6,%r15,__SF_GPRS(%r15) # load registers from clone | 762 | lmg %r6,%r15,__SF_GPRS(%r15) # load registers from clone |
760 | stosm __SF_EMPTY(%r15),0x04 # now we can turn dat on | 763 | stosm __SF_EMPTY(%r15),0x04 # now we can turn dat on |
761 | jg start_secondary | 764 | jg start_secondary |
765 | #ifndef CONFIG_HOTPLUG_CPU | ||
766 | .previous | ||
767 | #endif | ||
762 | #else | 768 | #else |
763 | /* | 769 | /* |
764 | * If we do not run with SMP enabled, let the new CPU crash ... | 770 | * If we do not run with SMP enabled, let the new CPU crash ... |
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index 51d6309e7f3b..7e1bfb984064 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c | |||
@@ -300,6 +300,7 @@ static void __init setup_zfcpdump(unsigned int console_devno) | |||
300 | else | 300 | else |
301 | sprintf(str, "cio_ignore=all,!0.0.%04x", | 301 | sprintf(str, "cio_ignore=all,!0.0.%04x", |
302 | ipl_info.data.fcp.dev_id.devno); | 302 | ipl_info.data.fcp.dev_id.devno); |
303 | strcat(COMMAND_LINE, " "); | ||
303 | strcat(COMMAND_LINE, str); | 304 | strcat(COMMAND_LINE, str); |
304 | console_loglevel = 2; | 305 | console_loglevel = 2; |
305 | } | 306 | } |
diff --git a/arch/s390/kernel/traps.c b/arch/s390/kernel/traps.c index cbfe73034c30..ee9186f8fb08 100644 --- a/arch/s390/kernel/traps.c +++ b/arch/s390/kernel/traps.c | |||
@@ -253,19 +253,22 @@ void die(const char * str, struct pt_regs * regs, long err) | |||
253 | { | 253 | { |
254 | static int die_counter; | 254 | static int die_counter; |
255 | 255 | ||
256 | oops_enter(); | ||
256 | debug_stop_all(); | 257 | debug_stop_all(); |
257 | console_verbose(); | 258 | console_verbose(); |
258 | spin_lock_irq(&die_lock); | 259 | spin_lock_irq(&die_lock); |
259 | bust_spinlocks(1); | 260 | bust_spinlocks(1); |
260 | printk("%s: %04lx [#%d]\n", str, err & 0xffff, ++die_counter); | 261 | printk("%s: %04lx [#%d]\n", str, err & 0xffff, ++die_counter); |
261 | show_regs(regs); | 262 | print_modules(); |
263 | show_regs(regs); | ||
262 | bust_spinlocks(0); | 264 | bust_spinlocks(0); |
263 | spin_unlock_irq(&die_lock); | 265 | spin_unlock_irq(&die_lock); |
264 | if (in_interrupt()) | 266 | if (in_interrupt()) |
265 | panic("Fatal exception in interrupt"); | 267 | panic("Fatal exception in interrupt"); |
266 | if (panic_on_oops) | 268 | if (panic_on_oops) |
267 | panic("Fatal exception: panic_on_oops"); | 269 | panic("Fatal exception: panic_on_oops"); |
268 | do_exit(SIGSEGV); | 270 | oops_exit(); |
271 | do_exit(SIGSEGV); | ||
269 | } | 272 | } |
270 | 273 | ||
271 | static void inline | 274 | static void inline |
diff --git a/arch/sh/kernel/signal.c b/arch/sh/kernel/signal.c index b32c35a7c0a3..e323e299878b 100644 --- a/arch/sh/kernel/signal.c +++ b/arch/sh/kernel/signal.c | |||
@@ -268,7 +268,7 @@ asmlinkage int sys_rt_sigreturn(unsigned long r4, unsigned long r5, | |||
268 | badframe: | 268 | badframe: |
269 | force_sig(SIGSEGV, current); | 269 | force_sig(SIGSEGV, current); |
270 | return 0; | 270 | return 0; |
271 | } | 271 | } |
272 | 272 | ||
273 | /* | 273 | /* |
274 | * Set up a signal frame. | 274 | * Set up a signal frame. |
@@ -481,7 +481,7 @@ give_sigsegv: | |||
481 | 481 | ||
482 | static int | 482 | static int |
483 | handle_signal(unsigned long sig, struct k_sigaction *ka, siginfo_t *info, | 483 | handle_signal(unsigned long sig, struct k_sigaction *ka, siginfo_t *info, |
484 | sigset_t *oldset, struct pt_regs *regs) | 484 | sigset_t *oldset, struct pt_regs *regs, unsigned int save_r0) |
485 | { | 485 | { |
486 | int ret; | 486 | int ret; |
487 | 487 | ||
@@ -489,6 +489,7 @@ handle_signal(unsigned long sig, struct k_sigaction *ka, siginfo_t *info, | |||
489 | if (regs->tra >= 0) { | 489 | if (regs->tra >= 0) { |
490 | /* If so, check system call restarting.. */ | 490 | /* If so, check system call restarting.. */ |
491 | switch (regs->regs[0]) { | 491 | switch (regs->regs[0]) { |
492 | case -ERESTART_RESTARTBLOCK: | ||
492 | case -ERESTARTNOHAND: | 493 | case -ERESTARTNOHAND: |
493 | regs->regs[0] = -EINTR; | 494 | regs->regs[0] = -EINTR; |
494 | break; | 495 | break; |
@@ -500,6 +501,7 @@ handle_signal(unsigned long sig, struct k_sigaction *ka, siginfo_t *info, | |||
500 | } | 501 | } |
501 | /* fallthrough */ | 502 | /* fallthrough */ |
502 | case -ERESTARTNOINTR: | 503 | case -ERESTARTNOINTR: |
504 | regs->regs[0] = save_r0; | ||
503 | regs->pc -= instruction_size( | 505 | regs->pc -= instruction_size( |
504 | ctrl_inw(regs->pc - 4)); | 506 | ctrl_inw(regs->pc - 4)); |
505 | break; | 507 | break; |
@@ -583,7 +585,8 @@ static void do_signal(struct pt_regs *regs, unsigned int save_r0) | |||
583 | signr = get_signal_to_deliver(&info, &ka, regs, NULL); | 585 | signr = get_signal_to_deliver(&info, &ka, regs, NULL); |
584 | if (signr > 0) { | 586 | if (signr > 0) { |
585 | /* Whee! Actually deliver the signal. */ | 587 | /* Whee! Actually deliver the signal. */ |
586 | if (handle_signal(signr, &ka, &info, oldset, regs) == 0) { | 588 | if (handle_signal(signr, &ka, &info, oldset, |
589 | regs, save_r0) == 0) { | ||
587 | /* a signal was successfully delivered; the saved | 590 | /* a signal was successfully delivered; the saved |
588 | * sigmask will have been stored in the signal frame, | 591 | * sigmask will have been stored in the signal frame, |
589 | * and will be restored by sigreturn, so we can simply | 592 | * and will be restored by sigreturn, so we can simply |
diff --git a/arch/sh/kernel/traps.c b/arch/sh/kernel/traps.c index 5b75cb6f8f9b..8f18930d5bf8 100644 --- a/arch/sh/kernel/traps.c +++ b/arch/sh/kernel/traps.c | |||
@@ -83,6 +83,8 @@ void die(const char * str, struct pt_regs * regs, long err) | |||
83 | { | 83 | { |
84 | static int die_counter; | 84 | static int die_counter; |
85 | 85 | ||
86 | oops_enter(); | ||
87 | |||
86 | console_verbose(); | 88 | console_verbose(); |
87 | spin_lock_irq(&die_lock); | 89 | spin_lock_irq(&die_lock); |
88 | bust_spinlocks(1); | 90 | bust_spinlocks(1); |
@@ -112,6 +114,7 @@ void die(const char * str, struct pt_regs * regs, long err) | |||
112 | if (panic_on_oops) | 114 | if (panic_on_oops) |
113 | panic("Fatal exception"); | 115 | panic("Fatal exception"); |
114 | 116 | ||
117 | oops_exit(); | ||
115 | do_exit(SIGSEGV); | 118 | do_exit(SIGSEGV); |
116 | } | 119 | } |
117 | 120 | ||