diff options
Diffstat (limited to 'arch/m68knommu')
-rw-r--r-- | arch/m68knommu/kernel/signal.c | 7 | ||||
-rw-r--r-- | arch/m68knommu/platform/68328/entry.S | 4 | ||||
-rw-r--r-- | arch/m68knommu/platform/68360/entry.S | 4 | ||||
-rw-r--r-- | arch/m68knommu/platform/coldfire/entry.S | 2 |
4 files changed, 8 insertions, 9 deletions
diff --git a/arch/m68knommu/kernel/signal.c b/arch/m68knommu/kernel/signal.c index c973230dad82..c070f3f64255 100644 --- a/arch/m68knommu/kernel/signal.c +++ b/arch/m68knommu/kernel/signal.c | |||
@@ -717,7 +717,7 @@ handle_signal(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
717 | * want to handle. Thus you cannot kill init even with a SIGKILL even by | 717 | * want to handle. Thus you cannot kill init even with a SIGKILL even by |
718 | * mistake. | 718 | * mistake. |
719 | */ | 719 | */ |
720 | asmlinkage int do_signal(struct pt_regs *regs) | 720 | asmlinkage void do_signal(struct pt_regs *regs) |
721 | { | 721 | { |
722 | struct k_sigaction ka; | 722 | struct k_sigaction ka; |
723 | siginfo_t info; | 723 | siginfo_t info; |
@@ -731,7 +731,7 @@ asmlinkage int do_signal(struct pt_regs *regs) | |||
731 | * if so. | 731 | * if so. |
732 | */ | 732 | */ |
733 | if (!user_mode(regs)) | 733 | if (!user_mode(regs)) |
734 | return 1; | 734 | return; |
735 | 735 | ||
736 | if (test_thread_flag(TIF_RESTORE_SIGMASK)) | 736 | if (test_thread_flag(TIF_RESTORE_SIGMASK)) |
737 | oldset = ¤t->saved_sigmask; | 737 | oldset = ¤t->saved_sigmask; |
@@ -743,7 +743,7 @@ asmlinkage int do_signal(struct pt_regs *regs) | |||
743 | /* Whee! Actually deliver the signal. */ | 743 | /* Whee! Actually deliver the signal. */ |
744 | handle_signal(signr, &ka, &info, oldset, regs); | 744 | handle_signal(signr, &ka, &info, oldset, regs); |
745 | clear_thread_flag(TIF_RESTORE_SIGMASK); | 745 | clear_thread_flag(TIF_RESTORE_SIGMASK); |
746 | return 1; | 746 | return; |
747 | } | 747 | } |
748 | 748 | ||
749 | /* Did we come from a system call? */ | 749 | /* Did we come from a system call? */ |
@@ -757,5 +757,4 @@ asmlinkage int do_signal(struct pt_regs *regs) | |||
757 | clear_thread_flag(TIF_RESTORE_SIGMASK); | 757 | clear_thread_flag(TIF_RESTORE_SIGMASK); |
758 | sigprocmask(SIG_SETMASK, ¤t->saved_sigmask, NULL); | 758 | sigprocmask(SIG_SETMASK, ¤t->saved_sigmask, NULL); |
759 | } | 759 | } |
760 | return 0; | ||
761 | } | 760 | } |
diff --git a/arch/m68knommu/platform/68328/entry.S b/arch/m68knommu/platform/68328/entry.S index 6eeb635fab7e..240a7a6e25c8 100644 --- a/arch/m68knommu/platform/68328/entry.S +++ b/arch/m68knommu/platform/68328/entry.S | |||
@@ -106,6 +106,7 @@ Luser_return: | |||
106 | movel %sp,%d1 /* get thread_info pointer */ | 106 | movel %sp,%d1 /* get thread_info pointer */ |
107 | andl #-THREAD_SIZE,%d1 | 107 | andl #-THREAD_SIZE,%d1 |
108 | movel %d1,%a2 | 108 | movel %d1,%a2 |
109 | 1: | ||
109 | move %a2@(TI_FLAGS),%d1 /* thread_info->flags */ | 110 | move %a2@(TI_FLAGS),%d1 /* thread_info->flags */ |
110 | andl #_TIF_WORK_MASK,%d1 | 111 | andl #_TIF_WORK_MASK,%d1 |
111 | jne Lwork_to_do | 112 | jne Lwork_to_do |
@@ -124,8 +125,7 @@ Lsignal_return: | |||
124 | addql #4,%sp | 125 | addql #4,%sp |
125 | RESTORE_SWITCH_STACK | 126 | RESTORE_SWITCH_STACK |
126 | addql #4,%sp | 127 | addql #4,%sp |
127 | Lreturn: | 128 | jra 1b |
128 | RESTORE_ALL | ||
129 | 129 | ||
130 | /* | 130 | /* |
131 | * This is the main interrupt handler, responsible for calling process_int() | 131 | * This is the main interrupt handler, responsible for calling process_int() |
diff --git a/arch/m68knommu/platform/68360/entry.S b/arch/m68knommu/platform/68360/entry.S index 2a671da4af6f..8a28788c0eea 100644 --- a/arch/m68knommu/platform/68360/entry.S +++ b/arch/m68knommu/platform/68360/entry.S | |||
@@ -102,6 +102,7 @@ Luser_return: | |||
102 | movel %sp,%d1 /* get thread_info pointer */ | 102 | movel %sp,%d1 /* get thread_info pointer */ |
103 | andl #-THREAD_SIZE,%d1 | 103 | andl #-THREAD_SIZE,%d1 |
104 | movel %d1,%a2 | 104 | movel %d1,%a2 |
105 | 1: | ||
105 | move %a2@(TI_FLAGS),%d1 /* thread_info->flags */ | 106 | move %a2@(TI_FLAGS),%d1 /* thread_info->flags */ |
106 | andl #_TIF_WORK_MASK,%d1 | 107 | andl #_TIF_WORK_MASK,%d1 |
107 | jne Lwork_to_do | 108 | jne Lwork_to_do |
@@ -120,8 +121,7 @@ Lsignal_return: | |||
120 | addql #4,%sp | 121 | addql #4,%sp |
121 | RESTORE_SWITCH_STACK | 122 | RESTORE_SWITCH_STACK |
122 | addql #4,%sp | 123 | addql #4,%sp |
123 | Lreturn: | 124 | jra 1b |
124 | RESTORE_ALL | ||
125 | 125 | ||
126 | /* | 126 | /* |
127 | * This is the main interrupt handler, responsible for calling do_IRQ() | 127 | * This is the main interrupt handler, responsible for calling do_IRQ() |
diff --git a/arch/m68knommu/platform/coldfire/entry.S b/arch/m68knommu/platform/coldfire/entry.S index ed2878829dbd..e1debc8285ef 100644 --- a/arch/m68knommu/platform/coldfire/entry.S +++ b/arch/m68knommu/platform/coldfire/entry.S | |||
@@ -171,7 +171,7 @@ Lsignal_return: | |||
171 | addql #4,%sp | 171 | addql #4,%sp |
172 | RESTORE_SWITCH_STACK | 172 | RESTORE_SWITCH_STACK |
173 | addql #4,%sp | 173 | addql #4,%sp |
174 | jmp Lreturn | 174 | jmp Luser_return |
175 | 175 | ||
176 | /* | 176 | /* |
177 | * This is the generic interrupt handler (for all hardware interrupt | 177 | * This is the generic interrupt handler (for all hardware interrupt |