From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=15.233.44.25; helo=g2t2352.austin.hpe.com; envelope-from=sunnywang@hpe.com; receiver=edk2-devel@lists.01.org Received: from g2t2352.austin.hpe.com (g2t2352.austin.hpe.com [15.233.44.25]) (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 162832097FAB2 for ; Tue, 3 Jul 2018 20:40:07 -0700 (PDT) Received: from G2W6309.americas.hpqcorp.net (g2w6309.austin.hp.com [16.197.64.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g2t2352.austin.hpe.com (Postfix) with ESMTPS id D1A9AB2 for ; Wed, 4 Jul 2018 03:40:06 +0000 (UTC) Received: from G4W9121.americas.hpqcorp.net (2002:10d2:1510::10d2:1510) by G2W6309.americas.hpqcorp.net (2002:10c5:4033::10c5:4033) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 4 Jul 2018 03:39:13 +0000 Received: from NAM01-BY2-obe.outbound.protection.outlook.com (15.241.52.10) by G4W9121.americas.hpqcorp.net (16.210.21.16) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 4 Jul 2018 03:39:13 +0000 Received: from AT5PR8401MB0929.NAMPRD84.PROD.OUTLOOK.COM (10.169.6.151) by AT5PR8401MB0673.NAMPRD84.PROD.OUTLOOK.COM (10.169.5.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.18; Wed, 4 Jul 2018 03:39:11 +0000 Received: from AT5PR8401MB0929.NAMPRD84.PROD.OUTLOOK.COM ([fe80::dc39:b258:6531:7c00]) by AT5PR8401MB0929.NAMPRD84.PROD.OUTLOOK.COM ([fe80::dc39:b258:6531:7c00%4]) with mapi id 15.20.0930.016; Wed, 4 Jul 2018 03:39:11 +0000 From: "Wang, Sunny (HPS SW)" To: Ruiyu Ni , "edk2-devel@lists.01.org" CC: Sean Brogan , Michael Turner , "Wang, Sunny (HPS SW)" Thread-Topic: [PATCH v4 1/9] MdeModulePkg/PlatformBootManager: Add PlatformBootManagerUnableToBoot Thread-Index: AQHUEzlyLvmgE93ZTU2fDAbbrVhqoqR+ZykA Date: Wed, 4 Jul 2018 03:39:10 +0000 Message-ID: References: <20180704015057.35908-1-ruiyu.ni@intel.com> <20180704015057.35908-2-ruiyu.ni@intel.com> In-Reply-To: <20180704015057.35908-2-ruiyu.ni@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=sunnywang@hpe.com; x-originating-ip: [16.242.247.133] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AT5PR8401MB0673; 7:WafiLBQ3nDvxYPFxdFb+LgDuYy3a9bb+vk2HAJdf+Gm7qL4Ns17M3XTgdrsO/Q3v4hehS0EdxXBZFm9lYbdQAyFmv2+WxHg+16jDZ0a6kWznF/SYcsrmZ9uNkFWaGM8gZpLOVDUJDuTMhoEbdpplc7yMu3nFIviuqD74bkKMX6goa6I6bpgF3+qYNqWruZ2uM7xpThEPxWhLuLgvVJD/9kqVMTUmFGWfakfdbYzN9+NJAoekO3Rn1wRefMd2EVI9 x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR; x-forefront-antispam-report: SFV:SKI; SCL:-1; SFV:NSPM; SFS:(10019020)(6029001)(376002)(366004)(346002)(396003)(39860400002)(136003)(13464003)(199004)(189003)(446003)(8676002)(476003)(478600001)(11346002)(2501003)(105586002)(106356001)(5250100002)(99286004)(53936002)(54906003)(26005)(68736007)(6116002)(3846002)(7696005)(102836004)(14454004)(486006)(14444005)(53546011)(256004)(81156014)(81166006)(6246003)(6506007)(8936002)(76176011)(25786009)(305945005)(33656002)(229853002)(5660300001)(316002)(4326008)(74316002)(55016002)(86362001)(110136005)(66066001)(9686003)(7736002)(186003)(6436002)(2906002)(2900100001)(97736004); DIR:OUT; SFP:1102; SCL:1; SRVR:AT5PR8401MB0673; H:AT5PR8401MB0929.NAMPRD84.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; x-ms-office365-filtering-correlation-id: 6d571662-bd45-4cdd-2ac6-08d5e15fb492 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:(222181515654134); BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:AT5PR8401MB0673; x-ms-traffictypediagnostic: AT5PR8401MB0673: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(227479698468861)(89211679590171)(162533806227266)(222181515654134)(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:AT5PR8401MB0673; BCL:0; PCL:0; RULEID:; SRVR:AT5PR8401MB0673; x-forefront-prvs: 0723A02764 received-spf: None (protection.outlook.com: hpe.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: VRNH1aD4qLqFbG8u6TWVU6FFe5OHDwQ81NeLx/sLDVLskpYPqRY+O/9K/HTPKUnraYKal4OxGCzX0Ifj5CsSnzmeYJxkfkse3WIR8T0qbaNrH2hKRNTuCDLnGGzxaTk+XhS9oGTQjMH2I2tmfd1xsd8sF0E1DHuy5uPYSGr3rWWtlOtu1WNa+FWu4REJyD6NIkTmN1gDykY2u/91eM8C9qbR6q+ziaMbMt7uvJ67u1xQhCvtpy3drT/hgzABwUvR7HuZaI9STK2kPm1h11Tl15RWKcasy8l6G8VmBWlm8of23Vhz5ZqRpiPu0sQoH1BmDovbaDfJPiWuBYTsIaEOMri5dyNNrQ2TKx6okjwaI60= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 6d571662-bd45-4cdd-2ac6-08d5e15fb492 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jul 2018 03:39:10.8822 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: AT5PR8401MB0673 X-OriginatorOrg: hpe.com Subject: Re: [PATCH v4 1/9] MdeModulePkg/PlatformBootManager: Add PlatformBootManagerUnableToBoot 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: Wed, 04 Jul 2018 03:40:08 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Looks good to me.=20 Reviewed-by: Sunny Wang -----Original Message----- From: Ruiyu Ni [mailto:ruiyu.ni@intel.com]=20 Sent: Wednesday, July 04, 2018 9:51 AM To: edk2-devel@lists.01.org Cc: Sean Brogan ; Michael Turner ; Wang, Sunny (HPS SW) Subject: [PATCH v4 1/9] MdeModulePkg/PlatformBootManager: Add PlatformBootM= anagerUnableToBoot The patch adds a new API PlatformBootManagerUnableToBoot() to PlatformBootM= anagerLib. The new API is provided by platform bds library and is called when no boot = option could be launched. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni Cc: Sean Brogan Cc: Michael Turner Reviewed-by: Laszlo Ersek Cc: Sunny Wang --- MdeModulePkg/Include/Library/PlatformBootManagerLib.h | 13 +++++++++++++ = .../PlatformBootManagerLibNull/PlatformBootManager.c | 19 ++++++++++++++++= ++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Include/Library/PlatformBootManagerLib.h b/MdeMod= ulePkg/Include/Library/PlatformBootManagerLib.h index 65630ce2bb..6e26329043 100644 --- a/MdeModulePkg/Include/Library/PlatformBootManagerLib.h +++ b/MdeModulePkg/Include/Library/PlatformBootManagerLib.h @@ -59,4 +59,17 @@ PlatformBootManagerWaitCallback ( UINT16 TimeoutRemain ); =20 +/** + The function is called when no boot option could be launched, + including platform recovery options and options pointing to=20 +applications + built into firmware volumes. + + If this function returns, BDS attempts to enter an infinite loop. +**/ +VOID +EFIAPI +PlatformBootManagerUnableToBoot ( + VOID + ); + #endif diff --git a/MdeModulePkg/Library/PlatformBootManagerLibNull/PlatformBootMa= nager.c b/MdeModulePkg/Library/PlatformBootManagerLibNull/PlatformBootManag= er.c index 1390e19097..5a4455ef23 100644 --- a/MdeModulePkg/Library/PlatformBootManagerLibNull/PlatformBootManager.c +++ b/MdeModulePkg/Library/PlatformBootManagerLibNull/PlatformBootManage +++ r.c @@ -2,7 +2,7 @@ This file include all platform action which can be customized by IBV/OEM. =20 -Copyright (c) 2012 - 2015, Intel Corporation. All rights reserved.
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made availab= le under the terms and conditions of the BSD License which accompanies thi= s distribution. The full text of the license may be found at @@ -65,3 +65,= 20 @@ PlatformBootManagerWaitCallback ( { return; } + +/** + The function is called when no boot option could be launched, + including platform recovery options and options pointing to=20 +applications + built into firmware volumes. + + If this function returns, BDS attempts to enter an infinite loop. +**/ +VOID +EFIAPI +PlatformBootManagerUnableToBoot ( + VOID + ) +{ + return; +} + -- 2.16.1.windows.1