From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web09.2380.1613696325038123905 for ; Thu, 18 Feb 2021 16:58:46 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Fri, 19 Feb 2021 08:58:41 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , Cc: , , , References: <20210218032611.1594-1-walon.li@hpe.com> In-Reply-To: <20210218032611.1594-1-walon.li@hpe.com> Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gW1BBVENIXSBNZGVNb2R1bGVQa2cvVWVmaUJvb3RNYW5hZ2VyTGliOiBQdXQgQm9vdE1lbnUgYXQgdGhlIGVuZCBvZiBCb290T3JkZXI=?= Date: Fri, 19 Feb 2021 08:58:40 +0800 Message-ID: <002801d7065a$5d81f420$1885dc60$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQIv3NEyLfmGUpP6HXiw3wfsNtdi+Kms+tlQ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Walon: Can you specify the detail reason why BootManagerMenu should be placed = at end of BootOrder? Thanks Liming > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: bounce+27952+71766+4905953+8761045@groups.io > =B4=FA=B1=ED Li, Walon > =B7=A2=CB=CD=CA=B1=BC=E4: 2021=C4=EA2=D4=C218=C8=D5 11:26 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: walon.li@hpe.com; sunnywang@hpe.com; lersek@redhat.com; > ray.ni@intel.com; hao.a.wu@intel.com > =D6=F7=CC=E2: [edk2-devel] [PATCH] MdeModulePkg/UefiBootManagerLib: = Put > BootMenu at the end of BootOrder >=20 > REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D3135 >=20 > When Boot Menu does not exist in the BootOrder, > BmRegisterBootManagerMenu > will create one into list. However, it should be put at the "end" of > BootOrder instead of "start" of BootOrder. Replace 0 by -1 to adjust > order of load options. >=20 > Signed-off-by: Walon Li > --- > MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c > b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c > index aff620ad52..26d1fb0ea0 100644 > --- a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c > +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c > @@ -2505,7 +2505,7 @@ BmRegisterBootManagerMenu ( > EfiBootManagerFreeLoadOptions (BootOptions, BootOptionCount); >=20 > ); >=20 >=20 >=20 > - return EfiBootManagerAddLoadOptionVariable (BootOption, 0); >=20 > + return EfiBootManagerAddLoadOptionVariable (BootOption, (UINTN) = -1)); >=20 > } >=20 >=20 >=20 > /** >=20 > -- > 2.23.0.windows.1 >=20 >=20 >=20 > -=3D-=3D-=3D-=3D-=3D-=3D > Groups.io Links: You receive all messages sent to this group. > View/Reply Online (#71766): = https://edk2.groups.io/g/devel/message/71766 > Mute This Topic: https://groups.io/mt/80721971/4905953 > Group Owner: devel+owner@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub > [gaoliming@byosoft.com.cn] > -=3D-=3D-=3D-=3D-=3D-=3D >=20