From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-x229.google.com (mail-oi0-x229.google.com [IPv6:2607:f8b0:4003:c06::229]) (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 C81BE21AE30D0 for ; Tue, 6 Jun 2017 03:19:15 -0700 (PDT) Received: by mail-oi0-x229.google.com with SMTP id l18so176665031oig.2 for ; Tue, 06 Jun 2017 03:20:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=hPQllfeCC9/Q2d2XTETuzwNCySae3TC3hcapAYexlEM=; b=g4QMnMQ8vAOCkd/69/MrXLt4hKyrnnnAkJNbPkSMcjwl8t/vPdbEBOZN/+0mQ7yB3q h/77rFDG5OlQf7mrLTURqkIHNsw8bKN4VQ7zNz/L9HhOtizWeZtpa/VGg4wz6G85umY2 V4LzlkSVKTYp0n4btIAZhzNxJc+tcX3bVOd63qGOgYfG8l0rzUaLBpY2FXV/7/VmXqIU 97Na04TF/nb+D+ApRf+aUwf46I6+xu20Eg4FufGdVCXOYTdwkbR/VE+s2pUM8oQu456J Khfkb2l2GLUkKUbkFqKKloZ+lYyCiWdhllvZkHxZE5R4NZrA/qJoFBcwZ19lHdi5Ifwr lqBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=hPQllfeCC9/Q2d2XTETuzwNCySae3TC3hcapAYexlEM=; b=LoEzj9eAdx3OpDc62y3N2osUiJkTAJ+0mZlmh0l9/zfj7LfjSiH2v58Ji8iTVPfla2 gZGdxSjN5mr6dDzzJ956W8+52DkaHG9+2hnlUxjIWdOXAipO0pP06xesiLL8tu4HIAMF C+/fEs4+qEDpRSyJUyWGRE/ZL/llRTcFSPBOEDEnstQedNIErtlC3xWQ7WoXjgkXxGfj pDOjKvrTphchzBH5bMxO5bmys8IwVqnX9SzP0NDevWb8LKyxm6MdDKbriSLlx/O5EuqS mgGlH5ZTMX09BOMTA+65p4AYRu3khtg98EmcJI+uRARooUY6Zd7nzYLv8xBrQAqm5FKD zLGg== X-Gm-Message-State: AODbwcDRNGR6uD1IxxycAHiIOZ1in6ozQVRH+ZMihWnX6qfyLBlSKkJx ruzPC/io7lNgy/iEzTkIS/yzzbMD0g== X-Received: by 10.202.92.197 with SMTP id q188mr13700311oib.28.1496744421713; Tue, 06 Jun 2017 03:20:21 -0700 (PDT) MIME-Version: 1.0 From: GN Keshava Date: Tue, 06 Jun 2017 10:20:11 +0000 Message-ID: To: "edk2-devel@lists.01.org" X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: 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 10:19:16 -0000 Content-Type: text/plain; charset="UTF-8" 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