Commit 6d2f16a8 authored by Roman Zippel's avatar Roman Zippel Committed by Linus Torvalds

[PATCH] m68k: adjust to changed HARDIRQ_MASK

Adjust entry.S to the changed HARDIRQ_MASK, add a check to prevent it from
silently breaking again.
Signed-off-by: default avatarRoman Zippel <zippel@linux-m68k.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 2dcf15b7
...@@ -226,7 +226,7 @@ ENTRY(nmi_handler) ...@@ -226,7 +226,7 @@ ENTRY(nmi_handler)
inthandler: inthandler:
SAVE_ALL_INT SAVE_ALL_INT
GET_CURRENT(%d0) GET_CURRENT(%d0)
addqb #1,%curptr@(TASK_INFO+TINFO_PREEMPT+2) addqb #1,%curptr@(TASK_INFO+TINFO_PREEMPT+1)
| put exception # in d0 | put exception # in d0
bfextu %sp@(PT_VECTOR){#4,#10},%d0 bfextu %sp@(PT_VECTOR){#4,#10},%d0
...@@ -245,7 +245,7 @@ inthandler: ...@@ -245,7 +245,7 @@ inthandler:
3: addql #8,%sp | pop parameters off stack 3: addql #8,%sp | pop parameters off stack
ret_from_interrupt: ret_from_interrupt:
subqb #1,%curptr@(TASK_INFO+TINFO_PREEMPT+2) subqb #1,%curptr@(TASK_INFO+TINFO_PREEMPT+1)
jeq 1f jeq 1f
2: 2:
RESTORE_ALL RESTORE_ALL
......
...@@ -95,6 +95,12 @@ void __init init_IRQ(void) ...@@ -95,6 +95,12 @@ void __init init_IRQ(void)
{ {
int i; int i;
/* assembly irq entry code relies on this... */
if (HARDIRQ_MASK != 0x00ff0000) {
extern void hardirq_mask_is_broken(void);
hardirq_mask_is_broken();
}
for (i = 0; i < SYS_IRQS; i++) { for (i = 0; i < SYS_IRQS; i++) {
if (mach_default_handler) if (mach_default_handler)
irq_list[i].handler = (*mach_default_handler)[i]; irq_list[i].handler = (*mach_default_handler)[i];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment