From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=66.187.233.73; helo=mx1.redhat.com; envelope-from=lersek@redhat.com; receiver=edk2-devel@lists.01.org Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) (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 37CD421F2E188 for ; Tue, 17 Apr 2018 02:45:26 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7A3C0EB6E1; Tue, 17 Apr 2018 09:45:25 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-120-161.rdu2.redhat.com [10.10.120.161]) by smtp.corp.redhat.com (Postfix) with ESMTP id C58CD111DCEB; Tue, 17 Apr 2018 09:45:24 +0000 (UTC) From: Laszlo Ersek To: Haojian Zhuang Cc: edk2-devel@lists.01.org, "Leif Lindholm (Linaro address)" , Ard Biesheuvel References: <1523941872-16197-1-git-send-email-haojian.zhuang@linaro.org> <1523941872-16197-2-git-send-email-haojian.zhuang@linaro.org> <05a9ecea-7ef2-1271-4326-9470078095d5@redhat.com> Message-ID: <02a34f37-b883-2b62-9621-23a69f82ca1d@redhat.com> Date: Tue, 17 Apr 2018 11:45:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <05a9ecea-7ef2-1271-4326-9470078095d5@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Tue, 17 Apr 2018 09:45:25 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Tue, 17 Apr 2018 09:45:25 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'lersek@redhat.com' RCPT:'' Subject: Re: [PATCH v2 1/1] ArmPkg/PlatformBootManagerLib: load boot options from platform X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2018 09:45:26 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 04/17/18 11:02, Laszlo Ersek wrote: > Whereas, if the option is *not* found in the original array, then you > add it -- and then EfiBootManagerAddLoadOptionVariable() *modifies* > "NewOption.OptionNumber", from "LoadOptionNumberUnassigned" to the > actual #### assigned. This may not have been obvious from the EfiBootManagerAddLoadOptionVariable() prototype and/or documentation; I've just submitted a patch to fix that: [edk2] [PATCH] MdeModulePkg/UefiBootManagerLib: fix AddLoadOptionVariable docs/prototype Laszlo