From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot0-x22d.google.com (mail-ot0-x22d.google.com [IPv6:2607:f8b0:4003:c0f::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 0FB1621AE30D0 for ; Tue, 6 Jun 2017 09:11:12 -0700 (PDT) Received: by mail-ot0-x22d.google.com with SMTP id i31so18334122ota.3 for ; Tue, 06 Jun 2017 09:12:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=zTykuh4RwieX/CFbeMR+zp9vVfatfW6Aq76KP8H+E+I=; b=s7sxmZVko65MbxfxAc0F/zLimKuiwKp9sz5QO96UF/v5ilTjH62Wi7aI3PJ8yEg/zf uEKnLOrcPIeOKb+T1aYWgnAVYA8HTt7iXoO7NuAdgNQwJif2KXgwHWRUh3NBJs5Y/Dwk Vicij9XkqaurdTaeoFaXNQFOqFpoWgaUH2LmYMPLYQEoP95n66jaj0sJ9RBK1LYX6v2B lPfNg65Owl9RW5px3SuxXZsyvrW9YADnJ+Iv03QtBjJRrRxooFlM9QDGIomZL4iQeJST wS0NPh8Nnn7GHdUAb6n7/rVEj1IN9tM8YLlvZ2Wy3/iCk/yvqFAbCd83gMPV6qmGW5c+ ErAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=zTykuh4RwieX/CFbeMR+zp9vVfatfW6Aq76KP8H+E+I=; b=CkCPX9gk/bOhP+wdXu8DsZvdVoyoBfX444LAimoFVHGen1lxATQUkulh304/PYdtY6 NRAJ/LcyrD7zOwsG4KogB9WjA1ZgKF8fLyIZR7wM/3SHYMWROdFyh5pRzHiRT7nK2nKM bwk3BID8F8RL28aBqXC46APTJSPZot6po341ayDCVVqNkV+GVJYS5fQL3QqCwjaPvkpX e3QRTrxdazQa8pZJjLDYhX7i6lDzmqnPyWxgPEO3X311TuKnVKa7kL/xrjwRVkfzPs2+ Szr8tr0rlk9jeusprdm6zw09iCmM+RnyCWca5BULblVlWc9z+PF1QMg/HmKkZBFmYsun UvNg== X-Gm-Message-State: AKS2vOwmIcnFWAhQLFhPRPNb+wV2EEX9wl9ipv4IOVdFDPbQGlsY4fu+ UJRZ0cktwEvEFuJRkyzx5/0uud+XkA== X-Received: by 10.157.3.182 with SMTP id f51mr8909140otf.144.1496765538125; Tue, 06 Jun 2017 09:12:18 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: GN Keshava Date: Tue, 06 Jun 2017 16:12:07 +0000 Message-ID: To: "Carsey, Jaben" , "edk2-devel@lists.01.org" X-Content-Filtered-By: Mailman/MimeDel 2.1.22 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:11:12 -0000 Content-Type: text/plain; charset="UTF-8" Hi Jaben, Thanks for the reply. I understand that the sermode command is in shell, and it's sharing information through libraries. Can you tell me more about the library requirement of module to be linked into shell? How i can do this? Thanks again. Regards, Keshava On Tue, Jun 6, 2017, 9:15 PM Carsey, Jaben wrote: > That library may require the module to be linked into the shell. Remember > that the sermode command is actually in the same binary as the shell and > the shell and the command are sharing information through libraries. > > > -----Original Message----- > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > > 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 serial > > 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 the > 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 Handle > > 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 >