Author: cgutman Date: Sun Oct 24 10:48:10 2010 New Revision: 49256
URL: http://svn.reactos.org/svn/reactos?rev=49256&view=rev Log: [HAL] - Fix a broken loop that resulted in us registering the resources of multiple COM ports as our KD port - Fixes bug #5530
Modified: trunk/reactos/hal/halx86/generic/usage.c
Modified: trunk/reactos/hal/halx86/generic/usage.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/usage.c?... ============================================================================== --- trunk/reactos/hal/halx86/generic/usage.c [iso-8859-1] (original) +++ trunk/reactos/hal/halx86/generic/usage.c [iso-8859-1] Sun Oct 24 10:48:10 2010 @@ -235,8 +235,9 @@ if (!HalpGetInfoFromACPI) { /* No, so use our local table */ - Port = HalpComPortIrqMapping[0][0]; - for (i = 0; Port; i++) + for (i = 0, Port = HalpComPortIrqMapping[i][0]; + Port; + i++, Port = HalpComPortIrqMapping[i][0]) { /* Is this the port we want? */ if (Port == (ULONG_PTR)KdComPortInUse) @@ -248,9 +249,6 @@ PRIMARY_VECTOR_BASE, HIGH_LEVEL); } - - /* Next port */ - Port = HalpComPortIrqMapping[i][0]; } } }