Messages in this thread | | | From | "Stuart MacDonald" <> | Subject | Re: Q serial.c | Date | Fri, 22 Jun 2001 09:51:18 -0400 |
| |
From: "kees" <kees@schoen.nl> > What may happen on a SMP machine if a serial port has been closed and the > closing stage is at shutdown() in serial.c in the call to free_IRQ and > BEFORE the IRQ is really shutdown, a new character arrives which causes an > IRQ? Is it possible that the OTHER cpu takes this interrupt and causes a > crash?
I'm looking at serial-5.05/serial.c. You'll notice at the beginning of shutdown the saveflags(); cli(); calls. This disables interrupts. The uart will not be able to generate IRQs even if new characters arrive.
..Stu
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |