From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 519D121A08D6A for ; Tue, 6 Jun 2017 09:14:18 -0700 (PDT) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Jun 2017 09:15:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,306,1493708400"; d="scan'208";a="109850272" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga005.jf.intel.com with ESMTP; 06 Jun 2017 09:15:24 -0700 Received: from fmsmsx101.amr.corp.intel.com (10.18.124.199) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 6 Jun 2017 09:15:24 -0700 Received: from fmsmsx103.amr.corp.intel.com ([169.254.2.37]) by fmsmsx101.amr.corp.intel.com ([169.254.1.71]) with mapi id 14.03.0319.002; Tue, 6 Jun 2017 09:15:24 -0700 From: "Carsey, Jaben" To: GN Keshava , "edk2-devel@lists.01.org" Thread-Topic: [edk2] Issue in ConvertHandleIndexToHandle and ConvertHandleToHandleIndex Thread-Index: AQHS3q6MQF8OQrzB6Ea3bRfp+fpEU6IX+kgAgAB8/YD//4r9IA== Date: Tue, 6 Jun 2017 16:15:23 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYTBkNDA1ZWYtMTIzMy00OWIxLWFjMDMtMDI3MzkwMTAwMTBhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IlZTNUFFRHIxM1VKeVFIZVFcLzV2TFk0emxuRGhRek9RWmowMlBvdU5rNGJjPSJ9 x-ctpclassification: CTP_IC x-originating-ip: [10.1.200.108] MIME-Version: 1.0 Subject: Re: Issue in ConvertHandleIndexToHandle and ConvertHandleToHandleIndex X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2017 16:14:18 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable In general, you should really try to avoid it. it means you have to build = and distribute a complete shell instead of a single application. There are= some shell commands that simply cannot function without information not av= ailable via the shell protocol. If you find you need information, then may= be we should consider that missing information to be added to the shell pro= tocol. -Jaben > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > GN Keshava > Sent: Tuesday, June 06, 2017 9:12 AM > To: Carsey, Jaben ; edk2-devel@lists.01.org > Subject: Re: [edk2] Issue in ConvertHandleIndexToHandle and > ConvertHandleToHandleIndex > Importance: High >=20 > Hi Jaben, >=20 > Thanks for the reply. >=20 >=20 > I understand that the sermode command is in shell, and it's sharing > information through libraries. >=20 >=20 > Can you tell me more about the library requirement of module to be linked > into shell? How i can do this? >=20 >=20 > Thanks again. >=20 > Regards, >=20 > Keshava >=20 > On Tue, Jun 6, 2017, 9:15 PM Carsey, Jaben > wrote: >=20 > > That library may require the module to be linked into the shell. Remem= ber > > that the sermode command is actually in the same binary as the shell an= d > > the shell and the command are sharing information through libraries. > > > > > -----Original Message----- > > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf O= f > > > GN Keshava > > > Sent: Tuesday, June 06, 2017 3:20 AM > > > To: edk2-devel@lists.01.org > > > Subject: [edk2] Issue in ConvertHandleIndexToHandle and > > > ConvertHandleToHandleIndex > > > Importance: High > > > > > > Hi, > > > > > > Thanks all for your kind help. > > > > > > I'm doing few operations using serial port. So, I've done a small ser= ial > > > driver by referring FTDI code, and I'm accessing this using serialIO = from > > > my application. and it was working fine with older EFI shell. > > > > > > Now I'm using the latest UEFI shell. > > > Now It's working fine for first time. Then if i do any removal and > > connect > > > of serial port, there is a mismatch in "Handle index" value between t= he > > one > > > i get in my application, and the one i get in "sermode" command. > > > > > > I'm using the same code as sermode code, but still, for the same Hand= le > > > value, the handleIndex value is deferring. > > > > > > Whether ConvertHandleIndexToHandle and > ConvertHandleToHandleIndex > > > functions > > > are giving issue? What could be the reason? > > > > > > Thanks again. > > > Regards, > > > Keshava > > > _______________________________________________ > > > edk2-devel mailing list > > > edk2-devel@lists.01.org > > > https://lists.01.org/mailman/listinfo/edk2-devel > > > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel