Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/acpi/acpica/Subsystem A resource with 0 interrupts i...



details:   https://anonhg.NetBSD.org/src/rev/ffa64edddc89
branches:  trunk
changeset: 534531:ffa64edddc89
user:      augustss <augustss%NetBSD.org@localhost>
date:      Mon Jul 29 03:05:52 2002 +0000

description:
A resource with 0 interrupts is not illegal; it occurs before interrupts
have been allocated.

diffstat:

 sys/dev/acpi/acpica/Subsystem/rsirq.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r 58559cc44ca1 -r ffa64edddc89 sys/dev/acpi/acpica/Subsystem/rsirq.c
--- a/sys/dev/acpi/acpica/Subsystem/rsirq.c     Mon Jul 29 03:05:16 2002 +0000
+++ b/sys/dev/acpi/acpica/Subsystem/rsirq.c     Mon Jul 29 03:05:52 2002 +0000
@@ -1,7 +1,7 @@
 /*******************************************************************************
  *
  * Module Name: rsirq - IRQ resource descriptors
- *              $Revision: 1.3 $
+ *              $Revision: 1.4 $
  *
  ******************************************************************************/
 
@@ -115,7 +115,7 @@
  *****************************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rsirq.c,v 1.3 2002/06/15 01:47:26 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rsirq.c,v 1.4 2002/07/29 03:05:52 augustss Exp $");
 
 #define __RSIRQ_C__
 
@@ -193,12 +193,14 @@
         }
     }
 
+#if 0
     if (i == 0)
     {
         /* Zero interrupts is invalid! */
 
         return_ACPI_STATUS (AE_BAD_DATA);
     }
+#endif
     OutputStruct->Data.Irq.NumberOfInterrupts = i;
 
     /*



Home | Main Index | Thread Index | Old Index