From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (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 132711A1E34 for ; Thu, 20 Oct 2016 08:44:05 -0700 (PDT) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP; 20 Oct 2016 08:44:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,371,1473145200"; d="scan'208,217";a="21712785" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga006.fm.intel.com with ESMTP; 20 Oct 2016 08:44:04 -0700 Received: from fmsmsx103.amr.corp.intel.com ([169.254.2.170]) by FMSMSX106.amr.corp.intel.com ([169.254.5.171]) with mapi id 14.03.0248.002; Thu, 20 Oct 2016 08:44:04 -0700 From: "Carsey, Jaben" To: Saqib Khan CC: Andrew Fish , "edk2-devel@ml01.01.org" , Laszlo Ersek , "Carsey, Jaben" Thread-Topic: [edk2] How to get BBS_BBS_DEVICE_PATH from BOOTXXXX variable Thread-Index: AQHSKWOwSYQOaiFn2Ua/7sISijMvgaCu8CMAgAAP1QCAAYy8AP//spQwgAEqsICAABLFEA== Date: Thu, 20 Oct 2016 15:44:03 +0000 Message-ID: References: <4e344fbc-5d83-c963-2867-461d40832c8d@redhat.com> <3F7BA679-11EF-4067-92D7-CC58777CB6DC@apple.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTIzYWI2MWMtZTEyOS00YmY5LTlhNDYtNWIxNTY3ZDIzNDIwIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IlRET01iWG5yMDNMcWFtM1F2QnVLZDhlalRqNlhDaXVJeTBkRXpST0hGSm89In0= x-ctpclassification: CTP_IC x-originating-ip: [10.1.200.107] MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: Re: How to get BBS_BBS_DEVICE_PATH from BOOTXXXX variable X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2016 15:44:05 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SGF2ZSB5b3UgZXhhbWluZWQgdGhlIHN0cnVjdHVyZSBFRklfTE9BRF9PUFRJT04gZnJvbSBVZWZp U3BlYy5oPw0KDQpJIHRoaW5rIHRoYXQgeW91IGFyZSB0cmF2ZXJzaW5nIHRoZSBzdHJ1Y3R1cmUg aW5jb3JyZWN0bHkuICBJIGNhbm5vdCBiZSBzdXJlIHNpbmNlIEkgYW0gbm90IGNlcnRhaW4gd2hh dCB0aGlzIG1HZXRWYXJpYWJsZSBmdW5jdGlvbiBkb2VzIHNwZWNpZmljYWxseS4NCg0KSSBzdGFy dCBieSBnZXR0aW5nIHRoZSBjb3JyZWN0IHNpemUgKEJ1ZmZlclNpemUgaXMgemVybyBhdCB0aGlz IGZpcnN0IGNhbGwpOg0KICAgIFN0YXR1cyA9IGdSVC0+R2V0VmFyaWFibGUoDQogICAgICAgIFZh cmlhYmxlTmFtZSwNCiAgICAgICAgKEVGSV9HVUlEKikmZ0VmaUdsb2JhbFZhcmlhYmxlR3VpZCwN CiAgICAgICAgTlVMTCwNCiAgICAgICAgJkJ1ZmZlclN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