From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atlmailgw1.ami.com (atlmailgw1.ami.com [63.147.10.40]) by mx.groups.io with SMTP id smtpd.web10.6115.1593723127624974290 for ; Thu, 02 Jul 2020 13:52:07 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: ami.com, ip: 63.147.10.40, mailfrom: oleksiyy@ami.com) X-AuditID: ac1060b2-ebbff70000003d78-25-5efe48f6b94e Received: from atlms1.us.megatrends.com (atlms1.us.megatrends.com [172.16.96.144]) (using TLS with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by atlmailgw1.ami.com (Symantec Messaging Gateway) with SMTP id ED.C2.15736.6F84EFE5; Thu, 2 Jul 2020 16:52:06 -0400 (EDT) Received: from Oleksiy77.us.megatrends.com (172.16.97.158) by atlms1.us.megatrends.com (172.16.96.144) with Microsoft SMTP Server id 14.3.468.0; Thu, 2 Jul 2020 16:50:43 -0400 From: "Oleksiy Yakovlev" To: CC: , , , , , , , Subject: [PATCH V3 1/4] MdePkg: Add New Memory Attributes Date: Thu, 2 Jul 2020 16:50:36 -0400 Message-ID: <20200702205039.52400-2-oleksiyy@ami.com> X-Mailer: git-send-email 2.9.0.windows.1 In-Reply-To: <20200702205039.52400-1-oleksiyy@ami.com> References: <20200702205039.52400-1-oleksiyy@ami.com> MIME-Version: 1.0 Return-Path: oleksiyy@ami.com X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrOIsWRmVeSWpSXmKPExsWyRiBhgu43j39xBgsemVhs3aZu0T5hNpvF smM7WCxW3NvAbtHR8Y/JYvp2F4svq98zOrB7bP9+gdFj8Z6XTB7v911lC2COamC0SczLyy9J LElVSEktTrZVCijKLEtMrlRSyEyxVTJUUijISUxOzU3NK7FVSiwoSM1LUbLjUsAANkBlmXkK qXnJ+SmZeem2Sp7B/roWFqaWuoZKdiEZqQqZeWn5RbmJJZn5eQrJ+XklQNWpKUBRhYRuzoxZ K68yFyzgrZi1oZ+tgbGRu4uRk0NCwETiwc1nTF2MXBxCAruYJL4e/8ACkhAS2Mwosf5UEojN JqApceDYFEYQW0RASmLKgZlgDcwCexglel6fYgVJCAtYSizeOYkJxGYRUJG4+7sbrIFXwFRi ysop7BDbNCSmrbkLVsMpYCbRu6CVEWKZqcSh/QdZIeoFJU7OfAJ2BLOAhMTBFy+YIWpkJdqO P2efwMg/C0nZLCRlCxiZVjEKJZbk5CZm5qSXG+ol5mbqJefnbmKExOKmHYwtF80PMTJxMB5i lOBgVhLhTVD9FyfEm5JYWZValB9fVJqTWnyI0QnogYnMUtygEARGSbyxgYGUKIxjaGJmYm5k bmhpYm5srCTOO3ntmjghgXRg1GanphakFsEMYeLglGpgvNN+zafaK/FkXcyLP3uWWm2IOfLs LmdDp8WSDl6O4w1SjxvLrea6b5wRWLJOJ1lUbENfze+rrx8y6rb2FyW6XuGROStv9cpZeUbS E079vSkfLRIudgo9uhheJryrSKrw7Lc7MyRP+3sqqOy+EHNxTn+Wir3/AZtNa1ufL9i1jzWr +aZU3yIbJZbijERDLeai4kQAY29uUtoCAAA= Content-Type: text/plain Add usage of EFI_MEMORY_SP and EFI_MEMORY_CPU_CRYPTO attributes introduced in UEFI 2.8 (UEFI 2.8, mantis 1919 and 1872) Fix typos in EFI_MEMORY_CPU_CRYPTO description. Add attributes bitmasks, grouped by type. Signed-off-by: Oleksiy Yakovlev Reviewed-by: Laszlo Ersek Reviewed-by: Liming Gao --- MdePkg/Include/Uefi/UefiSpec.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/MdePkg/Include/Uefi/UefiSpec.h b/MdePkg/Include/Uefi/UefiSpec.h index 558e1bc..05b82e0 100644 --- a/MdePkg/Include/Uefi/UefiSpec.h +++ b/MdePkg/Include/Uefi/UefiSpec.h @@ -96,9 +96,9 @@ typedef enum { #define EFI_MEMORY_SP 0x0000000000040000ULL // // If this flag is set, the memory region is capable of being -// protected with the CPU?s memory cryptographic +// protected with the CPU's memory cryptographic // capabilities. If this flag is clear, the memory region is not -// capable of being protected with the CPU?s memory +// capable of being protected with the CPU's memory // cryptographic capabilities or the CPU does not support CPU // memory cryptographic capabilities. // @@ -109,6 +109,12 @@ typedef enum { // #define EFI_MEMORY_RUNTIME 0x8000000000000000ULL +// +// Attributes bitmasks, grouped by type +// +#define EFI_CACHE_ATTRIBUTE_MASK (EFI_MEMORY_UC | EFI_MEMORY_WC | EFI_MEMORY_WT | EFI_MEMORY_WB | EFI_MEMORY_UCE | EFI_MEMORY_WP) +#define EFI_MEMORY_ATTRIBUTE_MASK (EFI_MEMORY_RP | EFI_MEMORY_XP | EFI_MEMORY_RO | EFI_MEMORY_SP | EFI_MEMORY_CPU_CRYPTO) + /// /// Memory descriptor version number. /// -- 2.9.0.windows.1 Please consider the environment before printing this email. The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.