mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-20 20:54:18 +08:00
Added check for proper deviceType to interrupt processing code.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user