diff options
Diffstat (limited to 'arch/m68k/kernel')
-rw-r--r-- | arch/m68k/kernel/entry.S | 4 | ||||
-rw-r--r-- | arch/m68k/kernel/ints.c | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/arch/m68k/kernel/entry.S b/arch/m68k/kernel/entry.S index 320fde05dc63..522079f8c2ba 100644 --- a/arch/m68k/kernel/entry.S +++ b/arch/m68k/kernel/entry.S | |||
@@ -226,7 +226,7 @@ ENTRY(nmi_handler) | |||
226 | inthandler: | 226 | inthandler: |
227 | SAVE_ALL_INT | 227 | SAVE_ALL_INT |
228 | GET_CURRENT(%d0) | 228 | GET_CURRENT(%d0) |
229 | addqb #1,%curptr@(TASK_INFO+TINFO_PREEMPT+2) | 229 | addqb #1,%curptr@(TASK_INFO+TINFO_PREEMPT+1) |
230 | | put exception # in d0 | 230 | | put exception # in d0 |
231 | bfextu %sp@(PT_VECTOR){#4,#10},%d0 | 231 | bfextu %sp@(PT_VECTOR){#4,#10},%d0 |
232 | 232 | ||
@@ -245,7 +245,7 @@ inthandler: | |||
245 | 3: addql #8,%sp | pop parameters off stack | 245 | 3: addql #8,%sp | pop parameters off stack |
246 | 246 | ||
247 | ret_from_interrupt: | 247 | ret_from_interrupt: |
248 | subqb #1,%curptr@(TASK_INFO+TINFO_PREEMPT+2) | 248 | subqb #1,%curptr@(TASK_INFO+TINFO_PREEMPT+1) |
249 | jeq 1f | 249 | jeq 1f |
250 | 2: | 250 | 2: |
251 | RESTORE_ALL | 251 | RESTORE_ALL |
diff --git a/arch/m68k/kernel/ints.c b/arch/m68k/kernel/ints.c index 514d323ad536..4b85514792e7 100644 --- a/arch/m68k/kernel/ints.c +++ b/arch/m68k/kernel/ints.c | |||
@@ -95,6 +95,12 @@ void __init init_IRQ(void) | |||
95 | { | 95 | { |
96 | int i; | 96 | int i; |
97 | 97 | ||
98 | /* assembly irq entry code relies on this... */ | ||
99 | if (HARDIRQ_MASK != 0x00ff0000) { | ||
100 | extern void hardirq_mask_is_broken(void); | ||
101 | hardirq_mask_is_broken(); | ||
102 | } | ||
103 | |||
98 | for (i = 0; i < SYS_IRQS; i++) { | 104 | for (i = 0; i < SYS_IRQS; i++) { |
99 | if (mach_default_handler) | 105 | if (mach_default_handler) |
100 | irq_list[i].handler = (*mach_default_handler)[i]; | 106 | irq_list[i].handler = (*mach_default_handler)[i]; |