Added check for proper deviceType to interrupt processing code.

This commit is contained in:
Joel Sherrill
1998-07-15 23:21:55 +00:00
parent efaf85faf1
commit 991a1ab400
4 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -402,7 +402,8 @@ NS16550_STATIC rtems_isr ns16550_isr(
int minor;
for(minor=0;minor<Console_Port_Count;minor++) {
if(vector==Console_Port_Tbl[minor].ulIntVector) {
if(Console_Port_Tbl[minor].ulIntVector == vector &&
Console_Port_Tbl[minor].deviceType == SERIAL_NS16550 ) {
ns16550_process(minor);
}
}
+2 -1
View File
@@ -692,7 +692,8 @@ Z85C30_STATIC rtems_isr z85c30_isr(
getRegister_f getReg;
for (minor=0;minor<Console_Port_Count;minor++) {
if (vector==Console_Port_Tbl[minor].ulIntVector) {
if(Console_Port_Tbl[minor].ulIntVector == vector &&
Console_Port_Tbl[minor].deviceType == SERIAL_Z85C30 ) {
ulCtrlPort = Console_Port_Tbl[minor].ulCtrlPort2;
getReg = Console_Port_Tbl[minor].getRegister;
do {
+2 -1
View File
@@ -402,7 +402,8 @@ NS16550_STATIC rtems_isr ns16550_isr(
int minor;
for(minor=0;minor<Console_Port_Count;minor++) {
if(vector==Console_Port_Tbl[minor].ulIntVector) {
if(Console_Port_Tbl[minor].ulIntVector == vector &&
Console_Port_Tbl[minor].deviceType == SERIAL_NS16550 ) {
ns16550_process(minor);
}
}
+2 -1
View File
@@ -692,7 +692,8 @@ Z85C30_STATIC rtems_isr z85c30_isr(
getRegister_f getReg;
for (minor=0;minor<Console_Port_Count;minor++) {
if (vector==Console_Port_Tbl[minor].ulIntVector) {
if(Console_Port_Tbl[minor].ulIntVector == vector &&
Console_Port_Tbl[minor].deviceType == SERIAL_Z85C30 ) {
ulCtrlPort = Console_Port_Tbl[minor].ulCtrlPort2;
getReg = Console_Port_Tbl[minor].getRegister;
do {