From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) by mx.groups.io with SMTP id smtpd.web12.2817.1667942171823417451 for ; Tue, 08 Nov 2022 13:16:11 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@google.com header.s=20210112 header.b=TQP8K9Bu; spf=pass (domain: flex--dionnaglaze.bounces.google.com, ip: 209.85.216.73, mailfrom: 3gsdqywskbxuwbhggtzetsxzhhzex.vhfwxoxexwdv.zkhnil.bh@flex--dionnaglaze.bounces.google.com) Received: by mail-pj1-f73.google.com with SMTP id ci1-20020a17090afc8100b00212e5b4c3afso6700101pjb.3 for ; Tue, 08 Nov 2022 13:16:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=nUmP+BnruCs1GtlH9Bfhve1pIcqFnD/ROFKBBA1QNdQ=; b=TQP8K9BuFaLCR47vUT0l/b48KR8OgYRBqkMk1fbmv3xIns0jbgmtrsHcqmrrHOTEyQ lr3OS4xEDGPJQRBBG+wmRxEtVwWkTAZz/E9/xQtc7Q9+1JiLz3RsTR2PW7+eJMAIQdvs xS6F00xZ0+vvbh5ma9FnGhhzr5WA/67ahXCFaj1qcLd78gSln+t1sxUN7Nb0+qCLhfoL iTxfS+ic0fpY7smYhIILtHb0cxTYCO76YUWGhy76L/U6deKlvHiBGBf63ow9pwsJbFdI ks2XtzVN8JNHH9u/6estaEHditCw7p0UETU3vg/ozZLrGUL60Rnho11kIdcdUy1J3ANs VVtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nUmP+BnruCs1GtlH9Bfhve1pIcqFnD/ROFKBBA1QNdQ=; b=EJzAuoxNLrUVEfVvYK5M5WuXykYX2Nj8DQxWeXUy29hqVylaKZh3+j3XLp1VJUHTWG UT3kVUhtWAbJK2OTYBwCkR79EgA0EpZwsdNjV5YmZiaTMAOxm50GAm7CRFocPJkUQMNu +CqG5B2KYKc47Tuu4Au+Jlm6K1Jyi+Mi31QWaQzL9Nbs5gfi6WXfpSny5ldmqTqT9nEC KjrwS4xV8085HHPyIGxmOnK2KYkB24cItCzccR1uLCgT8Ntqh3nzIYGr3HJJ1uddrl+h JU6VBgv5LdvRo+OttFO9r3OWyF1f0mYMZ3rePXcczmRsZZalG59hf5Nsz7vGr9Pvdf++ EkYA== X-Gm-Message-State: ACrzQf36Oozk/C2ESghIa3ljxXoZigS51TEiFwPuMWjcSbEtzzHlpsRo LAYCd3uHEVz1DrHBzNiWzrdjhiogKMS7Vh/71zW3xFiEZH+iz/Qo1gq30hy4y3J0ueZjgP3Ygfr xlXdRslvOpn3vy+ZrqncwlpvrflIOE/cStoqCYNzENCZCn2BIeWIABanWDf0oEoCBC+rEofgt X-Google-Smtp-Source: AMsMyM4qIIZfD4ZwVXBD7wx/BebJPy1p5RToZhY4XxpiCtvlfktQ2l09Bz9uzM195taGVqCak5DZOzoMipdLDJAdSA== X-Received: from dionnaglaze.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:2ee6]) (user=dionnaglaze job=sendgmr) by 2002:a17:90a:cb95:b0:215:f80c:18e6 with SMTP id a21-20020a17090acb9500b00215f80c18e6mr859377pju.45.1667942170443; Tue, 08 Nov 2022 13:16:10 -0800 (PST) Date: Tue, 8 Nov 2022 21:15:55 +0000 In-Reply-To: <20221108211557.3306520-1-dionnaglaze@google.com> Mime-Version: 1.0 References: <20221108211557.3306520-1-dionnaglaze@google.com> X-Mailer: git-send-email 2.38.1.431.g37b22c650d-goog Message-ID: <20221108211557.3306520-3-dionnaglaze@google.com> Subject: [PATCH v2 2/4] MdePkg: Add event groups for boot events From: "Dionna Glaze" To: devel@edk2.groups.io Cc: Dionna Glaze , Ard Biescheuvel , "Min M. Xu" , Gerd Hoffmann , James Bottomley , Tom Lendacky , Jiewen Yao , Erdem Aktas Content-Type: text/plain; charset="UTF-8" Add EFI_EVENT_BEFORE_EXIT_BOOT_SERVICES_GUID Add EFI_EVENT_GROUP_AFTER_READY_TO_BOOT Both defined in UEFI standard v2.9. Cc: Ard Biescheuvel Cc: "Min M. Xu" Cc: Gerd Hoffmann Cc: James Bottomley Cc: Tom Lendacky Cc: Jiewen Yao Cc: Erdem Aktas Signed-off-by: Dionna Glaze --- MdePkg/Include/Guid/EventGroup.h | 10 ++++++++++ MdePkg/MdePkg.dec | 8 +++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/MdePkg/Include/Guid/EventGroup.h b/MdePkg/Include/Guid/EventGroup.h index 063d1f7157..821b728e59 100644 --- a/MdePkg/Include/Guid/EventGroup.h +++ b/MdePkg/Include/Guid/EventGroup.h @@ -14,6 +14,11 @@ SPDX-License-Identifier: BSD-2-Clause-Patent extern EFI_GUID gEfiEventExitBootServicesGuid; +#define EFI_EVENT_GROUP_BEFORE_EXIT_BOOT_SERVICES \ + { 0x8be0e274, 0x3970, 0x4b44, { 0x80, 0xc5, 0x1a, 0xb9, 0x50, 0x2f, 0x3b, 0xfc } } + +extern EFI_GUID gEfiEventBeforeExitBootServicesGuid; + #define EFI_EVENT_GROUP_VIRTUAL_ADDRESS_CHANGE \ { 0x13fa7698, 0xc831, 0x49c7, { 0x87, 0xea, 0x8f, 0x43, 0xfc, 0xc2, 0x51, 0x96 } } @@ -29,6 +34,11 @@ extern EFI_GUID gEfiEventMemoryMapChangeGuid; extern EFI_GUID gEfiEventReadyToBootGuid; +#define EFI_EVENT_GROUP_AFTER_READY_TO_BOOT \ + { 0x3a2a00ad, 0x98b9, 0x4cdf, { 0xa4, 0x78, 0x70, 0x27, 0x77, 0xf1, 0xc1, 0xb } } + +extern EFI_GUID gEfiEventAfterReadyToBootGuid; + #define EFI_EVENT_GROUP_DXE_DISPATCH_GUID \ { 0x7081e22f, 0xcac6, 0x4053, { 0x94, 0x68, 0x67, 0x57, 0x82, 0xcf, 0x88, 0xe5 }} diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index 6b6bfbec29..c4ccec935a 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -408,11 +408,17 @@ gEfiEventMemoryMapChangeGuid = { 0x78BEE926, 0x692F, 0x48FD, { 0x9E, 0xDB, 0x01, 0x42, 0x2E, 0xF0, 0xD7, 0xAB }} ## Include/Guid/EventGroup.h - gEfiEventVirtualAddressChangeGuid = { 0x13FA7698, 0xC831, 0x49C7, { 0x87, 0xEA, 0x8F, 0x43, 0xFC, 0xC2, 0x51, 0x96 }} + gEfiEventVirtualAddressChangeGuid = { 0x13FA7698, 0xC831, 0x49C7, { 0x87, 0xEA, 0x8F, 0x43, 0xFC, 0xC2, 0x51, 0x96 }} + + ## Include/Guid/EventGroup.h + gEfiEventBeforeExitBootServicesGuid = { 0x8BE0E274, 0x3970, 0x4B44, { 0x80, 0xC5, 0x1A, 0xB9, 0x50, 0x2F, 0x3B, 0xFC }} ## Include/Guid/EventGroup.h gEfiEventExitBootServicesGuid = { 0x27ABF055, 0xB1B8, 0x4C26, { 0x80, 0x48, 0x74, 0x8F, 0x37, 0xBA, 0xA2, 0xDF }} + ## Include/Guid/EventGroup.h + gEfiEventAfterReadyToBootGuid = { 0x3A2A00AD, 0x98B9, 0x4CDF, { 0xA4, 0x78, 0x70, 0x27, 0x77, 0xF1, 0xC1, 0xB }} + ## Include/Protocol/DebugPort.h gEfiDebugPortVariableGuid = { 0xEBA4E8D2, 0x3858, 0x41EC, { 0xA2, 0x81, 0x26, 0x47, 0xBA, 0x96, 0x60, 0xD0 }} -- 2.38.1.431.g37b22c650d-goog