{"id":814140,"url":"http://patchwork.ozlabs.org/api/patches/814140/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20170915080619.25250-10-xypron.glpk@gmx.de/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170915080619.25250-10-xypron.glpk@gmx.de>","list_archive_url":null,"date":"2017-09-15T08:06:18","name":"[U-Boot,09/10] efi_loader: notify when ExitBootServices is invoked","commit_ref":"152a263c86c344fb255edf039071b8746a7fe0ff","pull_url":null,"state":"accepted","archived":false,"hash":"5d3c0cba21d88c161cd40b2cb126e17d7b25f222","submitter":{"id":61270,"url":"http://patchwork.ozlabs.org/api/people/61270/?format=json","name":"Heinrich Schuchardt","email":"xypron.glpk@gmx.de"},"delegate":{"id":3400,"url":"http://patchwork.ozlabs.org/api/users/3400/?format=json","username":"agraf","first_name":"Alexander","last_name":"Graf","email":"agraf@suse.de"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20170915080619.25250-10-xypron.glpk@gmx.de/mbox/","series":[{"id":3244,"url":"http://patchwork.ozlabs.org/api/series/3244/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=3244","date":"2017-09-15T08:06:10","name":"efi_loader: event services & API test","version":1,"mbox":"http://patchwork.ozlabs.org/series/3244/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/814140/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/814140/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xtp8X4d4wz9sBZ\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 15 Sep 2017 18:14:20 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 5AFAFC21F88; Fri, 15 Sep 2017 08:10:49 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 9DC1EC21FC3;\n\tFri, 15 Sep 2017 08:08:57 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid CF7BEC21F9B; Fri, 15 Sep 2017 08:07:50 +0000 (UTC)","from mout.gmx.net (mout.gmx.net [212.227.17.20])\n\tby lists.denx.de (Postfix) with ESMTPS id C2D22C21FA0\n\tfor <u-boot@lists.denx.de>; Fri, 15 Sep 2017 08:07:46 +0000 (UTC)","from laptop1.fritz.box ([94.197.120.111]) by mail.gmx.com (mrgmx102\n\t[212.227.17.174]) with ESMTPSA (Nemesis) id 0MDW9x-1deF4u1Seb-00Gt2q;\n\tFri, 15 Sep 2017 10:07:30 +0200"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-0.7 required=5.0 tests=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,\n\tRCVD_IN_MSPIKE_WL autolearn=unavailable\n\tautolearn_force=no version=3.4.0","From":"Heinrich Schuchardt <xypron.glpk@gmx.de>","To":"Alexander Graf <agraf@suse.de>","Date":"Fri, 15 Sep 2017 10:06:18 +0200","Message-Id":"<20170915080619.25250-10-xypron.glpk@gmx.de>","X-Mailer":"git-send-email 2.11.0","In-Reply-To":"<20170915080619.25250-1-xypron.glpk@gmx.de>","References":"<20170915080619.25250-1-xypron.glpk@gmx.de>","X-Provags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l9/nuksdwil3gxFlWOh\n\tJ6qAUe10Uj7egKUj0KN+ZibtwFszI58lvaIagII0HfuNdRwuggwagpFBys1UZpud2YCY1/zan\n\t1DxyJ77xq0ZNC2RlMWjhSGWVXmTgA==","Cc":"=?utf-8?q?=C5=81ukasz_Majewski?= <l.majewski@samsung.com>,\n\tHeinrich Schuchardt <xypron.glpk@gmx.de>, Andy Shevchenko\n\t<andriy.shevchenko@linux.intel.com>, u-boot@lists.denx.de, Fabio Estevam\n\t<fabio.estevam@nxp.com>, Maxime Ripard <maxime.ripard@free-electrons.com>","Subject":"[U-Boot] [PATCH 09/10] efi_loader: notify when ExitBootServices is\n\tinvoked","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"},"content":"All events of type EVT_SIGNAL_EXIT_BOOT_SERVICES have to be\nnotified when ExitBootServices is invoked.\n\nSigned-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>\n---\n lib/efi_loader/efi_boottime.c | 11 +++++++++++\n 1 file changed, 11 insertions(+)","diff":"diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c\nindex 7c92a68bf4..0d234146d7 100644\n--- a/lib/efi_loader/efi_boottime.c\n+++ b/lib/efi_loader/efi_boottime.c\n@@ -900,8 +900,19 @@ static void efi_exit_caches(void)\n static efi_status_t EFIAPI efi_exit_boot_services(void *image_handle,\n \t\t\t\t\t\t  unsigned long map_key)\n {\n+\tint i;\n+\n \tEFI_ENTRY(\"%p, %ld\", image_handle, map_key);\n \n+\t/* Notify that ExitBootServices is invoked. */\n+\tfor (i = 0; i < ARRAY_SIZE(efi_events); ++i) {\n+\t\tif (efi_events[i].type != EVT_SIGNAL_EXIT_BOOT_SERVICES)\n+\t\t\tcontinue;\n+\t\tefi_signal_event(&efi_events[i]);\n+\t}\n+\t/* Make sure that notification functions are not called anymore */\n+\tefi_tpl = TPL_HIGH_LEVEL;\n+\n \tboard_quiesce_devices();\n \n \t/* Fix up caches for EFI payloads if necessary */\n","prefixes":["U-Boot","09/10"]}